Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python2 import connexion will show error! What can i do? #60

Open
xlwang1995 opened this issue Feb 20, 2020 · 3 comments
Open

python2 import connexion will show error! What can i do? #60

xlwang1995 opened this issue Feb 20, 2020 · 3 comments

Comments

@xlwang1995
Copy link

Excuse me, i ran the command:pip install connexion and download this package. But when i use python2 to import connexion, i found that

File "lstm_server.py", line 2, in
import connexion
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion_init_.py", line 5, in
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion\apis_init_.py", line 1, in
from .abstract import AbstractAPI # NOQA
File "C:\Users\10259.conda\envs\python27\lib\site-packages\connexion\apis\abstract.py", line 32
class AbstractAPI(metaclass=AbstractAPIMeta):
^
SyntaxError: invalid syntax

I really want to know how to solve this problem. Thanks!

@mikelam14
Copy link

I encountered the same error and using werkzeug==0.16.1 helped.

@ayushmaan-IIITD
Copy link

werkzeug==0.16.1

How to use this to overcome the error?

@AVI18794
Copy link

@ayushmaan-IIITD use pip install pip install Werkzeug==0.16.1 to install the specific version. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants