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 "user" not even a "serious programmer", 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"><<a href="mailto:uli@gnufix.de">uli@gnufix.de</a>></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">> I have only one installation of python.<br>
<br>
</div>Okay, that makes things easier :-)<br>
<div class="im"><br>
> The path to _socket in my python installation matches yours:<br>
> >>> import _socket<br>
> >>> _socket.__file__<br>
> 'c:\\python25\\DLLs\\_socket.pyd'<br>
><br>
> In the virtual environment, sys.path is:<br>
> (vgrok) C:\vgrok>python<br>
> Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit<br>
> (Intel)] on<br>
> win32<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import sys<br>
> >>> sys.path<br>
> ['', 'C:\\vgrok\\lib\\site-packages\\setuptools-0.6c9-py2.5.egg', 'c:\<br>
> \python25\<br>
> \lib', 'C:\\WINDOWS\\system32\\python25.zip', 'C:\\vgrok\\DLLs', 'C:\<br>
> \vgrok\\lib<br>
> ', 'C:\\vgrok\\lib\\plat-win', 'C:\\vgrok\\lib\\lib-tk', 'C:\\vgrok\<br>
> \Scripts', '<br>
> C:\\vgrok', 'C:\\vgrok\\lib\\site-packages']<br>
> >>><br>
><br>
> There is no _socket in the DLLs folder of the virtual environment; the<br>
> \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'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'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>
> I am currently using grok installed directly on my "real" python<br>
> environment.<br>
<br>
</div>If you have no problems with it, then it'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>