This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: The error of *import socket* within python.
On Fri, 30 Jan 2009 17:24:27 -0500, Jason Tishler <jason@tishler.net>
wrote:
>cygcheck -c python
Please see the following infomation. Note, this time, I use the
python 2.5.1-2 which is the default one installed by cygwin, i.e.,
instead of Python 2.5.2:
werner@6bfcc76be8b548c ~
$ cygcheck -c python
Cygwin Package Information
Package Version Status
python 2.5.1-2 OK
werner@6bfcc76be8b548c ~
$ python
'import site' failed; use -v for traceback
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named socket
>>>
--
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/