kaix90 / DCTNet

463 stars 99 forks source link

ModuleNotFoundError: No module named '_dctfromjpg_wrapper' #52

Open ShristiDasBiswas opened 9 months ago

ShristiDasBiswas commented 9 months ago

``(dctnet) -bash-4.2$ bash scripts/resnet_upscaled_static_from_scratch.sh 24 square channels: 24 pattern: square RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd Traceback (most recent call last): File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/site-packages/jpeg2dct/numpy/dctfromjpg_wrapper.py", line 18, in swig_import_helper return importlib.import_module(mname) File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 670, in _load_unlocked File "", line 583, in module_from_spec File "", line 1043, in create_module File "", line 219, in _call_with_frames_removed ImportError: numpy.core.multiarray failed to import

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main/imagenet_resnet_upscaled_static.py", line 20, in from datasets.dataset_imagenet_dct import ImageFolderDCT File "/home/min/a/sdasbisw/Desktop/PROJECTS/dctNet/datasets/dataset_imagenet_dct.py", line 15, in from jpeg2dct.numpy import loads File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/site-packages/jpeg2dct/numpy/init.py", line 13, in from . import dctfromjpg_wrapper File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/site-packages/jpeg2dct/numpy/dctfromjpg_wrapper.py", line 23, in _dctfromjpg_wrapper = swig_import_helper() File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/site-packages/jpeg2dct/numpy/dctfromjpg_wrapper.py", line 20, in swig_import_helper return importlib.import_module('_dctfromjpg_wrapper') File "/home/min/a/sdasbisw/anaconda3/envs/dctnet/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_dctfromjpg_wrapper' ``

Could somebody help with this error?