Compiled Python on Solaris8 at 2.2.2 - Problem with (_)socket
Ian Pellew
ipellew at pipemedia.co.uk
Wed Apr 2 10:15:28 EST 2003
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
More information about the Python-list
mailing list