Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webapp2 with python3

I use webapp2 with python 2.7 with or without googleAppEngine. I'm now trying to use it with Python 3.3

I've used PIP to install webapp2 Install run with success but when I try to import webapp2 from IDLE gaves me the folowing error:

File "<pyshell#0>", line 1, in <module>
    import webapp2
    File "C:\Python3\lib\webapp2.py", line 571
    except Exception, e:
                    ^

I suspect it's a thing that must be updated in order to work with Python3... ?anybody done this already or should I wait for an updated version of webapp2 ?is there any a beta version for Python 3 that we can access

like image 958
ZEE Avatar asked Mar 26 '13 14:03

ZEE


2 Answers

Indeed, webapp2 is not Python 3 compatible.

There is a issue on Python 3 in the issue tracker for the project, but there is next to no content in that issue. There does not appear to be any effort towards a port yet.

like image 73
Martijn Pieters Avatar answered Sep 18 '22 17:09

Martijn Pieters


It seems like webapp2 is now compatible with Python3 from version webapp2>=3.0.0b1. This is still a "development" version - you have to specify that you want this version installed as:

pip install webapp2>=3.0.0b1

Hope it helps somebody that comes across this (old) question as I did.

like image 36
silence Avatar answered Sep 19 '22 17:09

silence