DeepQA
DeepQA copied to clipboard
ModuleNotFoundError: No module named 'chatbot.textdata'; 'chatbot' is not a package
hey, i am not able to solve this error just after training
eloaded modules: chatbot, chatbot.chatbot, chatbot.textdata, chatbot.corpus.cornelldata, chatbot.corpus.opensubsdata, chatbot.corpus.scotusdata, chatbot.corpus.ubuntudata, chatbot.corpus.lightweightdata, chatbot.model Traceback (most recent call last):
File "
File "/home/bizviz/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 880, in runfile execfile(filename, namespace)
File "/home/bizviz/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 102, in execfile exec(compile(f.read(), filename, 'exec'), namespace)
File "/home/bizviz/DeepQA/chatbot/chatbot.py", line 33, in
File "/home/bizviz/DeepQA/chatbot/chatbot.py", line 33, in
ModuleNotFoundError: No module named 'chatbot.textdata'; 'chatbot' is not a package
I meet the similar problem.I solve it by add the below sentences before line 33. import sys sys.path.append('D:/DeepQA/chatbot')
you can try it.remember modify the directory for yourself.
This is a Py36 issue. I was able to resolve by switching to Py35.
change the name of chatbot.py into chatbot1.py because the package and chatbot.py ,do not have the same name