5

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.

martineau
  • 119,623
  • 25
  • 170
  • 301
Amit Talmor
  • 7,174
  • 4
  • 25
  • 29

3 Answers3

10

Python 2.7.x:

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

Python 3.x:

connexion==2.6.0

Amit Talmor
  • 7,174
  • 4
  • 25
  • 29
6

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

Ri1a
  • 737
  • 9
  • 26
2

Not relevant for OP but for people landing here with a more recent version of Werkzeug (i.e. 2.x) released after May 2021, do:

from werkzeug.datastructures import FileStorage
DaveR
  • 1,696
  • 18
  • 24