maxcountryman / flask-uploads

File uploads for Flask.
http://flask-uploads.readthedocs.org/
MIT License
209 stars 59 forks source link

Version conflict with, needs updating in python repositories. #43

Open uri-gh opened 4 years ago

uri-gh commented 4 years ago

An issue which was fixed needs to be updated in the python repositories.

from werkzeug import secure_filename,FileStorage changed to

from werkzeug.utils import secure_filename
from werkzeug.datastructures import  FileStorage

Was already fixed in this repository, but not push to pip.

As a temporary solution i use -e git://github.com/maxcountryman/flask-uploads.git#egg=elasticutils in the requirements.txt file.

https://stackoverflow.com/questions/61628503/flask-uploads-importerror-cannot-import-name-secure-filename

maxcountryman commented 4 years ago

Please see this related issue: https://github.com/maxcountryman/flask-uploads/issues/39

davidkhess commented 4 years ago

Note, that should likely be:

-e git://github.com/maxcountryman/flask-uploads.git#egg=Flask-Uploads

Note the difference in the #egg value.

davidkhess commented 4 years ago

Huh, pip freeze emitted it like this:

-e git://github.com/maxcountryman/flask-uploads.git#egg=Flask_Uploads