pypsa-meets-earth / earth-osm

Export infrastructure data from OpenStreetMap using Python
https://pypsa-meets-earth.github.io/earth-osm/
MIT License
23 stars 12 forks source link

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 157545: character maps to <undefined> #18

Closed pz-max closed 1 year ago

pz-max commented 1 year ago
Traceback (most recent call last):
  File "D:\a\pypsa-earth\pypsa-earth\.snakemake\scripts\tmpycprlere.download_osm_data.py", line 14, in <module>
    from earth_osm import eo
  File "C:\Miniconda3\envs\pypsa-earth\lib\site-packages\earth_osm\eo.py", line 16, in <module>
    from earth_osm.gfk_data import get_region_tuple
  File "C:\Miniconda3\envs\pypsa-earth\lib\site-packages\earth_osm\gfk_data.py", line 30, in <module>
    d = json.load(f)
  File "C:\Miniconda3\envs\pypsa-earth\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\Miniconda3\envs\pypsa-earth\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 157545: character maps to <undefined>

https://github.com/pypsa-meets-earth/pypsa-earth/pull/547#issuecomment-1367311900