Skip to content

Conversation

@NTedjosantoso
Copy link

@NTedjosantoso NTedjosantoso commented Nov 3, 2022

Hi DemandRegioTeam.

as i was trying to use the disaggregator tool i came across an error. I found a simple adjustment that can be made to fix the error. The error occurs when using pandas version 1.4 or higher.

The exception raised is:
TypeError: Expected file path name or file-like object, got <class 'bytes'> type

for reference : https://stackoverflow.com/questions/71074363/pandas-read-json-behavior-with-bytes-object

fix config.py to avoid 
TypeError: Expected file path name or file-like object, got <class 'bytes'> type

The error occurs when using pandas version 1.4 or higher.
@nesnoj
Copy link

nesnoj commented Feb 21, 2023

This works like a charm with pandas v1.5.3, thanks @NTedjosantoso !
Can this one please get merged?

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

Successfully merging this pull request may close these issues.

2 participants