I am testing some chatbots from Github, I seem to get the following error whenever I try running chatbots using tensorflow.
after typing python train.py
Traceback (most recent call last):
File "train.py", line 8, in <module>
from tf_seq2seq_chatbot.lib.train import train
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\train.py", line 14, in <module>
from tf_seq2seq_chatbot.lib.seq2seq_model_utils import create_model
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\seq2seq_model_utils.py", line 11, in <module>
from tf_seq2seq_chatbot.lib import seq2seq_model
File "C:\Users\S\Downloads\ChatBot-master\ChatBot-master\tf_seq2seq_chatbot\lib\seq2seq_model.py", line 28, in <module>
from tensorflow.models.rnn.translate import data_utils
ImportError: No module named 'tensorflow.models'
Source https://github.com/AhmedAbdalazeem/ChatBot
You need to install the tensorflow.models repository.
Related
I have tried by installing spacy in new virtual environment as well just in case if there are any module version clashes but still gives the same error upon doing the spacy import
import spacy
Also tried with downgrading of the spacy version to 2.2.2.
Error Log:
Traceback (most recent call last):
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/catalogue.py", line 8, in <module>
import importlib.metadata as importlib_metadata
ModuleNotFoundError: No module named 'importlib.metadata'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/testUser/Desktop/ml/test-project/src/EmailParser.py", line 3, in <module>
import spacy
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/spacy/__init__.py", line 10, in <module>
from thinc.neural.util import prefer_gpu, require_gpu
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/thinc/__init__.py", line 8, in <module>
from ._registry import registry
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/thinc/_registry.py", line 1, in <module>
import catalogue
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/catalogue.py", line 10, in <module>
import importlib_metadata
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 16, in <module>
from ._compat import (
File "/Users/testUser/.virtualenvs/mlv3/lib/python3.7/site-packages/importlib_metadata/_compat.py", line 115, in <module>
email.message_from_string
AttributeError: module 'email' has no attribute 'message_from_string'
When I run a project used Pytorch I came up with this error:
Traceback (most recent call last):
File "train_drnet.py", line 10, in <module>
import utils
File "/home/muse/drnet-py/utils.py", line 18, in <module>
from data.kth import KTH
File "/home/muse/drnet-py/data/kth.py", line 7, in <module>
from torch.utils.serialization import load_lua
ModuleNotFoundError: No module named 'torch.utils.serialization'
how to solve this,please?
I think it was removed from Pytorch about a year ago, you can try tourch file instead - https://github.com/bshillingford/python-torchfile
I tried to install that install Caffe Tutorial, but I am block at this line in the tuto: ./tools/demo.py
I havre this error message:
MacBook-Pro-de-OlostA:fast-rcnn OlostA$ ./tools/demo.py
Traceback (most recent call last):
File "./tools/demo.py", line 19, in <module>
from fast_rcnn.config import cfg
File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/__init__.py", line 9, in <module>
from . import train
File "/Users/OlostA/Technologies/fast-rcnn/tools/../lib/fast_rcnn/train.py", line 10, in <module>
import caffe
File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver
File "/Users/OlostA/Technologies/fast-rcnn/tools/../caffe-fast-rcnn/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver
ImportError: No module named _caffe
Thanks in advance.
So when I try to launch tensorboard I got this error :
Traceback (most recent call last):
File "/usr/local/bin/tensorboard", line 7, in <module>
from tensorflow.tensorboard.tensorboard import main
File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/tensorboard.py", line 34, in <module>
from tensorflow.tensorboard.backend import server
File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/backend/server.py", line 38, in <module>
from tensorflow.tensorboard.plugins.projector import plugin as projector_plugin
File "/usr/local/lib/python2.7/dist-packages/tensorflow/tensorboard/plugins/projector/plugin.py", line 27, in <module>
from tensorflow.contrib.tensorboard.plugins.projector import PROJECTOR_FILENAME
ImportError: cannot import name PROJECTOR_FILENAME
What's wrong ?
I've got this error when I've used following command to launch TB:
python -m tensorflow.tensorboard
When I've used another one it went ok:
tensorboard --logdir=path/to/log-directory
I have installed pymc using easy_install pymc command. While I try to import the package using import pymc.
I am getting following errors :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/__init__.py", line 29, in <module>
from .CommonDeterministics import *
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/CommonDeterministics.py", line 21, in <module>
from .utils import safe_len, stukel_logit, stukel_invlogit, logit, invlogit, value, find_element
File "/usr/local/lib/python2.7/dist-packages/pymc-2.3.2-py2.7-linux-i686.egg/pymc/utils.py", line 14, in <module>
from . import flib
ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directory
I am using Ubuntu 12.04 and Python 2.7.
What is the reason for these errors?
Try installing that missing library:
apt-get install libatlas3-base-dev