[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-07 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
Nils Lindemann added the comment: ok -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
Nils Lindemann added the comment: I am not sure if the py package i found on PyPi is what you meant, but if you mean the py launcher (the py.exe in the windows dir), yes, i have that. My system was indeed misconfigured as you correctly guessed, i had the .py filetype pointing to a Python versi

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread R. David Murray
R. David Murray added the comment: It gets installed along with python3, I believe. If you google for 'python py' you should see the pypi package version in the top hits. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
Nils Lindemann added the comment: What would that be? If i google 'py helper command' i get no good results. -- resolution: not a bug -> status: closed -> open ___ Python tracker __

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread R. David Murray
R. David Murray added the comment: If you just type 'server.py' it will use whichever interpreter is associated with .py files, which might not be python3. You may want to learn about the 'py' helper command. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
Nils Lindemann added the comment: I just found out that the example works in idle and if i do in a console: python server.py but not if i do just: server.py What is the secret behind this? -- ___ Python tracker

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
Nils Lindemann added the comment: I tried a few online python 3 interpreters. These give the same exception: http://www.learnpython.org/en/Hello%2C_World%21 http://rextester.com/l/python3_online_compiler http://ideone.com/pIMilt http://www.tutorialspoint.com/execute_python3_online.php And this

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread R. David Murray
R. David Murray added the comment: Either that or you aren't really running the make_server from wsgiref.simple_server. -- ___ Python tracker ___ ___

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread R. David Murray
R. David Murray added the comment: something is wrong in your setup then. I suspect you have a mismatch between the python version you think you are running the one you are actually running, and/or which library code it is accessing. -- nosy: +r.david.murray _

[issue30580] WSGI examples raise AttributeError: __exit__

2017-06-06 Thread Nils Lindemann
New submission from Nils Lindemann: All examples on https://docs.python.org/3/library/wsgiref.html raise this exception: Traceback (most recent call last): File "C:\Code\test\server.py", line 110, in with make_server('', 8000, simple_app) as httpd: AttributeError: __exit__ Tested with