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

Issue with outdated keyword file #1

Closed
thatbitchsystem opened this issue Apr 15, 2023 · 2 comments
Closed

Issue with outdated keyword file #1

thatbitchsystem opened this issue Apr 15, 2023 · 2 comments

Comments

@thatbitchsystem
Copy link

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_EXCEPTIONstatus
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
Copy link
Author

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
Copy link
Owner

The keyword file is now updated

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

2 participants