Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: cannot import name 'FileStorage' from 'werkzeug'

We are getting:

File "/usr/lib/python2.7/site-packages/connexion/decorators/validation.py", line 9, in <module>
    from werkzeug import FileStorage

since we are working with Python 2.7.x upgrading connexion==2.6.0 is not an option.

like image 395
Amit Talmor Avatar asked Feb 12 '20 15:02

Amit Talmor


2 Answers

Python 2.7.x:

Installing Werkzeug==0.16.1 after the connexion installation solved this issue.

Python 3.x:

connexion==2.6.0

like image 184
Amit Talmor Avatar answered Sep 21 '22 20:09

Amit Talmor


Just add Werkzeug==0.16.1 to your requirements.txt. This solved my problem.

like image 29
Ri1a Avatar answered Sep 22 '22 20:09

Ri1a