DevMiser / DaVinci

DaVinci - The ChatGPT AI Virtual Assistant
175 stars 22 forks source link

Issue with outdated keyword file #1

Closed thatbitchsystem closed 1 year ago

thatbitchsystem commented 1 year ago

Terminal output when attempting to run the program after fresh install

pi@raspberrypi:~/DaVinci $ python3 DaVinci.py [ERROR] keyword file belongs to a different version of the library. keyword file is 2.1.0 while the library is 2.2.0. [ERROR] loading keyword file at /home/pi/.local/lib/python3.9/site-packages/pvporcupine/resources/keyword_files/ raspberry-pi/DaVinci_raspberry-pi.ppn failed with INVALID_ARGUMENT Traceback (most recent call last): File "/home/pi/DaVinci/DaVinci.py", line 288, in wake_word() File "/home/pi/DaVinci/DaVinci.py", line 142, in wake_word porcupine = pvporcupine.create(keywords=["computer", "jarvis", "DaVinci",], File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_factory.py", line 69, in create return Porcupine( File "/home/pi/.local/lib/python3.9/site-packages/pvporcupine/_porcupine.py", line 164, in init raise self._PICOVOICE_STATUS_TO_EXCEPTION[status]() pvporcupine._porcupine.PorcupineInvalidArgumentError ^CException ignored in: <module 'threading' from '/usr/lib/python3.9/threading.py'> Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown lock.acquire() KeyboardInterrupt:

thatbitchsystem commented 1 year ago

Resolved issue with the following commands: $ mv /home/pi/.local/lib/python3.9/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/DaVinci_raspberry-pi.ppn /home/pi/DaVinci/ $ pip3 uninstall pvporcupine $ pip3 install pvporcupine==2.1.0 $ mv /home/pi/DaVinci/DaVinci_raspberry-pi.ppn /home/pi/.local/lib/python3.9/site-packages/pvporcupine/resources/keyword_files/raspberry-pi $ python3 DaVinci.py

DevMiser commented 1 year ago

The keyword file is now updated