473,385 Members | 1,927 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,385 software developers and data experts.

_socket module missing solaris 7 build python 2.3.3

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 recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.3/ftplib.py", line 45, in ?
import socket
File "/usr/local/lib/python2.3/socket.py", line 44, in ?
import _socket
ImportError: No module named _socket
this behavior is also apparent if you simply download the python 2.3.3
distribution from sunfreeware.com, so it makes me think there is a bug
somewhere in this distribution. whatever the reason, the module _socket
just simply does not get made. and no, it is not in any of the normal
paths that one would include for python libraries.

anyone out there know of a way around this? compiler flags or
something?
--
'''
(O O)
,-------------- oOO-(_)-OOo -------------,
| Stephen Williams |
| Manager of Computer Services |
| Center for Space Research |
| University of Texas at Austin |
| 3925 W. Braker Ln., Suite 200 |
| Austin, TX 78759-5321 |
| 512.471.7235 512.471.3570 (fax) |
| wi******@csr.utexas.edu |
|____________________ Oooo ______________|
oooO ( )
( ) ) /
\ ( (_/
\_)
Jul 18 '05 #1
2 1720
Stephen Williams wrote:
anyone out there know of a way around this? compiler flags or
something?


Around what? That sunfreeware does not ship the socket module?

Contact Sun.

If you want to work around contacting Sun, you have these
alternatives:
- build Python yourself.
- just build the socket module.

Regards,
Martin

Jul 18 '05 #2
"Martin v. Löwis" <ma****@v.loewis.de> writes on Sat, 01 May 2004 00:48:46 +0200:
Stephen Williams wrote:
anyone out there know of a way around this? compiler flags or
something?


Around what? That sunfreeware does not ship the socket module?


I have had similar problems:

The SUN header files for Solaris 7 did not define "INET V6" related
macros. Therefore, the compilation of "_socket.c" failed.

I modified the Python sources slightly to define the missing
macros.
Dieter
Jul 18 '05 #3

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

Similar topics

1
by: Barry Sprajc | last post by:
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...
1
by: Mark Nelson | last post by:
Hi I'm trying to build Imaging 1.1.4 in Solaris 9, I get passwd the first step i.e the building of libImging. However when I execute a python setup.py build I get the following error - gcc...
2
by: Arend Sluis | last post by:
Hi, **obligatory python newbie warning* I have been trying to install python 2.3.2 on Solaris 2.7 (SPARC). Both 'configure' and 'make' do not give problems, but 'make test' does complain: ...
0
by: Bob Swerdlow | last post by:
I'm trying to install MySQLdb 0.9.2 so I can access my MySQL database from python under Solaris 8. I found the notes on changing the include and lib paths and it seems to find them okay, but when...
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...
3
by: skip | last post by:
I'm having no success building the curses module on Solaris 8 (yes, I know it's ancient - advancing the state-of-the-art is not yet an option) for Python 2.4. Sun provides an apparently ancient...
2
by: kepioo | last post by:
Hi all, I am trying to install PIL with python 2.3 on solaris X86, but I get this error message : building '_imaging' extension creating build/temp.solaris-2.10-i86pc-2.3 creating...
2
by: Manu | last post by:
Hi there, I am trying to install mx Base module( http://www.egenix.com/products/python/mxBase/ ) on my Redhat server. But om executing command "python setup.py install" I get following messages:...
0
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.