The fact is we have some systems which use chinese or cyrillic characters and ODM can not run on those currently.
I am not an expert in python but trying to understand I found the following:
It comes from an encoding issue
The faulty line is this one: with open(fpath) as f: line 7 in venv\Lib\site-packages\cv2\load_config_py3.py
I found two ways or fixing the issue:
Change the previous line to force utf8 encoding which should be default behaviour in python, I guess (PEP 540 – Add a new UTF-8 Mode | peps.python.org) : with open(fpath,encoding='utf8') as f: but this is uggly and I do not know who is responsible for this file in venv. I absolutely do not understand package and virtual environments in python sorry. Not sure if we can contact them or have sufficient weight to leverage this.
Force globally python to use utf8 in ODM, adding in winrun.bat the -X utf8 flag. Hence becoming python -X utf8 "%ODMBASE%\run.py" %* instead of python "%ODMBASE%\run.py" %*
What do you think ? Is there any other fix or solution I am missing that we can act uppon ?
After further testing it appears that non ascci charaters in projet path are causing other errors later.
Good news is that the second fix I suggest allow to patch this also. I have open a PR for this. Up to the community to give its appreciation of the situation :