-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Python] ImportError: cannot import name 'FileStorage' from the generated flask server #10192
Comments
I fixed this same issue by updating connexion to 2.x.x. The master branch already generates a requirements.txt file with an updated connexion version |
I had this same issue with the latest clone. |
I have the same FileStorage error using:
Problem fixed doing:
|
If you also want working diff --git i/requirements.txt w/requirements.txt
index b5bc506..c44cfa7 100644
--- i/requirements.txt
+++ w/requirements.txt
@@ -1,3 +1,3 @@
-connexion == 2.2.0
+connexion == 2.7.0
python_dateutil == 2.6.0
setuptools >= 21.0.0
diff --git i/test-requirements.txt w/test-requirements.txt
index 7f8d96e..3bff640 100644
--- i/test-requirements.txt
+++ w/test-requirements.txt
@@ -1,4 +1,4 @@
-flask_testing==0.6.1
+flask_testing
coverage>=4.0.3
nose>=1.3.7
pluggy>=0.3.1 |
Still has the requirements.txt set to connexion == 2.2.0 I believe you must be using the 2.X branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I run flask-server, I get bellow ImportError.
Swagger-codegen version
2.4.13
Swagger declaration file content or url
https://petstore.swagger.io/v2/swagger.json
Command line used for generation
I generated flask server from swagger-editor.
Steps to reproduce
I use venv and run swagger_server
python -m venv venv source venv/bin/activate pip3 install -r requirements.txt python3 -m swagger_server
Related issues/PRs
spec-first/connexion#1149
Suggest a fix/enhancement
I can fix this bug when adding two line in reqirements.txt.
The text was updated successfully, but these errors were encountered: