kipe / nordpool

Python library for fetching Nord Pool spot prices.
MIT License
105 stars 39 forks source link

0.4.0 requires newer version of python #50

Closed henrikfo closed 2 weeks ago

henrikfo commented 1 month ago

Hi,

I've been having some issues with fetching porices for a while, getting this error

File "test.py", line 11, in <module> pprint(prices_spot.hourly(areas=['FI'])) File "/home/henrik/.local/lib/python3.8/site-packages/nordpool/elspot.py", line 132, in hourly return self.fetch(self.HOURLY, end_date, areas) File "/home/henrik/.local/lib/python3.8/site-packages/nordpool/elspot.py", line 128, in fetch return self._parse_json(self._fetch_json(data_type, end_date), areas) File "/home/henrik/.local/lib/python3.8/site-packages/nordpool/elspot.py", line 104, in _fetch_json return r.json() File "/home/henrik/.local/lib/python3.8/site-packages/requests/models.py", line 978, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

When running just a simple example. I see now that there is a new version solving some issue related to price fetching. Is it possible to release a verions that requires python 3.8 for these fixes?

Best Regards

silpol commented 1 month ago

@henrikfo

Python 3.8 has reached its end of life as of October 7, 2024. No more bug fixes. No more security fixes.

source - It’s time to stop using Python 3.8

kipe commented 2 weeks ago

Version 0.4.3 was just released, with minimum Python version being 3.9.