Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   _socket / SocketServer / Mandrake Linux problem / Python 2.3 (http://www.velocityreviews.com/forums/t320500-_socket-socketserver-mandrake-linux-problem-python-2-3-a.html)

Barry Sprajc 08-03-2003 05:19 AM

_socket / SocketServer / Mandrake Linux problem / Python 2.3
 
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




Skip Montanaro 08-03-2003 06:09 PM

Re: _socket / SocketServer / Mandrake Linux problem / Python 2.3
 

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



All times are GMT. The time now is 01:36 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.