snipsco / snipsmanager

The Snips Assistant Manager
MIT License
16 stars 16 forks source link

Can't run skill #25

Closed psychonetic closed 6 years ago

psychonetic commented 6 years ago

Hello,

I am trying to use the snips hue skill. But if I try to run the snipmanager I get the following error: __init__() got an unexpected keyword argument 'locale'

Any idea?

Lomitaii commented 6 years ago

Hi. Have the same issue. Did you manage to solve it?

anthonyray commented 6 years ago

Hi !

The locale argument is expected in the constructor of the SnipsHue skill (➡️ https://github.com/snipsco/snips-skill-hue/blob/master/snipshue/snipshue.py#L20).

You can specify the locale of your skill in two places in the hierarchy of your Snipsfile :

Let's take this Snipsfile as an example :

microphone:
  identifier: respeaker
  params:
    vendor_id: 2886
    product_id: 0007
skills:
  - pip: /home/pi/snips-skill-hue
    name: SnipsHue
    package_name: snipshue
    params:
      locale: en_US

Cheers ✌🏾