jiegzhan / multi-class-text-classification-cnn-rnn

Classify Kaggle San Francisco Crime Description into 39 classes. Build the model with CNN, RNN (GRU and LSTM) and Word Embeddings on Tensorflow.
https://www.kaggle.com/c/sf-crime/data
Apache License 2.0
599 stars 262 forks source link

when trying to run train.py #23

Open SidrahJunaid opened 7 years ago

SidrahJunaid commented 7 years ago

sidrah@sidrah-VirtualBox:~/Downloads/multi-class-text-classification-cnn-rnn-master$ python3 train.py ./data/train.csv.zip ./training_config.json Traceback (most recent call last): File "train.py", line 8, in import data_helper File "/home/sidrah/Downloads/multi-class-text-classification-cnn-rnn-master/data_helper.py", line 13, in from tensorflow.contrib import learn File "/usr/local/lib/python3.4/dist-packages/tensorflow/init.py", line 23, in from tensorflow.python import File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/init.py", line 48, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) File "/usr/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) ImportError: /usr/local/lib/python3.4/dist-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header sidrah@sidrah-VirtualBox:~/Downloads/multi-class-text-classification-cnn-rnn-master$ python3 train.py ./data/train.csv.zip ./training_config.json Traceback (most recent call last): File "train.py", line 8, in import data_helper File "/home/sidrah/Downloads/multi-class-text-classification-cnn-rnn-master/data_helper.py", line 13, in from tensorflow.contrib import learn File "/usr/local/lib/python3.4/dist-packages/tensorflow/init.py", line 23, in from tensorflow.python import File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/init.py", line 48, in from tensorflow.python import pywrap_tensorflow File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "/usr/local/lib/python3.4/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) File "/usr/lib/python3.4/imp.py", line 243, in load_module return load_dynamic(name, filename, file) ImportError: /usr/local/lib/python3.4/dist-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header