Thanks, Uli. Facing such problems gives a great opportunity to learn, thanks to all on this list.<br>My virtualenv version is indeed 1.3.3 (which is the most recent one)<br><br>I am actually not a &quot;user&quot; not even a &quot;serious programmer&quot;, so it using a workaround would not help me. But you are right: this problem needs to be resolved.<br>
Thanks and regards<br>Milind Khadilkar<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 3:48 PM, Uli Fouquet <span dir="ltr">&lt;<a href="mailto:uli@gnufix.de">uli@gnufix.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Hi Milind,<br>
<br>
Milind Khadilkar wrote:<br>
<br>
</div><div class="im">&gt; I have only one installation of python.<br>
<br>
</div>Okay, that makes things easier :-)<br>
<div class="im"><br>
&gt; The path to _socket in my python installation matches yours:<br>
&gt; &gt;&gt;&gt; import _socket<br>
&gt; &gt;&gt;&gt; _socket.__file__<br>
&gt; &#39;c:\\python25\\DLLs\\_socket.pyd&#39;<br>
&gt;<br>
&gt; In the virtual environment, sys.path is:<br>
&gt; (vgrok) C:\vgrok&gt;python<br>
&gt; Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit<br>
&gt; (Intel)] on<br>
&gt; win32<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt; &gt;&gt;&gt; import sys<br>
&gt; &gt;&gt;&gt; sys.path<br>
&gt; [&#39;&#39;, &#39;C:\\vgrok\\lib\\site-packages\\setuptools-0.6c9-py2.5.egg&#39;, &#39;c:\<br>
&gt; \python25\<br>
&gt; \lib&#39;, &#39;C:\\WINDOWS\\system32\\python25.zip&#39;, &#39;C:\\vgrok\\DLLs&#39;, &#39;C:\<br>
&gt; \vgrok\\lib<br>
&gt; &#39;, &#39;C:\\vgrok\\lib\\plat-win&#39;, &#39;C:\\vgrok\\lib\\lib-tk&#39;, &#39;C:\\vgrok\<br>
&gt; \Scripts&#39;, &#39;<br>
&gt; C:\\vgrok&#39;, &#39;C:\\vgrok\\lib\\site-packages&#39;]<br>
&gt; &gt;&gt;&gt;<br>
&gt;<br>
&gt; There is no _socket in the DLLs folder of the virtual environment; the<br>
&gt; \Python25\DLLs is not in the path of the virtual environment.<br>
<br>
</div>Ah, this seems to be the problem, thanks! In my virtualenv this Folder<br>
(Python25\DLLs\) is included in sys.path (additionally to \sandbox<br>
\DLLs). That&#39;s strange, because I created the sandbox also with<br>
--no-site-packages switch. Which version of virtualenv are you using?<br>
You can find out with<br>
<br>
  virtualenv -h<br>
<br>
I used 1.3.3 last time.<br>
<br>
Can you check whether it helps to upgrade virtualenv, in case you do not<br>
have the latest installed? This should be possible by<br>
<br>
  easy_install -U virtualenv<br>
<br>
If afterwards everything works (old sandboxes would stay broken, you&#39;d<br>
need to copy you projects to a fresh sandbox and run bootstrap.py and<br>
bin/bootstrap.exe of the project again), please tell, so that we can<br>
update the docs accordingly.<br>
<br>
If you have the latest virtualenv installed already, then I currently<br>
have no clue. You could copy the contents of \Python25\DLLs to \vgrok<br>
\DLLs but this would hardly be a real solution.<br>
<div class="im"><br>
&gt; I am currently using grok installed directly on my &quot;real&quot; python<br>
&gt; environment.<br>
<br>
</div>If you have no problems with it, then it&#39;s fine :-) But we should solve<br>
this virtualenv issue anyway, although it is not Grok or Zope-based.<br>
<br>
Best regards,<br>
<br>
--<br>
<font color="#888888">Uli<br>
<br>
</font></blockquote></div><br>