-->

webapp2 with python3

2019-04-22 04:27发布

问题:

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

回答1:

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.