4 tests failed: test_socket test_sunaudiodev test_sundry test_urllib2

Sam Carleton nospam at miltonstreet.com
Sat Jan 11 11:58:06 EST 2003


Laura Creighton <lac at strakt.com> wrote in message news:<mailman.1042269140.19918.python-list at python.org>...
> Looks like you have permission problems too.
> http://mail.python.org/pipermail/python-list/2003-January/138751.html
 
Laura,

I looked at the link, the problem is that I have not installed any
version of Python yet.  There is no /usr/local/lib/python2.1 yet.  I
am hoping that it will never appear, I am trying to install 2.2.2
<grin>

But I did run the tests again as root and one test passed:

# ./python ./Lib/test/test_socket.py
Traceback (most recent call last):
  File "./Lib/test/test_socket.py", line 12, in ?
    import socket
  File "/export/home/sam/src/Python-2.2.2/Lib/socket.py", line 41, in
?
    from _socket import *
ImportError: No module named _socket

# ./python ./Lib/test/test_sunaudiodev.py

# ./python ./Lib/test/test_sundry.py
Traceback (most recent call last):
  File "./Lib/test/test_sundry.py", line 8, in ?
    import BaseHTTPServer
  File "/export/home/sam/src/Python-2.2.2/Lib/BaseHTTPServer.py", line
70, in ?
    import socket # For gethostbyaddr()
  File "/export/home/sam/src/Python-2.2.2/Lib/socket.py", line 41, in
?
    from _socket import *
ImportError: No module named _socket

# ./python ./Lib/test/test_urllib2.py
Traceback (most recent call last):
  File "./Lib/test/test_urllib2.py", line 2, in ?
    import urllib2
  File "/export/home/sam/src/Python-2.2.2/Lib/urllib2.py", line 90, in
?
    import socket
  File "/export/home/sam/src/Python-2.2.2/Lib/socket.py", line 41, in
?
    from _socket import *
ImportError: No module named _socket

I do see that it keeps claming that there is no module named _socket. 
After doing a find in the root directory where I am compiling the
code, there is this file:

Python-2.2.2/PCbuild/_socket.dsp

Sam




More information about the Python-list mailing list