This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: The error of *import socket* within python.


On Sat, Jan 31, 2009 at 12:43:13AM +0800, Hongyi Zhao wrote:
> 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?

Was the installation successful?  Sounds like you are missing some
files.  What does the following indicate?

    $ cygcheck -c python

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]