Python 2.7 import socket urllib fails to load, module not found
wdtate at comcast.net
wdtate at comcast.net
Fri Aug 17 17:15:35 EDT 2012
>
> So, try the following in both environments:
> import sys
> for ii in sys.path: print ii
>
> You'll likely find diffferences between the two.
> In the pythonwin environment, try:
>
>
>
> import socket
>
> print socket.__file__
>
>
> Chances are the __file__'s directory isn't in the command line's sys.path.
>
>
>
> Emile
Done - tail end of the python path had a missing bit...grrrrr... thanks so much
More information about the Python-list
mailing list