Argh. PostgreSQL site is missing bits because Python 2.1.3 (needed for Zope 2.6.x) has stopped working

Justin Clift justin at postgresql.org
Wed Feb 19 16:08:51 CET 2003


Hi everyone,

Am in the unfortunate position of having installed Python 2.1.3, Zope 
2.6.0 + Zwiki 0.13.0 a while ago to enable user contributed documents on 
the PostgreSQL Technical Documentation website:

http://techdocs.postgresql.org

However, Zope has "just stopped working" and leaves core dumps of the 
Python process whenever someone accesses a web page.

Just recompiled Python again (a FreeBSD 4.7 system):

./configure --prefix=/home/zope/local

And when doing "make test", 5 of the regression tests fail:

"5 tests failed: test_asynchat test_fork1 test_openpty test_thread 
test_threadedtempfile"

They fail saying that it can't start new threads.  Not a good sign. 
These are the relvant lines from the regression test (sorry, it's fairly 
lengthy):

***********

-su-2.05b$ make test
PYTHONPATH= ./python ./setup.py build
running build
running build_ext
skipping 'struct' extension (up-to-date)
skipping 'regex' extension (up-to-date)
skipping 'pcre' extension (up-to-date)
skipping '_weakref' extension (up-to-date)
skipping '_symtable' extension (up-to-date)
skipping 'xreadlines' extension (up-to-date)
skipping 'array' extension (up-to-date)
skipping 'cmath' extension (up-to-date)
skipping 'math' extension (up-to-date)
skipping 'strop' extension (up-to-date)
skipping 'time' extension (up-to-date)
skipping 'operator' extension (up-to-date)
skipping '_codecs' extension (up-to-date)
skipping '_testcapi' extension (up-to-date)
skipping 'unicodedata' extension (up-to-date)
skipping '_locale' extension (up-to-date)
skipping 'fcntl' extension (up-to-date)
skipping 'pwd' extension (up-to-date)
skipping 'grp' extension (up-to-date)
skipping 'errno' extension (up-to-date)
skipping 'select' extension (up-to-date)
skipping 'md5' extension (up-to-date)
skipping 'sha' extension (up-to-date)
skipping 'new' extension (up-to-date)
skipping 'binascii' extension (up-to-date)
skipping 'parser' extension (up-to-date)
skipping 'cStringIO' extension (up-to-date)
skipping 'cPickle' extension (up-to-date)
skipping 'mmap' extension (up-to-date)
skipping 'rotor' extension (up-to-date)
skipping 'syslog' extension (up-to-date)
skipping 'timing' extension (up-to-date)
skipping 'audioop' extension (up-to-date)
skipping 'imageop' extension (up-to-date)
skipping 'rgbimg' extension (up-to-date)
skipping 'readline' extension (up-to-date)
skipping 'crypt' extension (up-to-date)
skipping '_socket' extension (up-to-date)
skipping 'dbm' extension (up-to-date)
skipping 'bsddb' extension (up-to-date)
skipping 'mpz' extension (up-to-date)
skipping 'termios' extension (up-to-date)
skipping 'resource' extension (up-to-date)
skipping 'nis' extension (up-to-date)
skipping '_curses' extension (up-to-date)
skipping '_curses_panel' extension (up-to-date)
skipping 'fpectl' extension (up-to-date)
skipping 'zlib' extension (up-to-date)
skipping 'pyexpat' extension (up-to-date)
running build_scripts
not copying /home/zope/install/Python-2.1.3/Tools/scripts/pydoc (up-to-date)
./python -c 'import sys ; from distutils.util import get_platform ; 
print get_platform()+"-"+sys.ver
sion[0:3]' >platform
find ./Lib -name '*.py[co]' -print | xargs rm -f
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
test_grammar
test_opcodes
test_operations
test_builtin
test_exceptions
test_types
test_MimeWriter
test_StringIO
test___all__
test___future__
test_al
test test_al skipped --  No module named al
test_array
test_asynchat
test test_asynchat crashed -- thread.error: can't start new thread

test_atexit
test_audioop
test_augassign
test_bastion
test_binascii
test_binhex
test_bisect
test_bsddb
test_bufio
test_capi
test_cd
test test_cd skipped --  No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test test_cl skipped --  No module named cl
test_class
test_cmath
test_coercion
test_compare
test_compile
test_complex
test_contains
test_cookie
test_copy_reg
test_cpickle
test_crypt
test_dbm
test_difflib
test_dl
test test_dl skipped --  No module named dl
test_doctest
test_dospath
test_dumbdbm
test_errno
test_extcall
test_fcntl
test_file
test_fnmatch
test_fork1
test test_fork1 crashed -- thread.error: can't start new thread

test_format
test_funcattrs
test_future
test_gc
test_gdbm
test test_gdbm skipped --  No module named gdbm
test_getopt
test_gettext
test_gl
test test_gl skipped --  No module named gl
test_global
test_grp
test_gzip
test_hash
test_httplib
test_imageop
test_imgfile
test test_imgfile skipped --  No module named imgfile
test_import
test_inspect
test_largefile
@test exists: 0
test_linuxaudiodev
test test_linuxaudiodev skipped --  No module named linuxaudiodev
test_locale
test test_locale skipped --  test locale en_US not supported
test_long
test_longexp
test_mailbox
test_math
test_md5
test_mimetools
test_minidom
test_mmap
test_mutants
test_new
test_nis
test test_nis skipped --  No NIS master found for any map
test_ntpath
test_openpty
test test_openpty crashed -- exceptions.OSError: [Errno 2] No such file 
or directory
test_operator
test_parser
test_pickle
test_pkg
test_poll
test_popen
test_popen2
test_posixpath
test_pow
test_profile
test_pty
test test_pty skipped --  Pseudo-terminals (seemingly) not functional.
test_pwd
test_pyexpat
test_re
test_regex
test_rfc822
test_rgbimg
test_richcmp
test_rotor
test_sax
test_scope
test_select
test_sha
test_signal
test_socket
test_socketserver
test test_socketserver skipped --  test_socketserver can only be run 
manually
test_sre
test_strftime
test_string
test_strop
test_struct
test_sunaudiodev
test test_sunaudiodev skipped --  No module named sunaudiodev
test_sundry
test_symtable
test_thread
test test_thread crashed -- thread.error: can't start new thread

test_threadedtempfile
test test_threadedtempfile crashed -- thread.error: can't start new thread

test_time
test_timing
test_tokenize
test_traceback
test_ucn
test_unicode
test_unicodedata
test_unpack
test_urllib
test_urlparse
test_userdict
test_userlist
test_userstring
test_wave
test_weakref
test_winreg
test test_winreg skipped --  No module named _winreg
test_winsound
test test_winsound skipped --  No module named winsound
test_xmllib
test_xreadline
test_zipfile
test_zlib
121 tests OK.
5 tests failed: test_asynchat test_fork1 test_openpty test_thread 
test_threadedtempfile
15 tests skipped: test_al test_cd test_cl test_dl test_gdbm test_gl 
test_imgfile test_linuxaudiodev
test_locale test_nis test_pty test_socketserver test_sunaudiodev 
test_winreg test_winsound
*** Error code 1 (ignored)
PYTHONPATH= ./python -tt ./Lib/test/regrtest.py -l
test_grammar
test_opcodes
test_operations
test_builtin
test_exceptions
test_types
test_MimeWriter
test_StringIO
test___all__
test___future__
test_al
test test_al skipped --  No module named al
test_array
test_asynchat
test test_asynchat crashed -- thread.error: can't start new thread

test_atexit
test_audioop
test_augassign
test_bastion
test_binascii
test_binhex
test_bisect
test_bsddb
test_bufio
test_capi
test_cd
test test_cd skipped --  No module named cd
test_cfgparser
test_cgi
test_charmapcodec
test_cl
test test_cl skipped --  No module named cl
test_class
test_cmath
test_coercion
test_compare
test_compile
test_complex
test_contains
test_cookie
test_copy_reg
test_cpickle
test_crypt
test_dbm
test_difflib
test_dl
test test_dl skipped --  No module named dl
test_doctest
test_dospath
test_dumbdbm
test_errno
test_extcall
test_fcntl
test_file
test_fnmatch
test_fork1
test test_fork1 crashed -- thread.error: can't start new thread

test_format
test_funcattrs
test_future
test_gc
test_gdbm
test test_gdbm skipped --  No module named gdbm
test_getopt
test_gettext
test_gl
test test_gl skipped --  No module named gl
test_global
test_grp
test_gzip
test_hash
test_httplib
test_imageop
test_imgfile
test test_imgfile skipped --  No module named imgfile
test_import
test_inspect
test_largefile
@test exists: 0
test_linuxaudiodev
test test_linuxaudiodev skipped --  No module named linuxaudiodev
test_locale
test test_locale skipped --  test locale en_US not supported
test_long
test_longexp
test_mailbox
test_math
test_md5
test_mimetools
test_minidom
test_mmap
test_mutants
test_new
test_nis
test test_nis skipped --  No NIS master found for any map
test_ntpath
test_openpty
test test_openpty crashed -- exceptions.OSError: [Errno 2] No such file 
or directory
test_operator
test_parser
test_pickle
test_pkg
test_poll
test_popen
test_popen2
test_posixpath
test_pow
test_profile
test_pty
test test_pty skipped --  Pseudo-terminals (seemingly) not functional.
test_pwd
test_pyexpat
test_re
test_regex
test_rfc822
test_rgbimg
test_richcmp
test_rotor
test_sax
test_scope
test_select
test_sha
test_signal
test_socket
test_socketserver
test test_socketserver skipped --  test_socketserver can only be run 
manually
test_sre
test_strftime
test_string
test_strop
test_struct
test_sunaudiodev
test test_sunaudiodev skipped --  No module named sunaudiodev
test_sundry
test_symtable
test_thread
test test_thread crashed -- thread.error: can't start new thread

test_threadedtempfile
test test_threadedtempfile crashed -- thread.error: can't start new thread

test_time
test_timing
test_tokenize
test_traceback
test_ucn
test_unicode
test_unicodedata
test_unpack
test_urllib
test_urlparse
test_userdict
test_userlist
test_userstring
test_wave
test_weakref
test_winreg
test test_winreg skipped --  No module named _winreg
test_winsound
test test_winsound skipped --  No module named winsound
test_xmllib
test_xreadline
test_zipfile
test_zlib
121 tests OK.
5 tests failed: test_asynchat test_fork1 test_openpty test_thread 
test_threadedtempfile
15 tests skipped: test_al test_cd test_cl test_dl test_gdbm test_gl 
test_imgfile test_linuxaudiodev
test_locale test_nis test_pty test_socketserver test_sunaudiodev 
test_winreg test_winsound
*** Error code 1

Stop in /home/zope/install/Python-2.1.3.
-su-2.05b$ ls -la
total 5138
drwxr-xr-x  18 zope  zope     1024 Feb 19 07:32 .
drwxr-xr-x   3 zope  zope      512 Feb 17 23:06 ..
-rw-r--r--   1 zope  zope       79 May  2  2000 .cvsignore
drwxr-xr-x  23 zope  zope      512 Apr  8  2002 Demo
drwxr-xr-x  19 zope  zope      512 Apr  8  2002 Doc
drwxr-xr-x   2 zope  zope      512 Apr  8  2002 Grammar
drwxr-xr-x   2 zope  zope     1536 Apr  8  2002 Include
-rw-r--r--   1 zope  zope    11819 Apr  8  2002 LICENSE
drwxr-xr-x  29 zope  zope     7168 Feb 19 07:29 Lib
drwxr-xr-x  22 zope  zope      512 Apr  8  2002 Mac
-rw-r--r--   1 zope  zope    24064 Feb 19 07:22 Makefile
-rw-r--r--   1 zope  zope    22385 Feb 19 07:22 Makefile.pre
-rw-r--r--   1 zope  zope    22341 Jul 19  2001 Makefile.pre.in
drwxr-xr-x   3 zope  zope     1024 Apr  8  2002 Misc
drwxr-xr-x   2 zope  zope     3072 Feb 19 07:27 Modules
drwxr-xr-x   2 zope  zope     1536 Feb 19 07:26 Objects
drwxr-xr-x   4 zope  zope      512 Apr  8  2002 PC
drwxr-xr-x   2 zope  zope     1024 Apr  8  2002 PCbuild
drwxr-xr-x   2 zope  zope     1024 Feb 19 07:26 Parser
drwxr-xr-x   2 zope  zope     2560 Feb 19 07:26 Python
-rw-r--r--   1 zope  zope    39771 Apr  8  2002 README
drwxr-xr-x   5 zope  zope      512 Apr  8  2002 RISCOS
drwxr-xr-x  16 zope  zope      512 Apr  8  2002 Tools
-rw-r--r--   1 zope  zope     6452 Dec 22  2001 acconfig.h
drwxr-xr-x   5 zope  zope      512 Feb 18 01:25 build
-rw-r--r--   1 zope  zope        2 Feb 19 07:27 buildno
-rw-r--r--   1 zope  zope     9861 Feb 19 07:22 config.cache
-rw-r--r--   1 zope  zope    18395 Feb 18 00:17 config.h
-rw-r--r--   1 zope  zope    17496 Dec 22  2001 config.h.in
-rw-r--r--   1 zope  zope   110967 Feb 19 07:22 config.log
-rwxr-xr-x   1 zope  zope    36289 Feb 19 07:22 config.status
-rwxr-xr-x   1 zope  zope   186027 Dec 27  2001 configure
-rw-r--r--   1 zope  zope    39085 Dec 27  2001 configure.in
-rwxr-xr-x   1 zope  zope     5598 Feb 10  2001 install-sh
-rw-r--r--   1 zope  zope  3143730 Feb 19 07:27 libpython2.1.a
-rw-r--r--   1 zope  zope       28 Feb 19 07:27 platform
-rwxr-xr-x   1 zope  zope  1431252 Feb 19 07:27 python
-rw-r--r--   1 zope  zope    25843 Dec 27  2001 setup.py
-su-2.05b$ python Lib/test/test_asynchat.py
Traceback (most recent call last):
   File "Lib/test/test_asynchat.py", line 58, in ?
     main()
   File "Lib/test/test_asynchat.py", line 53, in main
     c = echo_client()
   File "Lib/test/test_asynchat.py", line 34, in __init__
     self.connect((HOST, PORT))
   File "/usr/local/lib/python2.2/asyncore.py", line 319, in connect
     raise socket.error, err
socket.error: 61
^C^Z
[1]+  Stopped                 python Lib/test/test_asynchat.py
-su-2.05b$ kill %1
[1]+  Terminated              python Lib/test/test_asynchat.py
-su-2.05b$ python Lib/test/test_fork1
python: can't open file 'Lib/test/test_fork1'
-su-2.05b$ python Lib/test/test_fork1.py
Traceback (most recent call last):
   File "Lib/test/test_fork1.py", line 75, in ?
     main()
   File "Lib/test/test_fork1.py", line 47, in main
     verify(a == range(NUM_THREADS))
   File "Lib/test/test_support.py", line 91, in verify
     raise TestFailed(reason)
test_support.TestFailed: test failed
-su-2.05b$

***********

Does anyone have any ideas on how to get this working again?

Regards and best wishes,

Justin Clift

-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi





More information about the Python-list mailing list