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

RoboBrowser is broken with werkzeug upgrade #93

Open
TijanaJakovljevic opened this issue Feb 10, 2020 · 4 comments
Open

RoboBrowser is broken with werkzeug upgrade #93

TijanaJakovljevic opened this issue Feb 10, 2020 · 4 comments

Comments

@TijanaJakovljevic
Copy link

TijanaJakovljevic commented Feb 10, 2020

werkzeug is upgraded to 1.0.0 and RoboBrowser is broken with this change.

Traceback (most recent call last):
     from robobrowser import RoboBrowser
   File "/home/ubuntu/venv/lib/python3.7/site-packages/robobrowser/__init__.py", line 3, in <module>
     from .browser import RoboBrowser
   File "/home/ubuntu/venv/lib/python3.7/site-packages/robobrowser/browser.py", line 8, in <module>
     from werkzeug import cached_property
 ImportError: cannot import name 'cached_property' from 'werkzeug' (/home/ubuntu/venv/lib/python3.7/site-packages/werkzeug/__init__.py)

It’s because cached_property has to be explicitly imported from werkzeug.utils now
'from werkzeug.utils import cached_property' should be used instead 'from werkzeug import cached_property'

@H3wastooshort
Copy link

made it a prq @ #97

@manishmaharjan
Copy link

manishmaharjan commented Jun 27, 2020

I had a similar issue.

import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property

adding this before import robobrowser solved the issue for me

@lovetoburnswhen
Copy link

I had a similar issue.

import werkzeug
werkzeug.cached_property = werkzeug.utils.cached_property

adding this before import robobrowser solved the issue for me

Worked for me as well thanks

antoni-g added a commit to antoni-g/robobrowser that referenced this issue Sep 10, 2020
Werkzeug was upgraded to 1.0.0 and introduced this error:
```ImportError: cannot import name 'cached_property' from 'werkzeug' (/usr/local/lib/python3.8/site-packages/werkzeug/__init__.py)```

Suggesting this change which has been tested locally and discussed here:
jmcarp#93
89Q12 added a commit to 89Q12/moodle_scrapping_discord_bot that referenced this issue Jan 29, 2021
benwinding added a commit to benwinding/myuni-dl that referenced this issue Jun 14, 2021
@Swastik1620
Copy link

ModuleNotFoundError: No module named 'pandas.util'

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

5 participants