Skip to content

I have a problem using satellite_sfm.py #9

@ouyuanzheng

Description

@ouyuanzheng

I have a problem using satellite_sfm.py
The error is reported as follows:
(SatelliteSfM) root@LAPTOP-MOJP7CII:/mnt/d/SatelliteSfM/SatelliteSfM# python satellite_sfm.py --input_folder examples/inputs --output_folder examples/outputs --run_sfm [--use_srtm4] [--enable_debug]
Traceback (most recent call last):
File "/root/anaconda3/envs/SatelliteSfM/lib/python3.8/site-packages/osgeo/init.py", line 30, in swig_import_helper return importlib.import_module(mname)
File "/root/anaconda3/envs/SatelliteSfM/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: libpoppler.so.126: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "satellite_sfm.py", line 4, in
from preprocess.preprocess_image_set import preprocess_image_set
File "/mnt/d/SatelliteSfM/SatelliteSfM/preprocess/preprocess_image_set.py", line 12, in
from preprocess.parse_tif_image import parse_tif_image
File "/mnt/d/SatelliteSfM/SatelliteSfM/preprocess/parse_tif_image.py", line 3, in
from osgeo import gdal, gdalconst
File "/root/anaconda3/envs/SatelliteSfM/lib/python3.8/site-packages/osgeo/init.py", line 46, in
_gdal = swig_import_helper()
File "/root/anaconda3/envs/SatelliteSfM/lib/python3.8/site-packages/osgeo/init.py", line 43, in swig_import_helper return importlib.import_module('_gdal')
File "/root/anaconda3/envs/SatelliteSfM/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal'
Last display:ModuleNotFoundError: No module named '_gdal'
But I have installed gdal,I can't solve it now. Do you have any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions