bacardi55 / kalliope-mpd

A simple neuron for Kalliope to leverage mpd to play music
http://bacardi55.org/en/term/kalliope
6 stars 2 forks source link

kalliope dont know where to get the mp3 from !! #5

Open Amrlol opened 6 years ago

Amrlol commented 6 years ago

hi everybody , i've installed the mpd player on my device and connected it to my pi , and also added some mp3 files to the raspberry in home/pi directory in a music file . finally got to play music on my using my phone , but when i added all the parameters to the .yml file such as mpd-url (which is my raspberry ip) and port 6600 .. i dont seem to get any response from kalliope to play anything no errors or what so ever but says running syanpse .. also when i ask a certain command "search for {{mpd-search}} music" i get this error >>

Google Speech Recognition thinks you said search for hip hop music Order matched in the brain. Running synapse "search-music" The parameter query is not available in the order Missing parameter in neuron kalliopempd. Execution skipped

@Sispheor i've read all the documents about kalliope as u recomanded and solved some of the issus i had , but i cant seem to find a solution to this problem ?? so can you help ?

Sispheor commented 6 years ago

Show your synapse

Amrlol commented 6 years ago

Sispheor commented 6 years ago

Please use code highlight when you post code.

Sispheor commented 6 years ago

And the error is normal. You set in your order a variable "mpd_search" and you finally use "query" in the neuron parameter.

Sispheor commented 6 years ago

Seriously, RTFM.

Amrlol commented 6 years ago

i've read the f manual , anyway thanks for the help -_-

Amrlol commented 6 years ago

no need for the attiude

Amrlol commented 6 years ago

there u go Google Speech Recognition thinks you said search for Rockstar music Order matched in the brain. Running synapse "search-music" i added what u say and the same problem appears >> no errors or whatever .. but nothing is playing @Sispheor

Sispheor commented 6 years ago

It's just that if you would have read the doc, you would know how to use variable from order.

So, the right config is:

query: "{{mpd_search}}"

because you caught something on your order and placed it in a variable named "mpd_search"

Amrlol commented 6 years ago

man . thank for your help but i've read the doc and i dont think my issue is in this .. because i've changed the query . still gives me runnig synapse but i dont hear any music .. @Sispheor

Sispheor commented 6 years ago

mpd_url: "xxx"? Yiu seet this?

Amrlol commented 6 years ago

no no i've put the x's i read the docs and saw i have to put in my rasperry ip !? is that correct ??

Sispheor commented 6 years ago

Just to summerize, your problem, following the issue you've opened is "Missing parameter in neuron kalliopempd. Execution skipped".

Did you try to replace "query" by mpd_search? The neuron is executed corectly without any missing parameter error?

Amrlol commented 6 years ago

yes i've replaced "query" by mpd_search? also yes euron is executed corectly without any missing parameter error so what seems to be the problem

Sispheor commented 6 years ago

run with --debug and check what the neuron give as output.

Sispheor commented 6 years ago

-_-. kalliope start --debug

Amrlol commented 6 years ago

oooh i knew that thats why i deleted the comment

Amrlol commented 6 years ago

`[SpeechRecognition] Threshold set to: 4000 2018-10-01 23:40:12 :: kalliope-0.5.2 :: [SpeechRecognition] Threshold set to: 4000 Say something! 2018-10-01 23:40:12 :: kalliope-0.5.2 :: Say something! 2018-10-01 23:40:12 :: kalliope-0.5.2 :: [SpeechRecognition] STT timeout: 0 2018-10-01 23:40:17 :: kalliope-0.5.2 :: [SpeechRecognition] end of speech recognition process Google Speech Recognition thinks you said search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Google Speech Recognition thinks you said search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Order] Order listener callback called. Order to process: search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] calling synapses in hook name: on_stop_listening 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] hook: on_stop_listening , type: <type 'NoneType'> 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: None 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Cortex] key saved in memory. key: kalliope_last_order, value: search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Order] order in analysing_order_thread search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Received order: search for Rockstar music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name say-hello-en 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: hello 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name Say-hi-to-friend 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: say hi to {{ friend_name }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name say-local-date 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: what time is it 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name say-local-date-from-template 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: which date are we 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name tea-time 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: is it time for tea 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name synapse1 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: ask me a question 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name synapse2 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: synapse2 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name synapse3 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: synapse3 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name synapse4 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: synapse4 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name horoscope-scorpio 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: what is my horoscope today 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-add 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} + {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-add 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} add {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-subtract 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} - {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-subtract 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} subtract with {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-multiply 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} x {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-multiply 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} multiply by {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-divide 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} / {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name calculate-divide 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: calculate {{ var1 }} divide by {{ var2 }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name wikipedia-search 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: look on wikipedia {{ query }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name ambient-random 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play random sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name ambient-stop 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: stop sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name forest 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play forest sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name rain 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play rain sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name beach 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play beach sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name fireplace 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play fireplace sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name thunder 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play thunder sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name ocean 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: play ocean sound 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name ambient-sleep 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: sound before sleep 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name check-email 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: check gmail 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name answer-of-everything-short 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: i have a question {{ query }} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: start playlist {{query}} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-music-hiphop 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: start playing good music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name search-fashion-music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: put some fashion music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-toggle 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: pause music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-next 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: put next song 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-previous 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: put previous song 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name play-stop 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: stop the music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] Testing Synapse name search-music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [OrderAnalyser] is_normal_matching called with user_order: search for rockstar music, signal_order: search for {{mpd_search}} music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Order found! Run synapse name: search-music Order matched in the brain. Running synapse "search-music" 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Order matched in the brain. Running synapse "search-music" 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronParameterLoader._associate_order_params_to_values] user order: search for Rockstar music, order from synapse: search for {{mpd_search}} music 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronParameterLoader.get_parameters]Parameters for order: {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Cortex] place parameters in temp list: {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] calling synapses in hook name: on_order_found 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] hook: on_order_found , type: <type 'NoneType'> 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: None 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [LIFOBuffer] Add a new synapse list to process to the LIFO 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [LIFOBuffer] number of synapse list to process: 1 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [LIFOBuffer] number of neuron to process: 1 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [LIFOBuffer] process_neuron_list: is_api_call: False 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from {'mpd_random': '0', 'mpd_port': '6600', 'mpd_url': '192.168.1.61', 'is_api_call': False, 'mpd_action': 'search', 'query': '{{mpd_search}}'}, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from 0, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from 6600, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from 192.168.1.61, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from False, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from search, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronLauncher] replacing brackets from {{mpd_search}}, using {'mpd_search': u'Rockstar'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Run neuron: "{'name': 'kalliopempd', 'parameters': {'mpd_random': '0', 'mpd_port': '6600', 'mpd_url': '192.168.1.61', 'is_api_call': False, 'mpd_action': 'search', 'query': 'Rockstar'}}" 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.neurons.kalliopempd.kalliopempd 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Utils]-> get_dynamic_class_instantiation : loading path : resources/neurons/kalliopempd/kalliopempd.py, as package Kalliopempd 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronModule] TTS args: {'name': 'pico2wave', 'parameters': {'cache': True, 'language': 'en-US'}} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: error: [52@0] {setvol} problems setting volume 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronModule] Say() called with message: {'status': 'KO'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [NeuronModule] message is dict 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [LIFOBuffer] complete mode 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Cortex] Clean temp memory 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] calling synapses in hook name: on_processed_synapses 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] hook: on_processed_synapses , type: <type 'NoneType'> 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: None 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Order] Entering state: starting_trigger 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] calling synapses in hook name: on_waiting_for_trigger 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [HookManager] hook: on_waiting_for_trigger , type: <type 'NoneType'> 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [SynapseLauncher] start_synapse_by_list_name called with synapse list: None 2018-10-01 23:40:23 :: kalliope-0.5.2 :: TriggerLauncher: Start trigger snowboy with parameters: {'callback': <bound method Order.trigger_callback of <Order(<class 'kalliope.signals.order.order.Order'>, started daemon 1959785584)>>, 'pmdl_file': 'trigger/kalliope-EN-12samples.pmdl'} 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Utils]-> get_dynamic_class_instantiation : package path : kalliope.trigger.snowboy.snowboy 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Try to load file from 1: /home/pi/kalliope_starter_en/trigger/kalliope-EN-12samples.pmdl 2018-10-01 23:40:23 :: kalliope-0.5.2 :: File found in /home/pi/kalliope_starter_en/trigger/kalliope-EN-12samples.pmdl 2018-10-01 23:40:23 :: kalliope-0.5.2 :: detecting... 2018-10-01 23:40:23 :: kalliope-0.5.2 :: [Order] Entering state: waiting_for_trigger_callback Waiting for trigger detection 2018-10-01 23:40:23 :: kalliope-0.5.2 :: Waiting for trigger detection

`

Amrlol commented 6 years ago

here is what i get

Sispheor commented 6 years ago

error: [52@0] {setvol} problems setting volume

So there is an error with the neuron itself. @bacardi55 it's for you :)

Amrlol commented 6 years ago

@bacardi55 can u help me with this issue ??

bacardi55 commented 6 years ago

This is the synapse I'm using to search music (running daily as part as my wake up routine):

  - name: "search-music"
    signals:
      - order: "Recherche musicale {{mpd_search}}"
    neurons:
      - kalliopempd:
          mpd_action: "search"
          mpd_url: "{{mpd_url}}"
          mpd_port: "{{mpd_port}}"
          mpd_password: "{{mpd_password}}"
          mpd_random: "0"
          query: "{{mpd_search}}"

I'm using here the variable from kalliope, but replace {{mpd_url}} by your mpd ip (192.168.1.61), {{mpd_port}} by 6600 (or whatever you setup). {{mpd_password}} is optional depending on if you protected your mpd instance. Could you update your synapse and use this one?

From your error, it seems that the neuron fails setting up default volume for some reason… I'll try this week on a classic mpd server to see if I can reproduce your issue (I'm running it with mopidy as an mpd server)

If you want to try a quick fix from the top of my head at this late hour, you can edit the kalliopempd.py file and change:

line 23 to:

"mpd_volume": kwargs.get('mpd_volume', None)

And then line 122 to:

if self.configuration['mpd_volume'] is not None:
    client.setvol(int(self.configuration['mpd_volume']))

To avoid trying setting up a default volume when the option is not in the synapse.

That being said, I won't have time to spend on debugging before this week end …

Sispheor commented 6 years ago

What kind of raspbian did you installed? Lite? Or with GUI?

Amrlol commented 6 years ago
Exception in thread <class 'kalliope.signals.order.order.Order'>:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/signals/order/order.py", line 87, in run
    self.start_trigger()
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 383, in trigger
    return self.machine._process(func)
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 1059, in _process
    self._transition_queue[0]()
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 399, in _trigger
    return self._process(event_data)
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 409, in _process
    if trans.execute(event_data):
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 263, in execute
    self._change_state(event_data)
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 274, in _change_state
    event_data.machine.get_state(self.dest).enter(event_data)
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 120, in enter
    event_data.machine.callback(handle, event_data)
  File "build/bdist.linux-armv7l/egg/transitions/core.py", line 1005, in callback
    func(*event_data.args, **event_data.kwargs)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/signals/order/order.py", line 185, in analysing_order_thread
    is_api_call=False)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/SynapseLauncher.py", line 104, in run_matching_synapse_from_order
    execdata = lifo_buffer.execute(is_api_call=is_api_call)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 109, in execute
    self._process_synapse_list(last_synapse_fifo_list)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 139, in _process_synapse_list
    self._process_neuron_list(matched_synapse=matched_synapse)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 173, in _process_neuron_list
    parameters_dict=matched_synapse.parameters)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/NeuronLauncher.py", line 62, in start_neuron
    instantiated_neuron = NeuronLauncher.launch_neuron(neuron)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/NeuronLauncher.py", line 44, in launch_neuron
    resources_dir=neuron_folder)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.2-py2.7.egg/kalliope/core/Utils/Utils.py", line 140, in get_dynamic_class_instantiation
    return klass(**parameters)
  File "resources/neurons/kalliopempd/kalliopempd.py", line 41, in __init__
    self.mpd_action_search()
  File "resources/neurons/kalliopempd/kalliopempd.py", line 95, in mpd_action_search
    self.client.play(0)
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 381, in mpd_command
    return wrapper(self, name, args, callback)
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 473, in _execute
    return retval()
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 368, in command_callback
    res = function(self, self._read_lines())
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 311, in _parse_nothing
    for line in lines:
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 538, in _read_lines
    line = self._read_line()
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 527, in _read_line
    raise CommandError(error)
CommandError: [2@0] {play} Bad song index

guys i'm having this issue , i've tried everything but i can't get the songs to work via kaliiope , i can play songs through a script , and from my phone , but not from kalliope . am i missing something .

sorry if am bothering you but i really need this to work , i'd really appreciate your help !! @Sispheor @bacardi55 note i've installed rasbian debian strech with desktop .

Sispheor commented 6 years ago

Install raspbian lite then. It's precised in the doc. Pulseaudio is installed with the GUI and breaks a lot of things.

Mysh3ll commented 5 years ago

Hi, it's seems we have the same issue, mpd doesn't play my song. I tested with MPDROID and it works perfectly. Here is my debug log:

kalliope start --run-order "mets de la musique de aoki" --debu g

2019-01-26 21:30:57 :: kalliope-0.5.3 :: MPD Action: search
Traceback (most recent call last):
  File "/usr/local/bin/kalliope", line 11, in <module>
    load_entry_point('kalliope==0.5.3', 'console_scripts', 'kalliope')()
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/__init__.py", line 154, in main
    is_api_call=False)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/SynapseLauncher.py", line 104, in run_matching_synapse_from_order
    execdata = lifo_buffer.execute(is_api_call=is_api_call)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 109, in execute
    self._process_synapse_list(last_synapse_fifo_list)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 139, in _process_synapse_list
    self._process_neuron_list(matched_synapse=matched_synapse)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/Lifo/LIFOBuffer.py", line 173, in _process_neuron_list
    parameters_dict=matched_synapse.parameters)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/NeuronLauncher.py", line 62, in start_neuron
    instantiated_neuron = NeuronLauncher.launch_neuron(neuron)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/NeuronLauncher.py", line 44, in launch_neuron
    resources_dir=neuron_folder)
  File "/usr/local/lib/python2.7/dist-packages/kalliope-0.5.3-py2.7.egg/kalliope/core/Utils/Utils.py", line 140, in get_dynamic_class_instantiation
    return klass(**parameters)
  File "resources/neurons/kalliopempd/kalliopempd.py", line 41, in __init__
    self.mpd_action_search()
  File "resources/neurons/kalliopempd/kalliopempd.py", line 95, in mpd_action_search
    self.client.play(0)
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 381, in mpd_command
    return wrapper(self, name, args, callback)
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 473, in _execute
    return retval()
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 368, in command_callback
    res = function(self, self._read_lines())
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 311, in _parse_nothing
    for line in lines:
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 538, in _read_lines
    line = self._read_line()
  File "/usr/local/lib/python2.7/dist-packages/mpd/base.py", line 527, in _read_line
    raise CommandError(error)
mpd.base.CommandError: [2@0] {play} Bad song index

I installed kalliope with rasbian debian strech lite.

Can someone help me please ?