ODM doesn't work when path has a special character

I am having an issue running ODM when the install path has a ’ character in it. This is the output I get for the install path “C:\Temp\Tes’t\ODM”. I have a case where a Windows user name has that character, which makes it impossible to install ODM anywhere inside that user’s directory.

It seems to be similar to this thread (Non ascii character in ODM Install Path), but I guess that this specific issue hasn’t been fixed there.

OUTPUT:


/ ____ _____ __ __
| / __ \ | __ \ | / | |
| | | | | | | | | | \ / | |
| | | | | | | | | | |/| | |
| | || | | || | | | | | |
| _/ |/ || || |
_
_________________________/
version: 2.8.6

Traceback (most recent call last):
File “C:\Temp\Tes’t\ODM\run.py”, line 15, in
from opendm.utils import get_processing_results_paths, rm_r
File “C:\Temp\Tes’t\ODM\opendm\utils.py”, line 3, in
from opendm.photo import find_largest_photo_dims
File “C:\Temp\Tes’t\ODM\opendm\photo.py”, line 17, in
from opendm import get_image_size
File “C:\Temp\Tes’t\ODM\opendm\get_image_size.py”, line 2, in
import cv2
File “C:\Temp\Tes’t\ODM\venv\lib\site-packages\cv2_init_.py”, line 96, in
bootstrap()
File “C:\Temp\Tes’t\ODM\venv\lib\site-packages\cv2_init_.py”, line 59, in bootstrap
load_first_config([
File “C:\Temp\Tes’t\ODM\venv\lib\site-packages\cv2_init_.py”, line 53, in load_first_config
exec_file_wrapper(fpath, g_vars, l_vars)
File “C:\Temp\Tes’t\ODM\venv\lib\site-packages\cv2\load_config_py3.py”, line 8, in exec_file_wrapper
code = compile(f.read(), os.path.basename(fpath), ‘exec’)
File “config-3.8.py”, line 1
PYTHON_EXTENSIONS_PATHS = [r’C:\Temp\Tes’t\ODM\venv\lib\site-packages\cv2\python-3.8’] + PYTHON_EXTENSIONS_PATHS
^
SyntaxError: invalid syntax

1 Like

Ouch, quotes in path, I did not even though it was possible.
I am a bit busy currently but if no answer, workaround or correction as been brought to you before the beginning of august I will have a look.

2 Likes

Can you test on 2.8.7 to be certain that we still do not have this addressed? We merged some fixes regarding path handling not too long ago.

There is a version 2.8.7 already? The last release is 2.8.6 according to the github page.

1 Like

Ah, yeah, we just have not tagged it yet for release on GitHub.

Alright, it’s fine on 2.8.6.

Are you able to open an issue on the Github tracker for ODM with the details you provided above, as well as maybe what the system language is?

Done: ODM doesn’t work when path has a special character · Issue #1492 · OpenDroneMap/ODM · GitHub

1 Like

Thanks so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.