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

can't get kalliope working #683

Open
torrenoXd opened this issue Jan 31, 2023 · 3 comments
Open

can't get kalliope working #683

torrenoXd opened this issue Jan 31, 2023 · 3 comments

Comments

@torrenoXd
Copy link

Hello, so I was able to plow through snowboy depreciated package and change it to porcupine.
But I have met the following error and can't move forward no matter what I do

Exception in thread <class 'kalliope.signals.order.order.Order'>:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.10/dist-packages/kalliope/signals/order/order.py", line 89, in run
    self.start_trigger()
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 402, in trigger
    return self.machine._process(func)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 1223, in _process
    self._transition_queue[0]()
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 416, in _trigger
    self._process(event_data)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 439, in _process
    if trans.execute(event_data):
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 277, in execute
    self._change_state(event_data)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 287, in _change_state
    event_data.machine.get_state(self.dest).enter(event_data)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 129, in enter
    event_data.machine.callbacks(self.on_enter, event_data)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 1146, in callbacks
    self.callback(func, event_data)
  File "/usr/local/lib/python3.10/dist-packages/transitions/core.py", line 1167, in callback
    func(*event_data.args, **event_data.kwargs)
  File "/usr/local/lib/python3.10/dist-packages/kalliope/signals/order/order.py", line 98, in start_trigger_process
    self.trigger_instance.daemon = True
AttributeError: 'NoneType' object has no attribute 'daemon'
@Sispheor
Copy link
Member

Not tested on python 3.10.

@corus87
Copy link
Contributor

corus87 commented Jan 31, 2023

Python 3.10 is working, shouldn't be the problem.

@torrenoXd are you sure the porcupine trigger was loaded properly?
Can you please post a complete debug log --> kalliope start --debug

@DrGood01
Copy link

hello,

same problem here, running on lubuntu 22.04.
here is the complete debug log:

$ kalliope start --debug
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Logger ready
2023-04-17 11:04:46 :: kalliope-0.7.2 :: kalliope args: Namespace(action='start', run_synapse=None, run_order=None, brain_file=None, debug=True, git_url=None, neuron_name=None, stt_name=None, tts_name=None, trigger_name=None, signal_name=None, deaf=False)
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Try to load file from 1: /home/dominique/kalliope_starter_fr/settings.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File found in /home/dominique/kalliope_starter_fr/settings.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File path to load: /home/dominique/kalliope_starter_fr/settings.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Current processor type: x86_64
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File path to load: /home/dominique/kalliope_starter_fr/settings.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Default STT: google
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Default TTS: pico2wave
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Default Trigger name: porcupine
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Default Player name: mplayer
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Resource directory synapse: {'neuron': 'resources/neurons', 'stt': 'resources/stt', 'tts': 'resources/tts', 'signal': 'resources/signal', 'trigger': 'trigger'}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingLoader] Neuron resource folder path loaded: resources/neurons
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingLoader] STT resource folder path loaded: resources/stt
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingLoader] TTS resource folder path loaded: resources/tts
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingLoader] Trigger resource folder path loaded: trigger
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingLoader] Signal resource folder path loaded: resources/signal
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Try to load file from 1: /home/dominique/kalliope_starter_fr/global_variables/variables.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File found in /home/dominique/kalliope_starter_fr/global_variables/variables.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File path to load: /home/dominique/kalliope_starter_fr/global_variables/variables.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingsLoader] Options: {'name': 'Options', 'recognizer_multiplier': 1.0, 'recognizer_energy_ratio': 1.5, 'recognizer_recording_timeout': 15.0, 'recognizer_recording_timeout_with_silence': 3.0, 'deaf': False, 'mute': False}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SettingsLoader] send_anonymous_usage_stats: 442a00f573184c0393c763ea1faba4b9
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Try to load file from 1: /home/dominique/kalliope_starter_fr/brain.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File found in /home/dominique/kalliope_starter_fr/brain.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File path to load: /home/dominique/kalliope_starter_fr/brain.yml
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File path to load: /home/dominique/kalliope_starter_fr/brain.yml
Starting REST API Listening port: 5000
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Starting REST API Listening port: 5000
Starting Kalliope
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Starting Kalliope
Press Ctrl+C for stopping
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Press Ctrl+C for stopping
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Kalliope entrypoint] List of signal class to load: {'order'}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.signals.order.order
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : adding to cache : kalliope.signals.order.order
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NotificationManager] Add new instance to the manager
Starting order signal
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Starting order signal
2023-04-17 11:04:46 :: kalliope-0.7.2 :: PlayerLauncher: Start player mplayer with parameters: {}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.players.mplayer.mplayer
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : adding to cache : kalliope.players.mplayer.mplayer
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Mplayer.init] instance
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Mplayer.init] args : {}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Order] Entering state: starting_trigger
2023-04-17 11:04:46 :: kalliope-0.7.2 :: TriggerLauncher: Start trigger porcupine with parameters: {'keywords': [{'keyword': {'ppn_file': 'trigger/porcupine/hello-Jane_fr_linux_v2_2_0.ppn'}}], 'callback': <bound method Order.trigger_callback of <Order(<class 'kalliope.signals.order.order.Order'>, started daemon 139830158538304)>>}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.trigger.porcupine.porcupine
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : loading path : trigger/porcupine/porcupine.py, as package Porcupine
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : adding to cache : Porcupine
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Try to load file from 1: /home/dominique/kalliope_starter_fr/trigger/porcupine/hello-Jane_fr_linux_v2_2_0.ppn
2023-04-17 11:04:46 :: kalliope-0.7.2 :: File found in /home/dominique/kalliope_starter_fr/trigger/porcupine/hello-Jane_fr_linux_v2_2_0.ppn
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [HookManager] calling synapses in hook name: on_start
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [HookManager] hook: on_start , type: <class 'str'>
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: ['on-start-synapse']
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [LIFOBuffer] LIFO buffer created
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [LIFOBuffer] Add a new synapse list to process to the LIFO
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [LIFOBuffer] number of synapse list to process: 1
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [LIFOBuffer] number of neuron to process: 1
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [LIFOBuffer] process_neuron_list: is_api_call: True
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronLauncher] replacing brackets from {'message': 'je suis prête', 'is_api_call': True}, using {}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronLauncher] replacing brackets from je suis prête, using {}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronLauncher] replacing brackets from True, using {}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Run neuron: "{'name': 'say', 'parameters': {'message': 'je suis prête', 'is_api_call': True}}"
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.neurons.say.say
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : adding to cache : kalliope.neurons.say.say
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronModule] TTS args: {'name': 'pico2wave', 'parameters': {'language': 'fr-FR', 'cache': True}}
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronModule] Say() called with message: je suis prête
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronModule] message is string
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronModule] tts_message to say: je suis prête
je suis prête
2023-04-17 11:04:46 :: kalliope-0.7.2 :: je suis prête
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Cortex] key saved in memory. key: kalliope_last_tts_message, value: je suis prête
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [NeuronModule] mute is False, make Kalliope speaking
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [HookManager] calling synapses in hook name: on_start_speaking
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [HookManager] hook: on_start_speaking , type: <class 'NoneType'>
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: None
2023-04-17 11:04:46 :: kalliope-0.7.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.tts.pico2wave.pico2wave
2023-04-17 11:04:46 :: kalliope-0.7.2 :: Listening for hello-Jane with sensitivity of 0.5
Erreur de segmentation (core dumped)

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

4 participants