Code Monkey home page Code Monkey logo

Comments (4)

lennymd avatar lennymd commented on September 27, 2024

What was the fix? I tried installing this package with pip from github but this error persists.

from flask-uploads.

dadiletta avatar dadiletta commented on September 27, 2024

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.

jugmac00 avatar jugmac00 commented on September 27, 2024

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.

maxcountryman avatar maxcountryman commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.