I assist with maintaining the OpenDroneMap snap here:
I’ve filed a bug report on the core20 tracker, and was recommended to report here:
Our users have been reporting (infrequently, but consistently) an issue with our snap:
snap run opendronemap Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = 'python3' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/usr/bin/python3' sys.base_prefix = '/usr' sys.base_exec_prefix = '/usr' sys.executable = '/usr/bin/python3' sys.prefix = '/usr' sys.exec_prefix = '/usr' sys.path = [ '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00007f2e195c7740 (most recent call first): <no Python frame>
I was able to reproduce it under WSL2 as well as 20.04LTS in Hyper-V.
In speaking with Dani, they indicated that they have seen similar breakage even with their own snaps and they recommended that we downgrade our core to core18 and then adjust the stage-packages to reflect this.
Our snapcraft yaml(s):
User threads (other reports/reproductions):
https://community.opendronemap.org/t/snap-opendronemap-python-fail-on-ubuntu-21/9949?u=saijin_naib https://community.opendronemap.org/t/odm-and-ubuntu-20-04/8223?u=saijin_naib https://community.opendronemap.org/t/issue-with-opensfm-reconstruction/7381/11?u=saijin_naib
Does anyone have any further guidance on this, or ways that I can collect more information if this is a confirmed bug?