I am new to working with Chatterbot. I am attempting to run chatterbot on my raspberry pi 4. After installing it, I attempted a basic program from chatterbot's documentation website:
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
chatbot = ChatBot('Bob')
######### Create a new trainer for the chatbot
trainer = ChatterBotCorpusTrainer(chatbot)
######### Train the chatbot based on the english corpus
trainer.train("chatterbot.corpus.english")
# Get a response to an input statement
responce = chatbot.get_response("Hello, how are you today?")
print(responce)
When I run this program I get this error message:
Traceback (most recent call last):
File "/home/pi/Matthew.codes/JenkinsProject/chatbot_test.py", line 4, in
chatbot = ChatBot('Bob')File "/home/pi/.local/lib/python3.7/site-packages/chatterbot/chatterbot.py", line 28, in init
self.storage = utils.initialize_class(storage_adapter, **kwargs)File "/home/pi/.local/lib/python3.7/site-packages/chatterbot/utils.py", line 33, in initialize_class
return Class(*args, **kwargs)File "/home/pi/.local/lib/python3.7/site-packages/chatterbot/storage/sql_storage.py", line 20, in init
super().init(**kwargs)File "/home/pi/.local/lib/python3.7/site-packages/chatterbot/storage/storage_adapter.py", line 23, in init
'tagger_language', languages.ENGFile "/home/pi/.local/lib/python3.7/site-packages/chatterbot/tagging.py", line 20, in init
import spacyFile "/home/pi/.local/lib/python3.7/site-packages/spacy/init.py", line 6, in
from .errors import setup_default_warningsFile "/home/pi/.local/lib/python3.7/site-packages/spacy/errors.py", line 2, in
from .compat import Literal File "/home/pi/.local/lib/python3.7/site-packages/spacy/compat.py", line 38, in from thinc.api import Optimizer # noqa: F401 File "/home/pi/.local/lib/python3.7/site-packages/thinc/api.py", line 2, in from .initializers import normal_init, uniform_init, glorot_uniform_init, zero_init File "/home/pi/.local/lib/python3.7/site-packages/thinc/initializers.py", line 4, in from .backends import Ops File "/home/pi/.local/lib/python3.7/site-packages/thinc/backends/init.py", line 7, in from .ops import Ops File "/home/pi/.local/lib/python3.7/site-packages/thinc/backends/ops.py", line 15, in from .cblas import CBlas File "thinc/backends/cblas.pyx", line 1, in init thinc.backends.cblas File "/home/pi/.local/lib/python3.7/site-packages/blis/init.py", line 3, in from .cy import init ImportError: /home/pi/.local/lib/python3.7/site-packages/blis/cy.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_load_8
I have tried adding storage adapters to the name class, but that did not work. As far as I can tell, I have installed all the dependencies.