Data driven Astrology 💫 Kerykeion is a python library for astrology. It can generate SVG charts and extract all data about a birthchart, a synastry chart and a transit chart.
Hello!
I encountered an error when generating svg on the windows operating system.
Error was:
...
File "C:\Users\parac\venvs\horoscopes\lib\site-packages\kerykeion\settings\kerykeion_settings.py", line 219, in get_settings_dict
settings_dict = load(f)
File "C:\Program Files\Python310\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Program Files\Python310\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 4727: character maps to <undefined>
This problem was solved by specifying the encoding when opening the file:
with open(settings_file, "r", encoding="utf8") as f:
settings_dict = load(f)
Hello! I encountered an error when generating svg on the windows operating system.
Error was:
This problem was solved by specifying the encoding when opening the file: