Giter Club home page Giter Club logo

kodi.six's People

Contributors

romanvm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kodi.six's Issues

i got an error updating...

pls see this:
Sandmann79/xbmc#551

i've kodi 17.3 portable and trying to update some add on i get errors:

16:53:18.219 T:4164 ERROR: ADDON: extension '' is not currently supported for service addon
16:53:57.014 T:4164 ERROR: Previous line repeats 7 times.
16:53:57.014 T:4164 ERROR: XFILE::CDirectory::GetDirectory - Error getting zip://special%3a%2f%2fhome%2faddons%2fpackages%2fscript.module.six-1.14.0%2bmatrix.2.zip/
16:53:57.014 T:4164 ERROR: CAddonInstallJob[script.module.six]: invalid package special://home/addons/packages/script.module.six-1.14.0+matrix.2.zip
16:53:57.074 T:4164 ERROR: ADDON: extension '' is not currently supported for service addon

how to solve..??
pls guide me as i was a little child cause i'm really not skilled..
thxs so much in adv
cheers

Best Practice for referencing the script.module.kodi-six library

Roman,

I am running into issues referencing the script.module.kodi-six library and wondering what is the best practice for referencing it?

It doesn't seem to matter whether I reference it within the PYTHONPATH or sys.path. It still runs into issues.

export PYTHONPATH=/Kodi/addons/script.module.kodi-six/libs:/Kodi/addons/script.module.kodi-six/libs/kodi_six

OR

import sys
sys.path.append("/Kodi/addons/script.module.kodi-six/libs")
sys.path.append("/Kodi/addons/script.module.kodi-six/libs/kodi_six")
print(sys.path)

Kodi/addons/script.module.kodi-six/libs/kodi_six/xbmc.py", line 10, in
from .utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
ImportError: attempted relative import with no known parent package

It seems to get further, if I more explicitly define the .util module as kodi_six.util.

cd Kodi/addons/script.module.kodi-six/libs/kodi_six/

sed "s/.utils/kodi_six.utils/g" xbmc*.py | grep "utils"
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper
from kodi_six.utils import PY2 as _PY2, ModuleWrapper as _ModuleWrapper

sed -i.orig "s/.utils/kodi_six.utils/g" xbmc*.py

However, I still run into issues further down the line.

Kodi/addons/plugin.video.scrubsv2/resources/lib/modules/control.py", line 28, in
addon = xbmcaddon.Addon
AttributeError: module 'kodi_six.xbmcaddon' has no attribute 'Addon'

Do you have any guidance on the best practice for referencing the script.module.kodi-six library?

Thank You.

Gary

Syntax error on Kodi 16

Hello,

I was trying to use your library for migrating to Python3.
One of the users reported an error on Kodi 16:

                                            SyntaxError: ('invalid syntax', ('/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/.../resources/site-packages/kodi_six/utils.py', 60, 52, '            mod_kwargs = {key: py2_encode(value) for key, value\n'))

Kodi 16 is too old for this?

UnicodeDecode Errors

Two different users have report errors being thrown in one of my addons that uses kodi-six. In both cases the error is thrown by the kodi-six library:

UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 170654: invalid continuation byte

This is happening on an xbmc.executeJSONRPC() method call for both. I'm guessing the JSON result contains some characters that are causing this issue. Below are the log files given to me with the errors.

Kodi 18.4 - Windows (line 1242)
Kodi 18.3 - Linux (line 254)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.