Code Monkey home page Code Monkey logo

Comments (20)

andresgarita-dev avatar andresgarita-dev commented on September 27, 2024 7

Same problem in from werkzeug import secure_filename, FileStorage
should be from werkzeug.utils

from flask-uploads.

shaharyi avatar shaharyi commented on September 27, 2024 3

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.

jugmac00 avatar jugmac00 commented on September 27, 2024 2

@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.

Frost199 avatar Frost199 commented on September 27, 2024 2

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.

Pythonian avatar Pythonian commented on September 27, 2024 2

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.

Curiouspaul1 avatar Curiouspaul1 commented on September 27, 2024 1

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.

jgerry2002 avatar jgerry2002 commented on September 27, 2024 1

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.

xxxpsyduck avatar xxxpsyduck commented on September 27, 2024 1

You guys are so F**king lazy! just a simple command:
pip install git+https://github.com/maxcountryman/flask-uploads.git

from flask-uploads.

jugmac00 avatar jugmac00 commented on September 27, 2024

It is not only cumbersome, it seems no longer possible:
pypa/setuptools#987 (comment)

from flask-uploads.

jugmac00 avatar jugmac00 commented on September 27, 2024

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.

maxcountryman avatar maxcountryman commented on September 27, 2024

Pull requests are welcome.

from flask-uploads.

jugmac00 avatar jugmac00 commented on September 27, 2024

@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.

maxcountryman avatar maxcountryman commented on September 27, 2024

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.

jugmac00 avatar jugmac00 commented on September 27, 2024

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 :-)

Screenshot from 2020-02-16 21-11-41

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.

sgreene570 avatar sgreene570 commented on September 27, 2024

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.

colidyre avatar colidyre commented on September 27, 2024

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 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.

Gresliebear avatar Gresliebear commented on September 27, 2024

can someone fix this issue already?

from flask-uploads.

Frost199 avatar Frost199 commented on September 27, 2024

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.

sgreene570 avatar sgreene570 commented on September 27, 2024

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.

maxcountryman avatar maxcountryman commented on September 27, 2024

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)

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.