What version of pyhdf, HDF4, and Python are you using?
pyhdf version: 0.10.5
HDF4 C library version:
Python version: 3.8.10
What operating system are you using?
Windows
What did you do?
pip install pyhdf
from pyhdf import SD
What did you expect to see?
Successfully imported package
What did you see instead?
Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Program Files\Python38\lib\importlib__init__.py", line 131, in import_module
_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: DLL load failed while importing _hdfext: 找不到指定的模块。
During handling of the above exception, another exception occurred
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\SD.py", line 1003, in
from . import hdfext as _C
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 17, in
_hdfext = swig_import_helper()
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 16, in swig_import_helper
return importlib.import_module('_hdfext')
File "C:\Program Files\Python38\lib\importlib__init__.py", line 131, in import_module
_bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_hdfext'
What version of pyhdf, HDF4, and Python are you using?
pyhdf version: 0.10.5 HDF4 C library version: Python version: 3.8.10
What operating system are you using?
Windows
What did you do?
pip install pyhdf
from pyhdf import SD
What did you expect to see?
What did you see instead?
Traceback (most recent call last): File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 14, in swig_import_helper return importlib.import_module(mname) File "C:\Program Files\Python38\lib\importlib__init__.py", line 131, in import_module _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: DLL load failed while importing _hdfext: 找不到指定的模块。
During handling of the above exception, another exception occurred
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\SD.py", line 1003, in
from . import hdfext as _C
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 17, in
_hdfext = swig_import_helper()
File "C:\Users\admin\AppData\Roaming\Python\Python38\site-packages\pyhdf\hdfext.py", line 16, in swig_import_helper
return importlib.import_module('_hdfext')
File "C:\Program Files\Python38\lib\importlib__init__.py", line 131, in import_module
_bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_hdfext'