NeuroNER
NeuroNER copied to clipboard
ModuleNotFoundError: No module named 'tensorflow.python.training.checkpointable'
I ran:
# Create python virtual environment
virtualenv -p python3.6 /mnt/ilcompn0d1/user/dernonco/pyenv/neuroner
source /mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/bin/activate
# Install neuroner
pip3 install pyneuroner[gpu]
# Get word embeddings
wget -P data/word_vectors http://neuroner.com/data/word_vectors/glove.6B.100d.zip
unzip data/word_vectors/glove.6B.100d.zip -d data/word_vectors/
# Test neuroner
neuroner --fetch_data=conll2003
The last command gives the error:
(neuroner) dernonco@ilcompn0:/mnt/ilcompn0d1/user/dernonco/sensei/neuroner/gpu$ neuroner --fetch_data=conll2003
Traceback (most recent call last):
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/bin/neuroner", line 6, in <module>
from neuroner.__main__ import main
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/lib/python3.6/site-packages/neuroner/__main__.py", line 16, in <module>
from neuroner import neuromodel
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/lib/python3.6/site-packages/neuroner/neuromodel.py", line 20, in <module>
from tensorflow.contrib.tensorboard.plugins import projector
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/lib/python3.6/site-packages/tensorflow/contrib/__init__.py", line 28, in <module>
from tensorflow.contrib import checkpoint
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/lib/python3.6/site-packages/tensorflow/contrib/checkpoint/__init__.py", line 47, in <module>
from tensorflow.contrib.checkpoint.python.containers import UniqueNameTracker
File "/mnt/ilcompn0d1/user/dernonco/pyenv/neuroner/lib/python3.6/site-packages/tensorflow/contrib/checkpoint/python/containers.py", line 20, in <module>
from tensorflow.python.training.checkpointable import base as checkpointable_lib
ModuleNotFoundError: No module named 'tensorflow.python.training.checkpointable'
The fix is to change the version of tensorflow-gpu
from 2.x
to 1.13.1
, which can be done as follows:
pip uninstall tensorflow-gpu
pip install tensorflow-gpu==1.13.1
But we should fix the installation code to avoid having the issue in the first place.
@Franck-Dernoncourt Did it solve the issue ?? i am having a similar
Traceback (most recent call last):
File "train.py", line 43, in
Please help!. Thanks in advance
Yes I fixed the issue, please see the end of my bug report
Thank you for your reply
On Sun, Dec 1, 2019, 2:47 PM Franck Dernoncourt [email protected] wrote:
Yes I fixed the issue, please see the end of my bug report
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Franck-Dernoncourt/NeuroNER/issues/155?email_source=notifications&email_token=AGDAXCW2RU6GVXWUQSNEHXLQWOB3RA5CNFSM4JQGNTD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFRDHVA#issuecomment-560083924, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDAXCUMLDXTTRQLZP7J5ELQWOB3RANCNFSM4JQGNTDQ .
@Franck-Dernoncourt my tensorflow-gpu is already 1.13.1. and it is still not working
if the tensorflow-gpu version==1.13.1 also the same issue arising
how to fix it??
i've solved this issue with the same u provided above :) thanks
Upgrade tensorflow to "==1.15.2" solved issue for me.