473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

_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

Jul 18 '05 #1
1 2888

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

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stephen Williams | last post by:
after compiling python 2.3.3 on a solaris 7 system, one of our users gets this error message now with a script he had previously written: % python >>> from ftplib import FTP Traceback (most...
3
by: Ergin Aytac | last post by:
I'm trying to run a script written in python and have some socket connection problems. I cutted the origin script (more than 1000 lines) so it is only the part of the connection and there is no...
1
by: danu kusmana | last post by:
Im using Python 2.3.4 and Mandrake linux 10.0. I don't know whats wrong when Im trying to install the PyOpengl-2.0.1.08. I got the message: gcc -pthread -shared...
0
by: Michael Ströder | last post by:
HI! I'm trying to build Python2.4 on a rather old Debian machine. I only have a shell account there. That's why I'm very limited in my actions. Building _socket fails (see below) although I...
0
by: Adil Hasan | last post by:
Hello Fred, I just ran across your question. I think that the following code will work: ----- SERVER CODE ------ import SocketServer import time class...
5
by: missiplicity | last post by:
Hi, I am newbie to Python language and am taking my baby steps. I am using Python2.4 from ActiveState on W2K. I am trying to create a simple SocketServer program. Just adding the following 2 lines...
3
by: Joal Heagney | last post by:
Hi everyone. I've been getting this error message in python, and it's really driving me up the wall. $ python 'import site' failed; use -v for traceback Python 2.3.4 (#1, Apr 18 2005,...
3
by: Magnus Lycka | last post by:
I have a socket server like below which I want to exit when it's out of data. If I interrupt the client, I'll get a broken pipe on the server side, and after a Ctrl-C, I can restart the server...
10
by: Rhino | last post by:
Has anyone managed to get DB2 V8.1 to install and run on Linux Mandrake 9.1/9.2? I know that IBM does not officially support DB2 on Mandrake but I also know that the clever people who buy DB2...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.