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

pvoutput.get_status throws error: NotImplementedError #84

Open
JulianBriggs opened this issue Jan 14, 2022 · 5 comments
Open

pvoutput.get_status throws error: NotImplementedError #84

JulianBriggs opened this issue Jan 14, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@JulianBriggs
Copy link
Collaborator

Describe the bug
pvoutput.get_status throws error: NotImplementedError: file structure not yet supported

To Reproduce
Steps to reproduce the behavior:
pv_system_id = 39266
date = '2022-01-13'
status = self.pv.get_status(pv_system_id, date=date)
See error
NotImplementedError: file structure not yet supported

Expected behavior
Download pv_system status without error

Additional context
I'm seeing pvoutput error: NotImplementedError: file structure not yet supported
when requesting status of system_id 29291: Requesting system status for 2022-01-13
See appended. DEBUG oputput and stack traces.

I have seen a similar error with another system
pvoutput get_status 209 INFO system_id 39266: Requesting system status for 2022-01-13

2022-01-13 15:36:13,539 pvoutput get_status 209 INFO system_id 39266: Requesting system status for 2022-01-13
2022-01-13 15:36:13,543 connectionpool _new_conn 1001 DEBUG Starting new HTTPS connection (1): pvoutput.org:443
2022-01-13 15:36:14,063 connectionpool _make_request 456 DEBUG https://pvoutput.org:443 "GET /service/r2/getstatus.jsp?d=20220113&h=1&limit=288&ext=0&sid1=39266 HTTP/1.1" 200 None
2022-01-13 15:36:14,064 utils _get_response 81 DEBUG response: status_code=200; headers={'Date': 'Thu, 13 Jan 2022 15:36:13 GMT', 'Set-Cookie': 'JSESSIONID=us9myf32fu8ndpm2h7qwsc5k;Path=/; Secure', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'X-Rate-Limit-Remaining': '230', 'X-Rate-Limit-Limit': '300', 'X-Rate-Limit-Reset': '1642089600', 'Content-Type': 'text/plain', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding, User-Agent', 'Connection': 'close', 'Server': 'Jetty(7.6.17.v20150415)', 'Strict-Transport-Security': 'max-age=15768000'}
2022-01-13 15:36:14,064 pvoutput _set_rate_limit_params 928 DEBUG {'rate_limit_remaining': 230, 'rate_limit_total': 300, 'rate_limit_reset_time': Timestamp('2022-01-13 16:00:00+0000', tz='UTC')}
Traceback (most recent call last):
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 240, in
nsystems = MAIN.run(sys.argv[1:])
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 223, in run
nsystems = self.insert_system_statuses(database_handler, date, pv_system_ids)
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 194, in insert_system_statuses
status = self.download_system_status(pv_system_id, date)
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 154, in download_system_status
status = self.pv.get_status(pv_system_id, date=date)
File "/home/ph1jb/git/pvoutput/.venv/src/pvoutput/pvoutput/pvoutput.py", line 257, in get_status
pv_system_status = pd.read_csv(
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 586, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 488, in _read
return parser.read(nrows)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1047, in read
index, columns, col_dict = self._engine.read(nrows)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 261, in read
raise NotImplementedError("file structure not yet supported")
NotImplementedError: file structure not yet supported

2022-01-13 14:34:06,763 pvoutput get_status 209 INFO system_id 29291: Requesting system status for 2022-01-13
2022-01-13 14:34:06,772 connectionpool _new_conn 1001 DEBUG Starting new HTTPS connection (1): pvoutput.org:443
2022-01-13 14:34:07,310 connectionpool _make_request 456 DEBUG https://pvoutput.org:443 "GET /service/r2/getstatus.jsp?d=20220113&h=1&limit=288&ext=0&sid1=29291 HTTP/1.1" 200 None
2022-01-13 14:34:07,312 utils _get_response 81 DEBUG response: status_code=200; headers={'Date': 'Thu, 13 Jan 2022 14:34:07 GMT', 'Set-Cookie': 'JSESSIONID=10fqtsfp2518apqdw1dfmpdbl;Path=/; Secure', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'X-Rate-Limit-Remaining': '163', 'X-Rate-Limit-Limit': '300', 'X-Rate-Limit-Reset': '1642086000', 'Content-Type': 'text/plain', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding, User-Agent', 'Connection': 'close', 'Server': 'Jetty(7.6.17.v20150415)', 'Strict-Transport-Security': 'max-age=15768000'}
2022-01-13 14:34:07,312 pvoutput _set_rate_limit_params 928 DEBUG {'rate_limit_remaining': 163, 'rate_limit_total': 300, 'rate_limit_reset_time': Timestamp('2022-01-13 15:00:00+0000', tz='UTC')}
Traceback (most recent call last):
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 262, in
nsystems = MAIN.run(sys.argv[1:])
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 242, in run
nsystems = self.insert_system_statuses(database_handler, date, pv_system_ids)
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 195, in insert_system_statuses
status = self.download_system_status(pv_system_id, date)
File "/home/ph1jb/git/pvoutput/src/downloader.py", line 155, in download_system_status
status = self.pv.get_status(pv_system_id, date=date)
File "/home/ph1jb/git/pvoutput/.venv/src/pvoutput/pvoutput/pvoutput.py", line 257, in get_status
pv_system_status = pd.read_csv(
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/util/_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 586, in read_csv
return _read(filepath_or_buffer, kwds)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 488, in _read
return parser.read(nrows)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1047, in read
index, columns, col_dict = self._engine.read(nrows)
File "/home/ph1jb/git/pvoutput/.venv/lib/python3.8/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 261, in read
raise NotImplementedError("file structure not yet supported")
NotImplementedError: file structure not yet supported

@JulianBriggs JulianBriggs added the bug Something isn't working label Jan 14, 2022
@peterdudfield
Copy link
Contributor

It's this specific to this one system_id?

@JulianBriggs
Copy link
Collaborator Author

JulianBriggs commented Jan 15, 2022 via email

@peterdudfield
Copy link
Contributor

Sorry I havent looked into this yet.
Does this happen in the UK too?

@JulianBriggs
Copy link
Collaborator Author

JulianBriggs commented Feb 3, 2022 via email

@JulianBriggs
Copy link
Collaborator Author

JulianBriggs commented Feb 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants