From b01fe0e140a2806b5e80396b013afc783ff63f90 Mon Sep 17 00:00:00 2001 From: Antoni Gierczak Date: Thu, 10 Sep 2020 14:40:46 -0400 Subject: [PATCH 1/2] Update browser.py 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: https://github.com/jmcarp/robobrowser/issues/93 --- robobrowser/browser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/robobrowser/browser.py b/robobrowser/browser.py index 32e9338..504b8a7 100644 --- a/robobrowser/browser.py +++ b/robobrowser/browser.py @@ -5,6 +5,8 @@ import re import requests from bs4 import BeautifulSoup +import werkzeug +werkzeug.cached_property = werkzeug.utils.cached_property from werkzeug import cached_property from requests.packages.urllib3.util.retry import Retry From 1060731a06eeede7aef7e8942cbcd64b96d7cd5e Mon Sep 17 00:00:00 2001 From: Antoni Gierczak Date: Thu, 10 Sep 2020 14:41:46 -0400 Subject: [PATCH 2/2] Update browser.py --- robobrowser/browser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/robobrowser/browser.py b/robobrowser/browser.py index 504b8a7..5f0c72a 100644 --- a/robobrowser/browser.py +++ b/robobrowser/browser.py @@ -5,9 +5,7 @@ import re import requests from bs4 import BeautifulSoup -import werkzeug -werkzeug.cached_property = werkzeug.utils.cached_property -from werkzeug import cached_property +from werkzeug.utils import cached_property from requests.packages.urllib3.util.retry import Retry from robobrowser import helpers