Closed morphatic closed 4 years ago
This appears to be limited to Windows as I haven't done excessive testing on that platform. Can test on mine this weekend and push an update.
My initial guess is that Windows defaults the JSON encoding to something other than UTF-8 which the station details file uses extensively. For the time being, changing:
File "C:\Users\morga\dev\avwx-test\venv\lib\site-packages\avwx\structs.py", line 25
to:
self.data = json.load(self.source.open(encoding="utf8"))
should fix this issue in the meantime.
That worked! Thanks for the quick reply!!! For my part, feel free to close this issue. Since you said you wanted to do more testing, I'll let you do it in case you want this here as a reminder.
Hi there,
I was trying to follow the basic example on the README of how to use this package. But I got the error:
(Full stack trace below)
Steps to Reproduce
python -m venv venv
source ./venv/Scripts/activate
pip install avwx-engine
python
Full Stack Trace
Am I doing something wrong?