You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed successfully opennem but when I want to use it I have the following error:
ipython
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.
Hello,
I installed successfully opennem but when I want to use it I have the following error:
ipython
Python 3.8.5 (default, Sep 4 2020, 07:30:14)
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import opennem
TypeError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import opennem
File ~/anaconda3/lib/python3.8/site-packages/opennem/init.py:24
20 PATH_CWD = Path.cwd()
22 from opennem.settings import settings # noqa
---> 24 from .client import OpenNEMClient # noqa
26 api = OpenNEMClient()
File ~/anaconda3/lib/python3.8/site-packages/opennem/client.py:14
12 from opennem.schema.network import FueltechSchema, NetworkRegionSchema, NetworkSchema
13 from opennem.settings import settings
---> 14 from opennem.utils.http import http
16 logger = logging.getLogger("opennem.api")
19 class OpenNEMStats(object):
File ~/anaconda3/lib/python3.8/site-packages/opennem/utils/http.py:55
51 kwargs["timeout"] = self.timeout
52 return super().send(request, **kwargs)
---> 55 retry_strategy = Retry(
56 total=DEFAULT_RETRIES,
57 backoff_factor=1,
58 status_forcelist=[403, 429, 500, 502, 503, 504],
59 method_whitelist=["HEAD", "GET", "OPTIONS"],
60 )
63 http = requests.Session()
65 adapter_timeout = TimeoutHTTPAdapter()
TypeError: init() got an unexpected keyword argument 'method_whitelist'
Thanks or help and insights
The text was updated successfully, but these errors were encountered: