webapp2 with python3

試著忘記壹切 提交于 2019-12-10 02:34:46

问题


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.



来源:https://stackoverflow.com/questions/15639475/webapp2-with-python3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!