Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pls fix the 'werkzeug' library #96

Open
H3wastooshort opened this issue Apr 3, 2020 · 8 comments
Open

pls fix the 'werkzeug' library #96

H3wastooshort opened this issue Apr 3, 2020 · 8 comments

Comments

@H3wastooshort
Copy link

H3wastooshort commented Apr 3, 2020

  File "/usr/local/lib/python3.6/dist-packages/robobrowser/browser.py", line 8, in <module>
    from werkzeug import cached_property
ImportError: cannot import name 'cached_property'

Just commit #97 to fix this

@bblue
Copy link

bblue commented Apr 24, 2020

bump

@BenSchweikert
Copy link

bump.
Please fix / commit the fix.

@andersonneo67
Copy link

I have fixed it and it is available for the pip install with the package name of robobro which would install robobrowser.
Would be removing it once the owner commits the changes to the original package robobrowser.

@haalrubaye
Copy link

@andersonneo67 hey, I've tried using your fix and it still gives me the same error :/ . Does its source code come from your robobrowser directory? Because upon inspection the browser.py line 8
from werkzeug import cached_property
hasn't been changed into
from werkzeug.utils import cached_property

@andersonneo67
Copy link

@andersonneo67 hey, I've tried using your fix and it still gives me the same error :/ . Does its source code come from your robobrowser directory? Because upon inspection the browser.py line 8
from werkzeug import cached_property
hasn't been changed into
from werkzeug.utils import cached_property

you could try uninstalling the already installed robobrowser
1 step : pip uninstall robobrowser ,other
2 step: pip install robobro

Robobro is same as the robobrowser with the werkzeug fix

This should do the update and then you can import the package the usual way

aureldsn added a commit to aureldsn/BKTelegramBot that referenced this issue Jun 23, 2020
The robobrowser module is out of date,
see jmcarp/robobrowser#96.
@nielsbuus
Copy link

@andersonneo67 The owner seems to have abandoned this project. Have you considered forking and maintaining it? I like this library and it would be nice to have a new "official" repository that can accept fixes in case something breaks.

@bizzyvinci
Copy link

bizzyvinci commented Jan 5, 2021

Another solution is to downgrade werkzeug from version >=1 to version <1.

pip uninstall werkzeug
pip install werkzeug==0.16.1

The reason for the import error is because werkzeug new version is not backward compatible.

@Grieze
Copy link

Grieze commented Jun 6, 2024

Another solution is to downgrade werkzeug from version >=1 to version <1.

pip uninstall werkzeug pip install werkzeug==0.16.1

The reason for the import error is because werkzeug new version is not backward compatible.

This is a solid fix and useful, though I would not use this library going forward outside of quick scripts which you won't heavily rely upon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants