m0ngr31 / kanzi

Alexa skill for controlling Kodi
https://lexigr.am
MIT License
428 stars 149 forks source link

AttributeError: Kodi instance has no attribute 'GetShows' #254

Closed Xtropy74 closed 6 years ago

Xtropy74 commented 6 years ago

I just upgraded kodi-alexa from a commit back in November 2017 and when I try to generate slots, I get most of them generated but then the script fails stating:

Writing: MOVIES Traceback (most recent call last): File "/usr/local/sbin/kodi-alexa/generate_custom_slots.py", line 149, in retrieved = kodi.GetShows() AttributeError: Kodi instance has no attribute 'GetShows'

Any suggestions on the cause or fix to allow my Shows slot to generate?

jingai commented 6 years ago

Remember you also need to update kodi-voice. The slot generator is working here for me.

Xtropy74 commented 6 years ago

Thanks the issue was I was running the slotgenerator outside of venv. Once I ran the code after:

virtualenv venv source venv/bin/activate

Everything worked fine. Thanks