I installed burst2safe on my Windows 10 machine but got the error below when running. Apologies for pestering you, but the message is too complex for me to understand what it means.
Thank you!
Traceback (most recent call last):
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 30, in swig_import_helper
return importlib.import_module(mname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Anaconda3-2023.09\Lib\importlib__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 676, in _load_unlocked
File "", line 573, in module_from_spec
File "", line 1233, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing _gdal: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Dev\Anaconda3-2023.09\Scripts\burst2safe-script.py", line 5, in
from burst2safe.burst2safe import main
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\burst2safe\burst2safe.py", line 9, in
from burst2safe import utils
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\burst2safe\utils.py", line 13, in
from osgeo import gdal, ogr, osr
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init.py", line 46, in
_gdal = swig_import_helper()
^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 42, in swig_import_helper
raise ImportError(traceback_string + '\n' + msg)
ImportError: Traceback (most recent call last):
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 30, in swig_import_helper
return importlib.import_module(mname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Anaconda3-2023.09\Lib\importlib\init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 676, in _load_unlocked
File "", line 573, in module_from_spec
File "", line 1233, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing _gdal: The specified procedure could not be found.
On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH.
If gdalXXX.dll is in the PATH, then set the USE_PATH_FOR_GDAL_PYTHON=YES environment variable
to feed the PATH into os.add_dll_directory().
I installed burst2safe on my Windows 10 machine but got the error below when running. Apologies for pestering you, but the message is too complex for me to understand what it means.
Thank you!
Traceback (most recent call last): File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 30, in swig_import_helper return importlib.import_module(mname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Dev\Anaconda3-2023.09\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 676, in _load_unlocked
File "", line 573, in module_from_spec
File "", line 1233, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing _gdal: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Dev\Anaconda3-2023.09\Scripts\burst2safe-script.py", line 5, in
from burst2safe.burst2safe import main
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\burst2safe\burst2safe.py", line 9, in
from burst2safe import utils
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\burst2safe\utils.py", line 13, in
from osgeo import gdal, ogr, osr
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init.py", line 46, in
_gdal = swig_import_helper()
^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 42, in swig_import_helper
raise ImportError(traceback_string + '\n' + msg)
ImportError: Traceback (most recent call last):
File "C:\Dev\Anaconda3-2023.09\Lib\site-packages\osgeo__init__.py", line 30, in swig_import_helper
return importlib.import_module(mname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Dev\Anaconda3-2023.09\Lib\importlib\ init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 676, in _load_unlocked
File "", line 573, in module_from_spec
File "", line 1233, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing _gdal: The specified procedure could not be found.
On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. If gdalXXX.dll is in the PATH, then set the USE_PATH_FOR_GDAL_PYTHON=YES environment variable to feed the PATH into os.add_dll_directory().