Python-2.2.1, Solaris7, make test fails...
Martin v. Löwis
loewis at informatik.hu-berlin.de
Thu Apr 18 11:12:07 EDT 2002
Hugh Sasse Staff Elec Eng <hgs at dmu.ac.uk> writes:
> It is worse
>
> Traceback (most recent call last):
> File "./Lib/test/test_socket.py", line 12, in ?
> import socket
> File "/home/hgs/Python-2.2.1/Lib/socket.py", line 41, in ?
> from _socket import *
> ImportError: No module named _socket
Here is the procedure to analyse this in detail:
Theory 1: during building of _socket with setup.py, setup notices that
building of _socket went wrong, and deletes it.
If that is the case (analyse setup.py output): Invoke the commands
to build _socket, and report whether this succeeds. If it does,
start ./python, and 'import socket'; report any errors that this
gives.
To work around this, we need
Theory 2: building the socket module fails because setup.py detects
presence of OpenSSL, yet the OpenSSL versions is to old for the socket
module.
If that is the case, you'll need to edit Modules/Setup, and build
the socket module explicitly without SSL support (either shared or
static).
Regards,
Martin
More information about the Python-list
mailing list