error with swig_import_helper() when run example ROFTV.py
compile is fine, but when i run the example ROFTV.py, I get the error:
Traceback (most recent call last):
File "ROFTV.py", line 1, in <module>
from PyCA.Core import *
File "/home/scc/download/pyca/pyca-bin/python_module/PyCA/Core.py", line 17, in <module>
_Core = swig_import_helper()
File "/home/scc/download/pyca/pyca-bin/python_module/PyCA/Core.py", line 16, in swig_import_helper
return importlib.import_module('_Core')
File "/home/scc/scratch/anaconda2/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named _Core
I search this issue and find the same one Issue#54 which was solved , but its solution doesn't work here.
I run the code nm -u _Core.so
, and there are many missing symbols like
U _ZTVN10__cxxabiv120__si_class_type_infoE@@CXXABI_1.3
U _ZTVN4PyCA15GGaussianFilterE
U _ZTVN4PyCA17MultiscaleManagerE
U _ZTVSt11logic_error@@GLIBCXX_3.4
U _ZTVSt15basic_streambufIcSt11char_traitsIcEE@@GLIBCXX_3.4
U _ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4
U _ZTVSt16invalid_argument@@GLIBCXX_3.4
U _ZTVSt19basic_istringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4
U _ZTVSt19basic_ostringstreamIcSt11char_traitsIcESaIcEE@@GLIBCXX_3.4
U _ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4
U _ZTVSt9exception@@GLIBCXX_3.4
my verisons are:
- gcc 4.8.4
- cmake 2.8.12.2
- swig 3.0.12
- CUDA 8.0
- python 2.7.13 :: Anaconda custom (64-bit)
Any help is appreciated, thanks a lot.
Comments (2)
-
reporter -
reporter - changed status to resolved
Sorry, buddies, I find the issue was produced because I downloaded the wrong version of the Source.
I downloaded the source in the Downloads because the given git instruction didn't work and there was not git instruction in the Source before I log in (damn it ...).
git clone git@bitbucket.org:scicompanat/pyca.git Yesterday I found the git instruction in the Source area after I log in, I did the git clone and installed as the Wiki tells, and I succeed when running the Example ROFTV.py
- Log in to comment
Sorry, buddies, I find the issue was produced because I downloaded the wrong version of the Source.
I downloaded the source in the Downloads because the given git instruction didn't work and there was not git instruction in the Source before I log in (damn it ...).
Yesterday I found the git instruction in the Source area after I log in, I did the git clone and installed as the Wiki tells, and I succeed when running the Example ROFTV.py