_socket module missing solaris 7 build python 2.3.3

S

Stephen Williams

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:

% pythonTraceback (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) |
| (e-mail address removed) |
|____________________ Oooo ______________|
oooO ( )
( ) ) /
\ ( (_/
\_)
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Stephen said:
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
 
D

Dieter Maurer

Martin v. Löwis said:
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
 

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,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top