Comments (4)
What was the fix? I tried installing this package with pip from github but this error persists.
from flask-uploads.
You have to stick with Python 3.7 until they publish the existing GitHub repo that has the fixed reference to pypi. I'm about 80% sure I'm understanding the situation correctly.
from flask-uploads.
The above error message was generated, as Werkzeug
, a very important library in the Flask ecosystem, changed its API in version 1.0, back in February 2020.
This broke a lot of plugins.
I provided a pull request to this repository, see #28.
This pull request was merged, but @maxcountryman chose not to release a new version to PyPi. I even offered my help.
You can read his argument here:
#29 (comment)
The latest version on PyPi (0.2.1) is from 2016, and you cannot use it with the latest versions of e.g. Werkzeug.
You certainly could pin Flask-Uploads
to a GitHub commit id.
I think this is inconvenient at least, and doing so brought me a lot of problems, as this worked on my dev machine, but Travis CI was broken. So I really prefer to install from PyPi.
While I finally managed it, I felt a bit sad for all those developers asking here for help and a new release.
After now almost six months, there is still no new release.
I have thought about this situation a lot. On the one hand, the GitHub repository is kinda up to date (the test suite is broken, and some more... ), on the other hand there are many developers out there having trouble to fix their broken app.
So, yesterday I finally decided to fork this package, and after fixing the test suite and some more housekeeping, I released a new version to PyPi, most importantly with a fix to the broken Werkzeug
import - and tons more.
As only the maintainer here has access to Flask-Uploads
on PyPi, I created a new name: Flask-Reuploaded
.
My main goal is to stay compatible with Flask-Uploads
- it even is a drop-in replacement!
This means, instead of installing Flask-Uploads
you only have to install Flask-Reuploaded
and your migration work is finished. You do not have to change a single line of code.
The package is found here
https://pypi.org/project/Flask-Reuploaded/
And the repository is here
https://github.com/jugmac00/flask-reuploaded
Speaking of repository, while I have fixed the broken test suite, set up CI and more, there is still lots to do - especially beginner friendly tasks. If you ever wanted to contribute to open source, why not to the library you use?
https://github.com/jugmac00/flask-reuploaded/issues
When you now think.. huh, this one guy... why should I use his package? Maybe he is too busy soon, too?
The company I work for relies on Flask-Reuploaded
- so there is big motivation to keep it working. Also, I love Python and open source, and I am super open for other contributors.
Even, my dream would be a Flask Umbrella
organization, which the Flask plugin developers could join and share the work more evenly. See my proposal to the Pallets project here:
https://github.com/pallets/meta/issues/28
This all said - I am super thankful to Max and all the other contributors to this and other open source packages. I respect the decision not to release a package. The beauty of open source is choice. And now there is a choice, when you want a working PyPi package.
https://pypi.org/project/Flask-Reuploaded/
Thanks!
from flask-uploads.
You can use git to install any arbitrary revision. It’s pretty straightforward, altho may depend on your exact tooling. There’s been a lot of discussion about releases and this solution has been offered. Please use it.
I’m going to consider further requests for releases as off topic given the above.
I’m also going to close this since it’s not an issue with the existing codebase.
from flask-uploads.
Related Issues (20)
- cant not add .docx extension auto
- validation failing for pdf files HOT 1
- store filese out side of project folder.... HOT 1
- Package and tests are broken since release of Werkzeug 1.0.0 HOT 20
- PyPl not updated HOT 1
- Per blueprint configuration HOT 1
- 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
- Patch for import error
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.