By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,002 Members | 1,171 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,002 IT Pros & Developers. It's quick & easy.

_socket module missing solaris 7 build python 2.3.3

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
"Martin v. Lwis" <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 discussion thread is closed

Replies have been disabled for this discussion.