python - ImportError: No module named db when using chatterbot -


i trying buid chatbot. installed chatterbot package. python code following:

from chatterbot import talkwithcleverbot talk = talkwithcleverbot() talk.begin() 

but getting following error:

 traceback (most recent call last):  file "c:\users\jerin\desktop\bottobot.py", line 2, in <module>    talk = talkwithcleverbot()  file "c:\python27\lib\site-packages\chatterbot\__init__.py", line 157, in     __init__  super(talkwithcleverbot, self).__init__()  file "c:\python27\lib\site-packages\chatterbot\__init__.py", line 4, in  __init__  jsondb.db import database  importerror: no module named db 

i tried installing jsondb , db packages, there no good. please me

your error highlighting issue -- there's no db object import jsondb call in __init__.py.

def __init__(self, name="bot", logging=true):       jsondb.db import database                   ^^ doesn't exist 

i found source 'chatterbot' module on github , appears 'jsondb' author importing not 1 you'd if installed pip. instead, author expecting use his jsondb module can found on github.

you can resolve uninstalling jsondb retreived pip:

pip uninstall jsondb 

and installing chatterbot author's jsondb module:

pip install git+https://github.com/gunthercox/jsondb.git 

you ran error because chatterbot author assuming had his package named jsondb installed , did not include dependency in typical manner.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -