gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
377 stars 273 forks source link

webui Unicode issue #8348

Closed UlBoy closed 1 year ago

UlBoy commented 1 year ago

Hi guys, I'm trying to learn Openquake I'm using Windows so I downloaded openquake via this link 'https://github.com/gem/oq-engine/blob/master/doc/installing/windows.md'

But I found some error when I trying to open the web ui through 'OpenQuake Engine(webui)' icon

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 0: invalid start byte

image

Can you guys help me?

micheles commented 1 year ago

Looks like you found this python bug when you have a host name containing non-ASCII characters:

https://github.com/python/cpython/issues/70415

The bug was solved in python 3.9 so you could use that Python (or change your hostname if you can do that).