This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gerluijten
Recipients gerluijten
Date 2009-03-15.13:42:03
SpamBayes Score 5.012657e-14
Marked as misclassified No
Message-id <1237124527.44.0.964288018613.issue5494@psf.upfronthosting.co.za>
In-reply-to
Content
Hello developers,

While running 'make test' for Python 3.1a1 there was an error reported,
obviously a permission problem, but when trying to run the reported
server.py script in verbose mode it turned up an error in the
regrtest.py script. 
Manually running the server.py script seems to go fine.
See my installation notes below.

Commands were issued with and without sudo in a terminal under fully
updated Kubuntu 8.10 and with no installation problems for Python 3.1a1.

Also I noticed Issue 4951 failure in test_httpserver under Windows, but
with a different kind of error message.

Greetings, Ger

$ sudo make test
Errors: 1 error reported; no idea what the script server.py is trying to
access for which it says to have no rights.

This error was listed 3 times:

test_httpservers                                                       
                                                    
Traceback (most recent call last):                                     
                                                    
  File
"/home/ger/Systeembeheer/Python/Python_Packages/Python-3.1a1/Lib/http/server.py",
line 1031, in run_cgi              
OSError: [Errno 13] Permission denied                                  
                                                                       
                                                               
test test_httpservers failed -- errors occurred; run in verbose mode for
details  

See the readme file for the Python installation on how to run the script
in verbose mode:
General: $ ./python Lib/test/regrtest.py -v test_whatever
So go to the folder Python-3.1a1/Lib/test/
Run testscript in verbose mode: $ sudo ./regrtest.py -v server.py

No idea if this regrtest.py script knows the path to server.py,
otherwise add the correct path later in testing.

This shows a programming error in the regrtest.py script, so a run of
server.py is not possible with this script:
  File "./regrtest.py", line 185
    print(msg, file=sys.stderr)
                   ^
SyntaxError: invalid syntax


So let's run the server.py script directly to see if this script crashes
or not.

When directly running the server.py script with and without sudo it runs
with no errors, until broken off by Ctrl+C. 
The script seems to run or simulate a small webserver for tests.

Python-3.1a1/Lib/http$ sudo python3.1 server.py
Serving HTTP on 0.0.0.0 port 8000 ...
^CTraceback (most recent call last):
  File "server.py", line 1101, in <module>
    test(HandlerClass=BaseHTTPRequestHandler)
  File "server.py", line 1097, in test
    httpd.serve_forever()
  File "/usr/local/lib/python3.1/socketserver.py", line 224, in
serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
KeyboardInterrupt
History
Date User Action Args
2009-03-15 13:42:07gerluijtensetrecipients: + gerluijten
2009-03-15 13:42:07gerluijtensetmessageid: <1237124527.44.0.964288018613.issue5494@psf.upfronthosting.co.za>
2009-03-15 13:42:05gerluijtenlinkissue5494 messages
2009-03-15 13:42:03gerluijtencreate