<p dir="ltr">The error message suggests that TeXworks looks in the 2011 folder, not 2012, so change the path. You say it is set up to point to 2012, but according to the error message it doesn't look there. Take an extra look at the setup.</p>

<p dir="ltr"> Sigmund<br>
</p>
<div class="gmail_quote">On Nov 5, 2012 10:14 PM, "Alain Delmotte" <<a href="mailto:alain.delmotte@leliseron.org">alain.delmotte@leliseron.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
If I try this CME in TeXworks:<br>
------------------------------<u></u>------<br>
\documentclass{minimal}<br>
\usepackage{tikz}<br>
\usetikzlibrary{hobby}<br>
\begin{document}<br>
\begin{tikzpicture}<br>
\draw (0,0) to[curve through={(6,4) .. (4,9) .. (1,7)}] (3,5);<br>
\end{tikzpicture}<br>
\end{document}<br>
------------------------------<u></u>------<br>
<br>
I got an error, the hobby package is not found:<br>
<br>
------------------------------<u></u>------<br>
(c:/texlive/2011/texmf-dist/<u></u>tex/generic/pgf/frontendlayer/<u></u>tikz/libraries/tikzli<br>
brarytopaths.code.tex)))<br>
! I can't find file `tikzlibraryhobby.code.tex'.<br>
<argument> ...nput tikzlibrary\pgf@temp .code.tex<br>
                                                  \catcode `\@ =\csname tikz...<br>
l.3 \usetikzlibrary{hobby}<br>
<br>
(Press Enter to retry, or Control-Z to exit)<br>
Please type another input file name<br>
! Emergency stop.<br>
<argument> ...nput tikzlibrary\pgf@temp .code.tex<br>
                                                  \catcode `\@ =\csname tikz...<br>
l.3 \usetikzlibrary{hobby}<br>
<br>
!  ==> Fatal error occurred, no output PDF file produced!<br>
Transcript written on LaTeX4.log.<br>
------------------------------<u></u>------<br>
<br>
But if I compile it with TeXmaker, it works!!!<br>
<br>
Why is the hobby package not found by TeXworks?<br>
<br>
I have<br>
C:/texlive/2012/bin/win32<br>
C:/texlive/2012/bin<br>
in the path of TeXworks<br>
<br>
hobby is in<br>
C:\texlive\2012\texmf-dist\<u></u>tex\latex\hobby where one can find tikzlibraryhobby.code.tex, pgflibraryhobby.code.tex and hobby.code.tex (as well as pml3array.sty).<br>
<br>
Regards,<br>
<br>
Alain<br>
 <br>
<br>
</blockquote></div>