TF_FeatureExtraction icon indicating copy to clipboard operation
TF_FeatureExtraction copied to clipboard

SystemError: initialization of _pywrap_tensorflow_internal raised unreported exception

Open diaoxue opened this issue 8 years ago • 1 comments

RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9 RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9 Traceback (most recent call last): File "./example_feat_extract.py", line 24, in from feature_extractor.feature_extractor import FeatureExtractor File "/home/defy/TF_FeatureExtraction/feature_extractor/feature_extractor.py", line 19, in import tensorflow as tf File "/usr/local/lib/python3.4/dist-packages/tensorflow/init.py", line 24, in from tensorflow.python import * File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/init.py", line 49, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in from tensorflow.python.pywrap_tensorflow_internal import * File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "/usr/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) SystemError: initialization of _pywrap_tensorflow_internal raised unreported exception

update numpy, but do not work

thanks

diaoxue avatar Oct 19 '17 10:10 diaoxue

Hi @diaoxue, I guess you are running the script from tensorflow root directory. Try running it from somewhere else (any other directory), it should work.

Hope it helps. Regards, Lucky Srivastava

Lucky94 avatar Nov 22 '17 10:11 Lucky94