4 tests failed: test_socket test_sunaudiodev test_sundry test_urllib2

Laura Creighton lac at strakt.com
Sat Jan 11 08:08:19 CET 2003


Looks like you have permission problems too.
http://mail.python.org/pipermail/python-list/2003-January/138751.html

Laura
> I am trying to get Python 2.2.2 compiled on a Solaris 8 (SPARC)
> machine and I got this error:
> 
> 4 tests failed:
>     test_socket test_sunaudiodev test_sundry test_urllib2
> 
> I ran each test by itself, see below.  I am trying to get python
> installed for another software package I would like to use.  Any and
> all thoughts will be very helpful!
> 
> Sam
> 
> # ./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
> Traceback (most recent call last):
>   File "./Lib/test/test_sunaudiodev.py", line 28, in ?
>     test()
>   File "./Lib/test/test_sunaudiodev.py", line 26, in test
>     play_sound_file(findfile('audiotest.au'))
>   File "./Lib/test/test_sunaudiodev.py", line 20, in play_sound_file
>     raise TestFailed, msg
> test_support.TestFailed: (13, 'Permission denied', '/dev/audio')
> 
> # ./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
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list