Hi,
I would like to create an addon which adds a python module available to all other addons. How can I achieve this?
https://github.com/enyone/elisaviihde/tr...lisaviihde (manually then add elisaviihde.py into lib/)
With this fileset the addon installs succesfully in KODI but still there is no elisaviihde python module available for "import elisaviihde".
Thanks.
Not working after that modification.
Code:
$ tail -f /storage/.kodi/temp/kodi.log
02:02:56 T:1820324928 ERROR: Copy - Failed read from file zip://%2fstorage%2fscript.module.elisaviihde-1.1.zip/script.module.elisaviihde/icon.png?cache=no
02:02:56 T:1820324928 ERROR: Could not read addon description of script.module.elisaviihde
Code:
$ unzip -l script.module.elisaviihde-1.1.zip
Archive: script.module.elisaviihde-1.1.zip
Length Date Time Name
--------- ---------- ----- ----
0 2015-03-06 19:59 script.module.elisaviihde/
0 2015-03-06 18:47 script.module.elisaviihde/LICENSE.txt
647 2015-03-08 13:57 script.module.elisaviihde/addon.xml
0 2015-03-06 18:47 script.module.elisaviihde/changelog.txt
7237 2014-11-23 16:14 script.module.elisaviihde/icon.png
0 2015-03-08 13:56 script.module.elisaviihde/lib/
0 2015-03-06 19:05 script.module.elisaviihde/lib/__init__.py
8829 2015-03-08 13:56 script.module.elisaviihde/lib/elisaviihde.py
--------- -------
16713 8 files
KODI 14.2 (sorry for the topic which says KODI 15)
OpenELEC 5.0.5
Now deleted script.module.elisaviihde/icon.png and it did install succesfully.
However there is still no elisaviihde available at another addon.
Full debug log at
http://pastebin.com/RgvwArk7
Seems that script.module.elisaviihde is no inserted in pythonpath even if it is installed. Why is that?
Code:
02:57:26 T:1759507520 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named elisaviihde
Traceback (most recent call last):
File "/storage/.kodi/addons/XBMC-Elisa-Viihde-plugin-pull_requests/addon.py", line 10, in <module>
from elisaviihde import elisaviihde
ImportError: No module named elisaviihde
-->End of Python script error report<--
Tried all of these without success.
Code:
import elisaviihde
from elisaviihde import elisaviihde
from lib import elisaviihde
The other module has requirements:
Code:
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.elisaviihde" version="1.2"/>
</requires>