Re: mod_python 3.2.3b available for testing
Jim Gallacher wrote: Dominic Wong wrote: -1 for Gentoo Linux 2.6.13-gentoo-r3 Apache 2.0.54 Python 2.4.1 Hi Dominic, When you have a chance could you apply the following patch and re-run the tests? Thanks, Jim Hi Jim, I pretty much get the same output: [EMAIL PROTECTED] /usr/local/src/mod_python-3.2.3b/test $ python test.py * Testing LoadModule Creating config listen port: 32863 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Testing server.register_cleanup()... Creating config listen port: 32866 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Testing apache.register_cleanup()... Creating config listen port: 32869 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Running the per-request test suite... Creating config listen port: 32873 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf * Testing req.document_root() . * Testing req.add_handler() . * Testing req.allow_methods() . * Testing req.get_basic_auth_pw() . * Testing req.requires() . * Testing req.internal_redirect() . * Testing req.read() writing 10 bytes... response size: 10 read/write ok, now lets try causing a timeout (should be 5 secs) . * Testing req.readline() writing 120004 bytes... response size: 120004 . * Testing req.readlines() writing 120004 bytes... response size: 120004 . * Testing req.register_cleanup() . * Testing req.headers_out connect: (127.0.0.1, 32873) send: 'GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: test_req_headers_out:32873\r\n\r\n' reply: '' E * Testing req.sendfile() with offset and length . * Testing req.sendfile() without offset and length . * Testing req.sendfile() for a file which is a symbolic link . * Testing PythonOption . * Testing PythonOption override . * Testing PythonOption remove . * Testing PythonOption remove2 . * Testing util_fieldstorage() . * Testing PostReadRequestHandler . * Testing TransHandler . * Testing PythonOutputFilter . * Testing PythonConnectionHandler . * Testing PythonImport . * Testing | .ext syntax . * Testing mod_python.cgihandler . * Testing mod_python.psp . * Testing Cookie.Cookie . * Testing Cookie.MarshalCookie . * Testing Session.Session . * Testing interpreter per directive . * Testing interpreter per directory . * Testing mod_python.publisher . * Testing mod_python.publisher old-style instance publishing . * Testing mod_python.publisher instance publishing . * Testing mod_python.publisher security . * Testing mod_python.publisher iterators . * Testing mod_python.publisher hierarchy . == ERROR: test_req_headers_out (__main__.PerRequestTestCase) -- Traceback (most recent call last): File "test.py", line 597, in test_req_headers_out response = conn.getresponse() File "/usr/lib/python2.4/httplib.py", line 863, in getresponse response.begin() File "/usr/lib/python2.4/httplib.py", line 333, in begin version, status, reason = self._read_status() File "/usr/lib/python2.4/httplib.py", line 297, in _read_status raise BadStatusLine(line) BadStatusLine -- Ran 38 tests in 9.836s FAILED (errors=1) F Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf == FAIL: testPerRequestTests (__main__.PerInstanceTestCase) -- Traceback (most recent call last): File "test.py", line 1489, in testPerRequestTests self.failUnless(result.wasSuccessful()) AssertionError -- Ran 4 tests in 26.450s FAILED (failures=1) Cheers, Dom
Re: mod_python 3.2.3b available for testing
Dominic Wong wrote: -1 for Gentoo Linux 2.6.13-gentoo-r3 Apache 2.0.54 Python 2.4.1 Hi Dominic, When you have a chance could you apply the following patch and re-run the tests? Thanks, Jim Index: test/test.py === --- test/test.py(revision 327731) +++ test/test.py(working copy) @@ -590,6 +590,7 @@ print "\n * Testing req.headers_out" conn = httplib.HTTPConnection("127.0.0.1:%s" % PORT) +conn.set_debuglevel(1) conn.putrequest("GET", "/", skip_host=1) conn.putheader("Host", "test_req_headers_out:%s" % PORT) conn.endheaders()
Re: mod_python 3.2.3b available for testing
+1 MacOSX 10.4.2 gcc 4.0.0 (apple) Python-2.4.2 Apache-2.0.55 cheers, Ron Ron Reisor <[EMAIL PROTECTED]> (RWR3) University of Delaware Information Technologies/Network and Systems Services Computing Center/192 South Chapel Street/Newark DE, 19716 pgp finger print: 0D 73 06 6F D3 6A 99 D3 F5 D5 6E FF 3B B9 7C 2C
Re: mod_python 3.2.3b available for testing
Indrek Järve wrote: Graham Dumpleton wrote: Jim Gallacher wrote .. Indrek Järve wrote: Jim Gallacher wrote: And see if any tests fail. If they pass, send a +1 to the list, if they fail, send the details (the versions of OS, Python and Apache, the test output, and suggestions, if any). Thank you, Jim Gallacher +1 on SuSE Linux 9.2 (i586) +1 on SuSE Linux 9.2 (x86-64) once I edited the configure script and replaced lib/ with lib64/ in PY_STD_LIB and PyLIBP I wonder how we might correctly determine the 'lib' part of the path. The relevant section of configure.in is: # find out compiled in install prefix AC_MSG_CHECKING(Python install prefix) PyEXEC_INSTALLDIR=`$PYTHON_BIN -c "import sys; print sys.exec_prefix"` AC_MSG_RESULT($PyEXEC_INSTALLDIR) # this is where the Python libraries will get installed AC_SUBST(PY_STD_LIB) PY_STD_LIB=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION} # set python std library variable AC_SUBST(LIBS) PyLIBP=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION} For those of you not familiar with autoconf, we use configure.in as the source file to generate the configure file. Personally, I would try and use "distutils" to make these judgements as to where things live rather than constructing the standard lib directory path from prefix and version. For example: python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=1)' Yields: /usr/local/sys/python/lib/python2.3 On one Solaris platform I use. On Mac OS X it yields: /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3 Indrek, can you see what this command yields for you and whether it correctly yields what you need. Maybe it is a better of way of working this out. Graham The distutils example above correctly yields /usr/lib64/python2.3/ on the Opteron box. OK, that looks like the way to go. I will make the correction to configure.in and configure. Jim
Re: mod_python 3.2.3b available for testing
-1 for Gentoo Linux 2.6.13-gentoo-r3 Apache 2.0.54 Python 2.4.1 Haven't really got time to see what it is that's causing it right now: [EMAIL PROTECTED] /usr/local/src/mod_python-3.2.3b/test $ python test.py * Testing LoadModule Creating config listen port: 32771 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Testing server.register_cleanup()... Creating config listen port: 32774 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Testing apache.register_cleanup()... Creating config listen port: 32777 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf . * Running the per-request test suite... Creating config listen port: 32781 Starting Apache /usr/sbin/apache2 -k start -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf * Testing req.document_root() . * Testing req.add_handler() . * Testing req.allow_methods() . * Testing req.get_basic_auth_pw() . * Testing req.requires() . * Testing req.internal_redirect() . * Testing req.read() writing 10 bytes... response size: 10 read/write ok, now lets try causing a timeout (should be 5 secs) . * Testing req.readline() writing 120004 bytes... response size: 120004 . * Testing req.readlines() writing 120004 bytes... response size: 120004 . * Testing req.register_cleanup() . * Testing req.headers_out E * Testing req.sendfile() with offset and length . * Testing req.sendfile() without offset and length . * Testing req.sendfile() for a file which is a symbolic link . * Testing PythonOption . * Testing PythonOption override . * Testing PythonOption remove . * Testing PythonOption remove2 . * Testing util_fieldstorage() . * Testing PostReadRequestHandler . * Testing TransHandler . * Testing PythonOutputFilter . * Testing PythonConnectionHandler . * Testing PythonImport . * Testing | .ext syntax . * Testing mod_python.cgihandler . * Testing mod_python.psp . * Testing Cookie.Cookie . * Testing Cookie.MarshalCookie . * Testing Session.Session . * Testing interpreter per directive . * Testing interpreter per directory . * Testing mod_python.publisher . * Testing mod_python.publisher old-style instance publishing . * Testing mod_python.publisher instance publishing . * Testing mod_python.publisher security . * Testing mod_python.publisher iterators . * Testing mod_python.publisher hierarchy . == ERROR: test_req_headers_out (__main__.PerRequestTestCase) -- Traceback (most recent call last): File "test.py", line 596, in test_req_headers_out response = conn.getresponse() File "/usr/lib/python2.4/httplib.py", line 863, in getresponse response.begin() File "/usr/lib/python2.4/httplib.py", line 333, in begin version, status, reason = self._read_status() File "/usr/lib/python2.4/httplib.py", line 297, in _read_status raise BadStatusLine(line) BadStatusLine -- Ran 38 tests in 9.759s FAILED (errors=1) F Stopping Apache... /usr/sbin/apache2 -k stop -f /usr/local/src/mod_python-3.2.3b/test/conf/test.conf == FAIL: testPerRequestTests (__main__.PerInstanceTestCase) -- Traceback (most recent call last): File "test.py", line 1488, in testPerRequestTests self.failUnless(result.wasSuccessful()) AssertionError -- Ran 4 tests in 26.496s FAILED (failures=1) Jim Gallacher wrote: A new mod_python 3.2.3 beta tarball is now available for testing. A Windows binary is also available. This release is similar to 3.2.2b but fixes a couple a small issues where a non-threaded python is used. Here are the rules: In order for a file to be officially announced, it has to be tested by developers on the dev list. Anyone subscribed to this list can (and should feel obligated to :-) ) test it, and provide feedback *to _this_ list*! (Not the [EMAIL PROTECTED] list, and preferably not me personally). The files are (temporarily) available here: http://www.modpython.org/dist/ Please download it, then do the usual $ ./configure --with-apxs=/wherever/it/is $ make $ (su) # make install Then (as non-root user!) $ cd test $ python test.py And see if any t
Re: mod_python 3.2.3b available for testing
Graham Dumpleton wrote: Jim Gallacher wrote .. Indrek Järve wrote: Jim Gallacher wrote: And see if any tests fail. If they pass, send a +1 to the list, if they fail, send the details (the versions of OS, Python and Apache, the test output, and suggestions, if any). Thank you, Jim Gallacher +1 on SuSE Linux 9.2 (i586) +1 on SuSE Linux 9.2 (x86-64) once I edited the configure script and replaced lib/ with lib64/ in PY_STD_LIB and PyLIBP I wonder how we might correctly determine the 'lib' part of the path. The relevant section of configure.in is: # find out compiled in install prefix AC_MSG_CHECKING(Python install prefix) PyEXEC_INSTALLDIR=`$PYTHON_BIN -c "import sys; print sys.exec_prefix"` AC_MSG_RESULT($PyEXEC_INSTALLDIR) # this is where the Python libraries will get installed AC_SUBST(PY_STD_LIB) PY_STD_LIB=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION} # set python std library variable AC_SUBST(LIBS) PyLIBP=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION} For those of you not familiar with autoconf, we use configure.in as the source file to generate the configure file. Personally, I would try and use "distutils" to make these judgements as to where things live rather than constructing the standard lib directory path from prefix and version. For example: python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=1)' Yields: /usr/local/sys/python/lib/python2.3 On one Solaris platform I use. On Mac OS X it yields: /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3 Indrek, can you see what this command yields for you and whether it correctly yields what you need. Maybe it is a better of way of working this out. Graham The distutils example above correctly yields /usr/lib64/python2.3/ on the Opteron box. Best regards, Indrek Järve Inversion Software OÜ