Comments (20)
Same problem in from werkzeug import secure_filename, FileStorage
should be from werkzeug.utils
from flask-uploads.
I also upgraded to flask 1.1.1 with Werkzeug 1.0 and got the deprecate imports.
(I wanted to use Python3.7 dataclasses module for json serialization)
I'd be grateful for a release soon if possible, please.
from flask-uploads.
@maxcountryman @rduplain
Thank you for accepting the pull request. Could you please cut a new release?
While it is possible to directly install from GitHub, it is quite cumbersome to configure setup.py
with dependency_links
.
Thank you very much!
from flask-uploads.
I had to downgrade to werkzeug==0.16.0
to get it working with Flask-Uploads, everything just breaks as of the release of werkzeug==1.0.0
😢 , most things have been moved to different packages within werkzeug. It would be nice if Flask-Upload can update its library.
from flask-uploads.
can someone fix this issue already?
This issue was reported since Feb 6, unfortunately, 2 months after, no fix has been applied.
My app is broken.
Please what's holding the maintainers back from fixing this issue? Or are they no longer making use of this extension?
from flask-uploads.
I thought is was the only one seeing this.: cannot import name 'secure_filename' from 'werkzeug' (/opt/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/werkzeug/init.py) #98
pheww.. thought i'd screwed things up for a minute..may i ask though (WHAT's the way forward)
from flask-uploads.
What exactly is holding up a new release? Latest 0.2.1 still has legacy werkzeug issue. This seems like a trivial fix vs forcing folks to patch an otherwise excellent library.
from flask-uploads.
You guys are so F**king lazy! just a simple command:
pip install git+https://github.com/maxcountryman/flask-uploads.git
from flask-uploads.
It is not only cumbersome, it seems no longer possible:
pypa/setuptools#987 (comment)
from flask-uploads.
As a workaround you can use something like
"Flask-Uploads @ https://github.com/maxcountryman/flask-uploads/archive/f66d7dc93e684fa0a3a4350a38e41ae00483a796.zip#egg=Flask-Uploads-0.2.2.dev", # noqa: E501
in your setup.py
.
Attention
This fails on Travis for Python 3.6.
from flask-uploads.
Pull requests are welcome.
from flask-uploads.
@maxcountryman #28 was the PR - which you already merged. But it would be very good to have a new release out there.
While you technically can pip install from a GitHub URL, it is a major pain to have a GitHub URL in a setup.py
supporting different Python versions (dependency_links
vs install_requires
).
from flask-uploads.
Why is using a link a major pain? I’ve done this for many projects and it’s never been much of a hassle.
from flask-uploads.
At least I could not find a way to run the tests of my applications successfully on Py36-Py38 with a GitHub URL in my setup.py (on Travis only - locally it worked out):
Direct url requirement (like Flask-Uploads@ https://github.com/maxcountryman/flask-uploads/archive/f66d7dc93e684fa0a3a4350a38e41ae00483a796.zip#egg=Flask-Uploads-0.2.2.dev) are not allowed for dependencies
And I tried for a bit :-)
What is the issue with cutting a release? Should not take more than a couple of minutes and would make the life of your users much easier.
I finally dropped Py3.6 - and so I am personally fine. So I am not asking for myself.
Is there anything I could do to support you?
from flask-uploads.
Why is using a link a major pain? I’ve done this for many projects and it’s never been much of a hassle.
I see your point, but honestly it's just inconvenient. Also, even if a url replacement is a quick fix, that's still manual intervention that folks would have to figure out when their builds break. I am very much in favor of a new release to fix the issue and would also be willing to help with any testing or logistics for that 😄 🚀
from flask-uploads.
I had to downgrade to
werkzeug==0.16.0
to get it working with Flask-Uploads, everything just breaks as of the release ofwerkzeug==1.0.0
cry , most things have been moved to different packages within werkzeug. It would be nice if Flask-Upload can update its library.
Why not using the newer werkzeug==0.16.1
? It is the last version before 1.0.0. This works for me.
from flask-uploads.
can someone fix this issue already?
from flask-uploads.
You guys are so F**king lazy! just a simple command:
pip install git+https://github.com/maxcountryman/flask-uploads.git
First, a pull request was sent and he merged the PR which is why your pip install from a git repo would work and not break, @maxcountryman is maintaining the library, you should not go about saying people are lazy if they want the merged PR to be updated with a new release.
And being an asshole while letting people know how to pip install from a GitHub repo doesn't make you superman or know it all, I wonder how you collaborate with teams, and @maxcountryman should have closed this issue a long time, you won't come here hiding behind your keyboard and calling people F@@ing Lazy.
Next time learn how to be civil about what's not yours and enlighten people properly.
from flask-uploads.
You guys are so F**king lazy! just a simple command:
pip install git+https://github.com/maxcountryman/flask-uploads.git
Cutting a new release is a few clicks, no?
from flask-uploads.
This isn’t the right forum for this. Everyone, please be civil—also I’d ask that you all remember that open source work is not necessarily paid work: myself and the other maintainers are donating our time without direct monetary compensation. Regardless of how much effort it is or isn’t it’s incredibly rude to demand anyone to do anything on your behalf.
from flask-uploads.
Related Issues (20)
- Image upload fails with upper case extensions
- cant not add .docx extension auto
- validation failing for pdf files HOT 1
- store filese out side of project folder.... HOT 1
- PyPl not updated HOT 1
- Per blueprint configuration HOT 1
- current release is broken, new release? HOT 4
- upload return url is not working when I am saving the pic in multiples destination HOT 1
- 可以加个图片压缩吗
- Automated tag-based releases
- Unique filename feature? HOT 3
- When 0.2.2? HOT 2
- Version conflict with, needs updating in python repositories. HOT 3
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- ModuleNotFoundError: No module named 'flask_uploads'
- Will this be resolved? HOT 2
- pass args to send_from_directory for uploads blueprint?
- Pypi package seems broken on Python 3.9 HOT 1
- pip package of flask-uploads is not update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-uploads.