This is the mail archive of the
cygwin
mailing list for the Cygwin project.
The error of *import socket* within python.
- From: Hongyi Zhao <hongyi dot zhao at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 31 Jan 2009 00:43:13 +0800
- Subject: The error of *import socket* within python.
Hi all,
I've installed the Python 2.5.2 using the setup.exe, then I run the
folloiwng commands and meet errors:
$ python
'import site' failed; use -v for traceback
Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14)
[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
File "<stdin>", line 1
import socket
^
SyntaxError: invalid syntax
>>>
Could you please give me some hints?
--
.: 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/