FAQ
Hi;

I have compiled python 2.2.2 on Solaris :-
SunOS sopix 5.8 Generic_108528-12 sun4u sparc SUNW,UltraAX-i2

I have a problem with python trying to import "_socket"
Here is my problem:-
./python
Python 2.2.2 (#2, Apr 1 2003, 10:10:26)
[GCC 3.1] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
import os as o
import cgi as i
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/Ipellew/tmp/Python2.2/Python-2.2.2/Lib/cgi.py", line 39, in ?
import urllib
File "/home/Ipellew/tmp/Python2.2/Python-2.2.2/Lib/urllib.py", line 26, in ?
import socket
File "/home/Ipellew/tmp/Python2.2/Python-2.2.2/Lib/socket.py", line 41, in ?
from _socket import *
ImportError: No module named _socket
import socket
from socket import *
My "socket" works OK, but not "_socket"

Can someone please advise what to do.

Regards
Ian

Search Discussions

  • Martin v. Löwis at Apr 2, 2003 at 9:41 pm

    ipellew at pipemedia.co.uk (Ian Pellew) writes:

    Can someone please advise what to do.
    I recommend you recompile the socket module without SSL support,
    by editing Modules/Setup.

    Regards,
    Martin

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedApr 2, '03 at 3:15p
activeApr 2, '03 at 9:41p
posts2
users2
websitepython.org

2 users in discussion

Ian Pellew: 1 post Martin v. Löwis: 1 post

People

Translate

site design / logo © 2022 Grokbase