_socket module missing solaris 7 build python 2.3.3

From: Stephen Williams (williams_at_csr.utexas.edu)
Date: 04/30/04


Date: Fri, 30 Apr 2004 10:50:36 -0500

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)    |
 |       williams@csr.utexas.edu          |
 |____________________ Oooo ______________|
                oooO   (   )
               (   )    ) /
                \ (    (_/
                 \_)


Relevant Pages

  • Re: Which compiler will Python 2.5 / Windows (Intel) be built with?
    ... users can at least use the same tool for Python 2.4 and Python 2.5. ... light of new facts. ... It wasn't clear that Microsoft would stop distributing the free 2003 ... compiling Python with VS2003 might very well be justified. ...
    (comp.lang.python)
  • Re: Python/Tk not working in Linux
    ... from Tkinter import * ... not installed before compiling Python or there was a problem while ... error when using the version from your distribution? ...
    (comp.lang.python)
  • Re: Large file support for Python?
    ... > I compiled the latest Python on AIX, ... > compiling Python with large file support (I need to do some simple text ... I build Python ok on AIX 5.2 with this following GNU configure string: ...
    (comp.unix.aix)
  • Re: Python/Tk not working in Linux
    ... from Tkinter import * ... not installed before compiling Python or there was a problem while ... `Tkinter` stuff into an own package. ...
    (comp.lang.python)
  • Re: Python 2.3.2 on AIX5.1 with IBM C compiler
    ... > on their AIX machines. ... > I am not a Aix system engineer, but a happy Python programmer and I have ... My only try at compiling Python was on SUSE 8.2, ...
    (comp.lang.python)