_socket / SocketServer / Mandrake Linux problem / Python 2.3

B

Barry Sprajc

Anybody run into trouble and find a solution importing 'socket'?

I've rebuilt, and reinstalled, but cannot find a _socket.py, _socket.pyo, or
_socket.pyc in
the lib directory. ( I suspect that's what socket.py is looking for? )

Thanks for any help.

/barry sprajc


Error below.....


[root@rooster root]# python /usr/lib/python2.3/socket.py
Traceback (most recent call last):
File "/usr/lib/python2.3/socket.py", line 44, in ?
import _socket
ImportError: No module named _socket
 
S

Skip Montanaro

Barry> I've rebuilt, and reinstalled, but cannot find a _socket.py,
Barry> _socket.pyo, or _socket.pyc in the lib directory. ( I suspect
Barry> that's what socket.py is looking for? )

Nope, it's looking for _socket.so, which you should find in
${prefix}/lib/python2.3/lib-dynload/_socket.so.

Skip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top