Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldnt import chatbot error while running the server #182

Open
GirishBB opened this issue Mar 30, 2018 · 2 comments
Open

couldnt import chatbot error while running the server #182

GirishBB opened this issue Mar 30, 2018 · 2 comments

Comments

@GirishBB
Copy link

GirishBB commented Mar 30, 2018

I am getting a error saying "cannot import name 'chatbot'" while running python manage.py migrations
here is the error log

Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "C:\Users\girish\Anaconda3\envs\my_env\lib\site-packages\django\core\management_init_.py", line 371, in execute_from_command_line
utility.execute()
File "C:\Users\girish\Anaconda3\envs\my_env\lib\site-packages\django\core\management_init_.py", line 347, in execute
django.setup()
File "C:\Users\girish\Anaconda3\envs\my_env\lib\site-packages\django_init_.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\girish\Anaconda3\envs\my_env\lib\site-packages\django\apps\registry.py", line 89, in populate
app_config = AppConfig.create(entry)
File "C:\Users\girish\Anaconda3\envs\my_env\lib\site-packages\django\apps\config.py", line 116, in create
mod = import_module(mod_path)
File "C:\Users\girish\Anaconda3\envs\my_env\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 985, in _gcd_import
File "", line 968, in _find_and_load
File "", line 957, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 697, in exec_module
File "", line 222, in _call_with_frames_removed
File "C:\Users\girish\DeepQA-master\chatbot_website\chatbot_interface\chatbotmanager.py", line 11, in
from chatbot import chatbot
ImportError: cannot import name 'chatbot'

@proszx
Copy link

proszx commented Apr 1, 2018

put the chatbot Directory into chatbot_website

@jacklxf
Copy link

jacklxf commented Feb 19, 2019

I have fixed the error. if you look into the code, the default path format is for linux. So i tried to run the program on linux. then no such error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants