Posts: 31
Joined: Jul 2018
Reputation:
0
Edoar
Junior Member
Posts: 31
2019-02-13, 00:07
(This post was last modified: 2019-02-13, 00:08 by Edoar.)
Hi anyone, how can i use a external library on service addon, for example i'm want use websockets, now i'm trying put it only on addon.xml file and add on import tag on require tag. i'm confused.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
you can only add python modules in your addon.xml that are available in the repo.
there is no websockets module in the kodi repository.
also websockets is only compatible with python 3, so it will not work with the current kodi version.
Posts: 31
Joined: Jul 2018
Reputation:
0
Edoar
Junior Member
Posts: 31
thanks by your answer, where can i see the modules?
am i can't install libraries or packages on zip and use it?
i'm use Kodi Leia and i see that has a python 2.7 to 3.7 versions installed.
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
i stand corrected :-)
the client indeed works fine with python 2.7