You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Gregory (Grisha) Trubetskoy" <gr...@ispol.com> on 2004/02/17 18:31:56 UTC

Please test 3.1.3!

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 mod_python@modpython.org list, and preferably not me personally)

The files are available here:

http://www.apache.org/dist/httpd/modpython/

[no windows installer yet]

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 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,

Grisha


Re: Please test 3.1.3!

Posted by David Fraser <da...@sjsoft.com>.
David Fraser wrote:

> Gregory (Grisha) Trubetskoy wrote:
>
>> 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 mod_python@modpython.org list, and preferably not me 
>> personally)
>>
>> The files are available here:
>>
>> http://www.apache.org/dist/httpd/modpython/
>>
>> [no windows installer yet]
>>
>> Please download it, then do the usual
>>
>> $ ./configure --with-apxs=/wherever/it/is
>> $ make
>> $ (su)
>>
>>
> You shouldn't actually have to do a make install to test as it looks 
> like the test methods load the mod_python module from the source 
> directory...

My mistake, the python modules are needed for the test.
However, make install_py_lib would be sufficient.
I think it would be even better to manually alter the include path, so 
that this can be tested without messing up an existing installation on a 
machine...

> As a side note, it may be a good idea to include ServerSignature in 
> the test.conf, and include a test that the right version is in fact 
> being tested...
>
>> # make install
>>
>>
> Initial problem: 3.1.3 requires flex 2.5.31 for reentrant support.
> This is mentioned in src/Makefile.in but not in the README
> I think this should definitely be changed before releasing ...
>
> In addition, the path to flex is hardcoded as /usr/local/bin/flex, and 
> is not available/detectable by a configure option
> A --disable-psp configure option which would remove the requirement 
> for flex (as suggested by Barry Pedersen) would also be appreciated
> A nasty alternative would be to include the produced psp_parser.c, but 
> I don't like that...
>
>> Then (as non-root user!)
>>
>> $ cd test
>> $ python test.py
>>
>> 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).
>
+1, no failures on Fedora Core 1, with Python2.2.2 and Apache 2.0.47

David



Re: Please test 3.1.3!

Posted by "Gregory (Grisha) Trubetskoy" <gr...@ispol.com>.

On Wed, 18 Feb 2004, David Fraser wrote:

> In addition, the path to flex is hardcoded as /usr/local/bin/flex, and
> is not available/detectable by a configure option
> A --disable-psp configure option which would remove the requirement for

folks, you're exaggerating the problem a bit. Flex is NOT necessary to
compile mod_python, because the flex-generated psp_parser.c file is
distributed with it already.

The problem is the date of the file, which for some reason happens to be
before psp_parser.l, on which it depends.

I already fixed this problem in CVS.

For a clean compile of the 3.1.3 that is (was) on www.apache.org, just do:

$ touch src/psp_parser.c

Grisha

RE: Please test 3.1.3!

Posted by Sean Treadway <se...@superchannel.org>.
OK, the versioning of flex threw me off where 2.5.31 > 2.5.4.  I have
downloaded the 2.5.31 source, but that doesn't compile either:

filter.c: In function `filter_apply_chain':
filter.c:161: invalid lvalue in assignment

(attempt to reassign stdin)

Does anyone that uses FreeBSD i386 have flex packages, patches, or
compile tips?

-Sean

> -----Original Message-----
> From: David Fraser [mailto:davidf@sjsoft.com]
> Sent: Wednesday, February 18, 2004 12:46 PM
> To: Sean Treadway
> Cc: python-dev@httpd.apache.org
> Subject: Re: Please test 3.1.3!
> 
> Sean Treadway wrote:
> 
> >After symbolically linking /usr/bin/flex to /usr/local/bin/flex,
there
> >are still build problems with flex version 2.5.4 / FreeBSD
4.5-RELEASE:
> >
> >/usr/local/bin/flex -R -opsp_parser.c
--header-file=include/psp_flex.h
> >psp_parser.l
> >/usr/local/bin/flex: unknown flag 'R'.  For usage, try
> >        /usr/local/bin/flex --help
> >*** Error code 1
> >
> >-Sean
> >
> >
> >
> >
> Yes, it doesn't work because it requires the -R setting, which enables
> reentrant parser generation.
> Note that 2.5.31 is a later version than 2.5.4 ... which is included
in
> Fedora Core 1 for example
> 
> All the more reason to add a configure check
> 
> David



Re: Please test 3.1.3!

Posted by David Fraser <da...@sjsoft.com>.
Sean Treadway wrote:

>After symbolically linking /usr/bin/flex to /usr/local/bin/flex, there
>are still build problems with flex version 2.5.4 / FreeBSD 4.5-RELEASE:
>
>/usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h
>psp_parser.l
>/usr/local/bin/flex: unknown flag 'R'.  For usage, try
>        /usr/local/bin/flex --help
>*** Error code 1
>
>-Sean
>
>
>  
>
Yes, it doesn't work because it requires the -R setting, which enables 
reentrant parser generation.
Note that 2.5.31 is a later version than 2.5.4 ... which is included in 
Fedora Core 1 for example

All the more reason to add a configure check

David

RE: Please test 3.1.3!

Posted by Sean Treadway <se...@superchannel.org>.
After symbolically linking /usr/bin/flex to /usr/local/bin/flex, there
are still build problems with flex version 2.5.4 / FreeBSD 4.5-RELEASE:

/usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h
psp_parser.l
/usr/local/bin/flex: unknown flag 'R'.  For usage, try
        /usr/local/bin/flex --help
*** Error code 1

-Sean



Re: Please test 3.1.3!

Posted by David Fraser <da...@sjsoft.com>.
Gregory (Grisha) Trubetskoy wrote:

>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 mod_python@modpython.org list, and preferably not me personally)
>
>The files are available here:
>
>http://www.apache.org/dist/httpd/modpython/
>
>[no windows installer yet]
>
>Please download it, then do the usual
>
>$ ./configure --with-apxs=/wherever/it/is
>$ make
>$ (su)
>  
>
You shouldn't actually have to do a make install to test as it looks 
like the test methods load the mod_python module from the source 
directory...
As a side note, it may be a good idea to include ServerSignature in the 
test.conf, and include a test that the right version is in fact being 
tested...

># make install
>  
>
Initial problem: 3.1.3 requires flex 2.5.31 for reentrant support.
This is mentioned in src/Makefile.in but not in the README
I think this should definitely be changed before releasing ...

In addition, the path to flex is hardcoded as /usr/local/bin/flex, and 
is not available/detectable by a configure option
A --disable-psp configure option which would remove the requirement for 
flex (as suggested by Barry Pedersen) would also be appreciated
A nasty alternative would be to include the produced psp_parser.c, but I 
don't like that...

>Then (as non-root user!)
>
>$ cd test
>$ python test.py
>
>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,
>
>Grisha
>
>  
>


Re: Please test 3.1.3!

Posted by Ron Reisor <ro...@UDel.Edu>.
Testing on Solaris9, httpd-2.0.48, Python-2.3.3, and mod_python-3.1.3 as
of Feb 23:

+1

gir.nss % cd mod_python-3.1.3
gir.nss % cd test
gir.nss % python test.py

* Testing LoadModule
  Creating config....
    listen port: 32809
  Starting Apache....
     /opt/home/ron/test/bin/httpd -k start -f /opt/home/ron/dev/mod_python-3.1.3/test/conf/test.conf
  Stopping Apache...
     /opt/home/ron/test/bin/httpd -k stop -f /opt/home/ron/dev/mod_python-3.1.3/test/conf/test.conf
.
* Testing server.register_cleanup()...
  Creating config....
    listen port: 32813
  Starting Apache....
     /opt/home/ron/test/bin/httpd -k start -f /opt/home/ron/dev/mod_python-3.1.3/test/conf/test.conf
  Stopping Apache...
     /opt/home/ron/test/bin/httpd -k stop -f /opt/home/ron/dev/mod_python-3.1.3/test/conf/test.conf
.
* Running the per-request test suite...
  Creating config....
    listen port: 32818
  Starting Apache....
     /opt/home/ron/test/bin/httpd -k start -f /opt/home/ron/dev/mod_python-3.1.3/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 100000 bytes...
    response size: 100000

    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
.
  * Testing req.sendfile()
.
  * 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 internally (status messages go to error_log)
.
----------------------------------------------------------------------
Ran 25 tests in 12.787s

OK
  Stopping Apache...
     /opt/home/ron/test/bin/httpd -k stop -f /opt/home/ron/dev/mod_python-3.1.3/test/conf/test.conf
.
----------------------------------------------------------------------
Ran 3 tests in 26.315s

OK
gir.nss %

Ron Reisor <ro...@udel.edu> (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: Please test 3.1.3!

Posted by Scott Sanders <sc...@dotnot.org>.
Tested on debian-sarge with 2.0.48, and it works great.

Scott

On Feb 17, 2004, at 9:31 AM, Gregory (Grisha) Trubetskoy wrote:

>
> 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 mod_python@modpython.org list, and preferably not me 
> personally)
>
> The files are available here:
>
> http://www.apache.org/dist/httpd/modpython/
>
> [no windows installer yet]
>
> 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 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,
>
> Grisha
>


Re: Please test 3.1.3!

Posted by "Gregory (Grisha) Trubetskoy" <gr...@ispol.com>.
OK, the files in

http://www.apache.org/dist/httpd/modpython/

are gone since we're not getting as confident +1's as I expected... :-)

i'll put something in

http://www.apache.org/dist/httpd/modpython/

later

Grisha

On Wed, 18 Feb 2004, Sander Striker wrote:

> On Tue, 2004-02-17 at 18:31, Gregory (Grisha) Trubetskoy wrote:
> > 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 mod_python@modpython.org list, and preferably not me personally)
> >
> > The files are available here:
> >
> > http://www.apache.org/dist/httpd/modpython/
>
> And the vote has to happen before the release.  By putting it in
> this area, you're effectively already spreading it across all mirrors.
> No biggie for once, but something to remember for the future.
>
> Put prereleases in httpd.apache.org/dev/dist/ for testing, move them
> to www.apache.org/dist/httpd/modpython/ after testing and +1s.
>
> Thanks,
>
> Sander
>

Re: Please test 3.1.3!

Posted by Sander Striker <st...@apache.org>.
On Tue, 2004-02-17 at 18:31, Gregory (Grisha) Trubetskoy wrote:
> 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 mod_python@modpython.org list, and preferably not me personally)
> 
> The files are available here:
> 
> http://www.apache.org/dist/httpd/modpython/

And the vote has to happen before the release.  By putting it in
this area, you're effectively already spreading it across all mirrors.
No biggie for once, but something to remember for the future.

Put prereleases in httpd.apache.org/dev/dist/ for testing, move them
to www.apache.org/dist/httpd/modpython/ after testing and +1s.

Thanks,

Sander

Re: Please test 3.1.3!

Posted by Ron Reisor <ro...@UDel.Edu>.
I can't reproduce this problem on Mac OS X 10.3.2 but here's some
suggestions/guesses...

I'm using Python-2.3.3 built as a framework.

With the NextStep framework _environ is set in posixmodule.c using
NSGetEnviron().  If you don't build a framework, _environ is declared
extern so must come from some other library.

Also, the framework build creates a nice shared library.

cheers,

Ron


On Wed, 18 Feb 2004, Gregory (Grisha) Trubetskoy wrote:

>
> Well, I'm glad it compiles for you. I still can't get past:
>
> ld: Undefined symbols:
> _environ
>
> error, and have no clue as to what this means. Pretty much same setup as
> yours. :-(
>
> Grisha
>
>
> On Tue, 17 Feb 2004, Mark McClain wrote:
>
> > I would like to give it a +1 because it compiles out of the box for OS
> > X, but I get some errors.  I tried it on the box that I have upgraded
> > over time and my stock 10.3 updated to 10.3.2.  All tests were run
> > using Apache 2.0.48.
> >
> > *** Note the flex compilation bug is still present in this release.
> >
> > mark
> >
> >
> > Here are my test results.
> >
> > On Mac 10.3.2, MacPython 2.3, flex 2.5.31 box... I get these errors.
> >
> > ======================================================================
> > FAIL: test_req_requires (__main__.PerRequestTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >    File "test.py", line 407, in test_req_requires
> >      self.fail(`rsp`)
> >    File
> > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> > unittest.py", line 260, in fail
> >      raise self.failureException, msg
> > AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
> > 2.0//EN">\n<html><head>\n<title>401 Authorization
> > Required</title>\n</head><body>\n<h1>Authorization
> > Required</h1>\n<p>This server could not verify that you\nare authorized
> > to access the document\nrequested.  Either you supplied the
> > wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t
> > understand how to supply\nthe credentials
> > required.</p>\n</body></html>\n'
> >
> > ----------------------------------------------------------------------
> > Ran 25 tests in 9.783s
> >
> > FAILED (failures=1)
> > F  Stopping Apache...
> >       /Users/mark/apache2/bin/httpd -k stop -f
> > /Users/mark/src/mod_python-3.1.3/test/conf/test.conf
> >
> > ======================================================================
> > FAIL: test_srv_register_cleanup (__main__.PerInstanceTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >    File "test.py", line 1066, in test_srv_register_cleanup
> >      self.fail("Could not find test message in error_log")
> >    File
> > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> > unittest.py", line 260, in fail
> >      raise self.failureException, msg
> > AssertionError: Could not find test message in error_log
> >
> > ======================================================================
> > FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >    File "test.py", line 1037, in testPerRequestTests
> >      self.failUnless(result.wasSuccessful())
> >    File
> > "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> > unittest.py", line 268, in failUnless
> >      if not expr: raise self.failureException, msg
> > AssertionError
> >
> > ----------------------------------------------------------------------
> > Ran 3 tests in 20.504s
> >
> > FAILED (failures=2)
> >
> >
> >  From the stock distribution using 10.3.2 and the Python shipped with
> > 10.3.
> >
> > ======================================================================
> > FAIL: test_req_requires (__main__.PerRequestTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >    File "test.py", line 407, in test_req_requires
> >      self.fail(`rsp`)
> >    File
> > "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> > python2.3/unittest.py", line 260, in fail
> >      raise self.failureException, msg
> > AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
> > 2.0//EN">\n<html><head>\n<title>401 Authorization
> > Required</title>\n</head><body>\n<h1>Authorization
> > Required</h1>\n<p>This server could not verify that you\nare authorized
> > to access the document\nrequested.  Either you supplied the
> > wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t
> > understand how to supply\nthe credentials
> > required.</p>\n</body></html>\n'
> >
> > ----------------------------------------------------------------------
> > Ran 25 tests in 10.078s
> >
> > FAILED (failures=1)
> > F  Stopping Apache...
> >       /Users/mark/apache/bin/httpd -k stop -f
> > /Users/mark/src/mod_python-3.1.3/test/conf/test.conf
> >
> > ======================================================================
> > FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >    File "test.py", line 1037, in testPerRequestTests
> >      self.failUnless(result.wasSuccessful())
> >    File
> > "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> > python2.3/unittest.py", line 268, in failUnless
> >      if not expr: raise self.failureException, msg
> > AssertionError
> >
> > ----------------------------------------------------------------------
> > Ran 3 tests in 21.374s
> >
> > FAILED (failures=1)
> >
>

Ron Reisor <ro...@udel.edu> (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: Please test 3.1.3!

Posted by "Gregory (Grisha) Trubetskoy" <gr...@ispol.com>.
Well, I'm glad it compiles for you. I still can't get past:

ld: Undefined symbols:
_environ

error, and have no clue as to what this means. Pretty much same setup as
yours. :-(

Grisha


On Tue, 17 Feb 2004, Mark McClain wrote:

> I would like to give it a +1 because it compiles out of the box for OS
> X, but I get some errors.  I tried it on the box that I have upgraded
> over time and my stock 10.3 updated to 10.3.2.  All tests were run
> using Apache 2.0.48.
>
> *** Note the flex compilation bug is still present in this release.
>
> mark
>
>
> Here are my test results.
>
> On Mac 10.3.2, MacPython 2.3, flex 2.5.31 box... I get these errors.
>
> ======================================================================
> FAIL: test_req_requires (__main__.PerRequestTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "test.py", line 407, in test_req_requires
>      self.fail(`rsp`)
>    File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> unittest.py", line 260, in fail
>      raise self.failureException, msg
> AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
> 2.0//EN">\n<html><head>\n<title>401 Authorization
> Required</title>\n</head><body>\n<h1>Authorization
> Required</h1>\n<p>This server could not verify that you\nare authorized
> to access the document\nrequested.  Either you supplied the
> wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t
> understand how to supply\nthe credentials
> required.</p>\n</body></html>\n'
>
> ----------------------------------------------------------------------
> Ran 25 tests in 9.783s
>
> FAILED (failures=1)
> F  Stopping Apache...
>       /Users/mark/apache2/bin/httpd -k stop -f
> /Users/mark/src/mod_python-3.1.3/test/conf/test.conf
>
> ======================================================================
> FAIL: test_srv_register_cleanup (__main__.PerInstanceTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "test.py", line 1066, in test_srv_register_cleanup
>      self.fail("Could not find test message in error_log")
>    File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> unittest.py", line 260, in fail
>      raise self.failureException, msg
> AssertionError: Could not find test message in error_log
>
> ======================================================================
> FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "test.py", line 1037, in testPerRequestTests
>      self.failUnless(result.wasSuccessful())
>    File
> "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/
> unittest.py", line 268, in failUnless
>      if not expr: raise self.failureException, msg
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 3 tests in 20.504s
>
> FAILED (failures=2)
>
>
>  From the stock distribution using 10.3.2 and the Python shipped with
> 10.3.
>
> ======================================================================
> FAIL: test_req_requires (__main__.PerRequestTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "test.py", line 407, in test_req_requires
>      self.fail(`rsp`)
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/unittest.py", line 260, in fail
>      raise self.failureException, msg
> AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
> 2.0//EN">\n<html><head>\n<title>401 Authorization
> Required</title>\n</head><body>\n<h1>Authorization
> Required</h1>\n<p>This server could not verify that you\nare authorized
> to access the document\nrequested.  Either you supplied the
> wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t
> understand how to supply\nthe credentials
> required.</p>\n</body></html>\n'
>
> ----------------------------------------------------------------------
> Ran 25 tests in 10.078s
>
> FAILED (failures=1)
> F  Stopping Apache...
>       /Users/mark/apache/bin/httpd -k stop -f
> /Users/mark/src/mod_python-3.1.3/test/conf/test.conf
>
> ======================================================================
> FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File "test.py", line 1037, in testPerRequestTests
>      self.failUnless(result.wasSuccessful())
>    File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
> python2.3/unittest.py", line 268, in failUnless
>      if not expr: raise self.failureException, msg
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 3 tests in 21.374s
>
> FAILED (failures=1)
>

Re: Please test 3.1.3!

Posted by Mark McClain <ma...@gsoa.net>.
I would like to give it a +1 because it compiles out of the box for OS  
X, but I get some errors.  I tried it on the box that I have upgraded  
over time and my stock 10.3 updated to 10.3.2.  All tests were run  
using Apache 2.0.48.

*** Note the flex compilation bug is still present in this release.

mark


Here are my test results.

On Mac 10.3.2, MacPython 2.3, flex 2.5.31 box... I get these errors.

======================================================================
FAIL: test_req_requires (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 407, in test_req_requires
     self.fail(`rsp`)
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
unittest.py", line 260, in fail
     raise self.failureException, msg
AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML  
2.0//EN">\n<html><head>\n<title>401 Authorization  
Required</title>\n</head><body>\n<h1>Authorization  
Required</h1>\n<p>This server could not verify that you\nare authorized  
to access the document\nrequested.  Either you supplied the  
wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t  
understand how to supply\nthe credentials  
required.</p>\n</body></html>\n'

----------------------------------------------------------------------
Ran 25 tests in 9.783s

FAILED (failures=1)
F  Stopping Apache...
      /Users/mark/apache2/bin/httpd -k stop -f  
/Users/mark/src/mod_python-3.1.3/test/conf/test.conf

======================================================================
FAIL: test_srv_register_cleanup (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 1066, in test_srv_register_cleanup
     self.fail("Could not find test message in error_log")
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
unittest.py", line 260, in fail
     raise self.failureException, msg
AssertionError: Could not find test message in error_log

======================================================================
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 1037, in testPerRequestTests
     self.failUnless(result.wasSuccessful())
   File  
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
unittest.py", line 268, in failUnless
     if not expr: raise self.failureException, msg
AssertionError

----------------------------------------------------------------------
Ran 3 tests in 20.504s

FAILED (failures=2)


 From the stock distribution using 10.3.2 and the Python shipped with  
10.3.

======================================================================
FAIL: test_req_requires (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 407, in test_req_requires
     self.fail(`rsp`)
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/unittest.py", line 260, in fail
     raise self.failureException, msg
AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML  
2.0//EN">\n<html><head>\n<title>401 Authorization  
Required</title>\n</head><body>\n<h1>Authorization  
Required</h1>\n<p>This server could not verify that you\nare authorized  
to access the document\nrequested.  Either you supplied the  
wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t  
understand how to supply\nthe credentials  
required.</p>\n</body></html>\n'

----------------------------------------------------------------------
Ran 25 tests in 10.078s

FAILED (failures=1)
F  Stopping Apache...
      /Users/mark/apache/bin/httpd -k stop -f  
/Users/mark/src/mod_python-3.1.3/test/conf/test.conf

======================================================================
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 1037, in testPerRequestTests
     self.failUnless(result.wasSuccessful())
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/unittest.py", line 268, in failUnless
     if not expr: raise self.failureException, msg
AssertionError

----------------------------------------------------------------------
Ran 3 tests in 21.374s

FAILED (failures=1)


Re: Please test 3.1.3!

Posted by Mark McClain <ma...@gsoa.net>.
I hit sent before I included the results of the Redhat 9 (apache 
2.0.48, python 2.3.1) test.  After I addressed the flex issue, it fails 
the same two tests as on OS X.

mark


Re: Please test 3.1.3!

Posted by David Fraser <da...@sjsoft.com>.
Scott Sanders wrote:

> How else can I help with this?
>
> Mac OSX 10.3 httpd 2.0.48
>
> HEAD from CVS continues to compile fine, but 3.1.3 gives me:
>
> [hera:apache/httpd/mod_python-3.1.3] ssanders% make
> /usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h 
> psp_parser.l
> make[2]: /usr/local/bin/flex: Command not found
> make[2]: *** [psp_parser.c] Error 127
> make[1]: *** [build] Error 2
> make: *** [do_dso] Error 2

Note that this is the same issue with flex discussed elsewhere in this 
thread...

David

Re: Please test 3.1.3!

Posted by Scott Sanders <sc...@dotnot.org>.
How else can I help with this?

Mac OSX 10.3 httpd 2.0.48

HEAD from CVS continues to compile fine, but 3.1.3 gives me:

[hera:apache/httpd/mod_python-3.1.3] ssanders% make
/usr/local/bin/flex -R -opsp_parser.c --header-file=include/psp_flex.h 
psp_parser.l
make[2]: /usr/local/bin/flex: Command not found
make[2]: *** [psp_parser.c] Error 127
make[1]: *** [build] Error 2
make: *** [do_dso] Error 2


Running the tests on HEAD gives me:

[hera:httpd/httpd-python/test] ssanders% python test.py

* Testing LoadModule
   Creating config....
     listen port: 51455
   Starting Apache....
      /usr/local/apache2/bin/httpd -k start -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
   Stopping Apache...
      /usr/local/apache2/bin/httpd -k stop -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
.
* Testing server.register_cleanup()...
   Creating config....
     listen port: 51459
   Starting Apache....
      /usr/local/apache2/bin/httpd -k start -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
   Stopping Apache...
      /usr/local/apache2/bin/httpd -k stop -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
httpd (no pid file) not running
F
* Running the per-request test suite...
   Creating config....
     listen port: 51464
   Starting Apache....
      /usr/local/apache2/bin/httpd -k start -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
[Tue Feb 17 12:00:55 2004] [error] (OS 0)Resolver Error 0 (no error): 
Failed to resolve server name for 127.0.0.1 (check DNS) -- or specify 
an explicit ServerName

   * Testing req.document_root()
.
   * Testing req.add_handler()
.
   * Testing req.allow_methods()
.
   * Testing req.get_basic_auth_pw()
.
   * Testing req.requires()
F
   * Testing req.internal_redirect()
.
   * Testing req.read()
     writing 100000 bytes...
     response size: 100000

     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
.
   * Testing req.sendfile()
.
   * 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
E
   * Testing internally (status messages go to error_log)
.
======================================================================
ERROR: test_Session_Session (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 920, in test_Session_Session
     response = conn.getresponse()
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/httplib.py", 
line 779, in getresponse
     response.begin()
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/httplib.py", 
line 273, in begin
     version, status, reason = self._read_status()
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/httplib.py", 
line 237, in _read_status
     raise BadStatusLine(line)
BadStatusLine

======================================================================
FAIL: test_req_requires (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 407, in test_req_requires
     self.fail(`rsp`)
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/unittest.py", 
line 270, in fail
     raise self.failureException, msg
AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 
2.0//EN">\n<html><head>\n<title>401 Authorization 
Required</title>\n</head><body>\n<h1>Authorization 
Required</h1>\n<p>This server could not verify that you\nare authorized 
to access the document\nrequested.  Either you supplied the 
wrong\ncredentials (e.g., bad password), or your\nbrowser doesn\'t 
understand how to supply\nthe credentials 
required.</p>\n</body></html>\n'

----------------------------------------------------------------------
Ran 25 tests in 11.242s

FAILED (failures=1, errors=1)
F  Stopping Apache...
      /usr/local/apache2/bin/httpd -k stop -f 
/Users/ssanders/Projects/apache/httpd/httpd-python/test/conf/test.conf
[Tue Feb 17 12:01:07 2004] [error] (OS 0)Resolver Error 0 (no error): 
Failed to resolve server name for 127.0.0.1 (check DNS) -- or specify 
an explicit ServerName

======================================================================
FAIL: test_srv_register_cleanup (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 1066, in test_srv_register_cleanup
     self.fail("Could not find test message in error_log")
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/unittest.py", 
line 270, in fail
     raise self.failureException, msg
AssertionError: Could not find test message in error_log

======================================================================
FAIL: testPerRequestTests (__main__.PerInstanceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "test.py", line 1037, in testPerRequestTests
     self.failUnless(result.wasSuccessful())
   File "/sw/src/root-python23-2.3.1-1/sw/lib/python2.3/unittest.py", 
line 278, in failUnless
     if not expr: raise self.failureException, msg
AssertionError

----------------------------------------------------------------------
Ran 3 tests in 22.196s

FAILED (failures=2)


Re: Please test 3.1.3!

Posted by Ron Reisor <ro...@UDel.Edu>.
I give it a +1 on MacOSX 10.3.2 with Python-2.3.3 built as a framework,
and Apache 2.0.48.

But, there is a complaint about a DNS lookup for 127.0.0.1 which seems to
be because the virtualhost has no ServerName entry in the generated
test.conf file.  Is this a real problem? I'm not sure what's up there.

mod_python 3.1.3 is running my dev code just fine so far too.

cheers,

Ron


Here's the test.py log:

[roaming-163-228:~/macpython/mod_python-3.1.3/test] ron% python test.py

* Testing LoadModule
  Creating config....
    listen port: 50275
  Starting Apache....
     /usr/local/bin/httpd -k start -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
  Stopping Apache...
     /usr/local/bin/httpd -k stop -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
.
* Testing server.register_cleanup()...
  Creating config....
    listen port: 50279
  Starting Apache....
     /usr/local/bin/httpd -k start -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
  Stopping Apache...
     /usr/local/bin/httpd -k stop -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
.
* Running the per-request test suite...
  Creating config....
    listen port: 50284
  Starting Apache....
     /usr/local/bin/httpd -k start -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
[Tue Feb 17 15:36:42 2004] [error] (OS 0)Resolver Error 0 (no error): Failed to resolve server name for 127.0.0.1 (check DNS) -- or specify an explicit ServerName

  * 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 100000 bytes...
    response size: 100000

    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
.
  * Testing req.sendfile()
.
  * 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 internally (status messages go to error_log)
.
----------------------------------------------------------------------
Ran 25 tests in 32.107s

OK
  Stopping Apache...
     /usr/local/bin/httpd -k stop -f /Users/ron/macpython/mod_python-3.1.3/test/conf/test.conf
[Tue Feb 17 15:37:15 2004] [error] (OS 0)Resolver Error 0 (no error): Failed to resolve server name for 127.0.0.1 (check DNS) -- or specify an explicit ServerName
.
----------------------------------------------------------------------
Ran 3 tests in 43.144s

OK
[roaming-163-228:~/macpython/mod_python-3.1.3/test] ron%

Ron Reisor <ro...@udel.edu> (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