Thanks for your response,
I try to understand algorithm in opendronemap code. i need native install to debug. this bug have when i run run.py with my data.
I can import gdal in my environment, but when try run.py, it can not import gdal and raise this bug.
This is my test:
(opendronemap) [email protected]:~$ python
Python 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:46:39)
[GCC 10.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import osgeo
from osgeo import gdal
exit()
And this bug :
(opendronemap) [email protected]:~/Desktop/build_map/ODM-3.1.0$ python run.py /home/trand/Desktop/drone_project/data/60mALT_0and90deg/data
Traceback (most recent call last):
File “/home/trand/anaconda3/envs/opendronemap/lib/python3.8/site-packages/osgeo/init.py”, line 21, in swig_import_helper
return importlib.import_module(mname)
File “/home/trand/anaconda3/envs/opendronemap/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 657, in _load_unlocked
File “”, line 556, in module_from_spec
File “”, line 1166, in create_module
File “”, line 219, in _call_with_frames_removed
ImportError: /home/trand/anaconda3/envs/opendronemap/lib/python3.8/site-packages/osgeo/…/…/…/libgdal.so.29: undefined symbol: opj_encoder_set_extra_options
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “run.py”, line 15, in
from opendm.utils import get_processing_results_paths, rm_r
File “/home/trand/Desktop/build_map/ODM-3.1.0/opendm/utils.py”, line 6, in
from osgeo import gdal
File “/home/trand/anaconda3/envs/opendronemap/lib/python3.8/site-packages/osgeo/init.py”, line 37, in
_gdal = swig_import_helper()
File “/home/trand/anaconda3/envs/opendronemap/lib/python3.8/site-packages/osgeo/init.py”, line 34, in swig_import_helper
return importlib.import_module(‘_gdal’)
File “/home/trand/anaconda3/envs/opendronemap/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named ‘_gdal’
cheers,
TraDinh