DeepQA icon indicating copy to clipboard operation
DeepQA copied to clipboard

couldnt import chatbot error while running the server

Open GirishBB opened this issue 6 years ago • 2 comments

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'

GirishBB avatar Mar 30 '18 17:03 GirishBB

put the chatbot Directory into chatbot_website

proszx avatar Apr 01 '18 09:04 proszx

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

jacklxf avatar Feb 19 '19 04:02 jacklxf