kodi.six's People
kodi.six's Issues
Please add 'errors' parameter to py2_encode and py2_decode
The original encode and decode have another optional input parameter, called errors
.encode([encoding], [errors='strict'])
and .decode([encoding], [errors])
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
surrogateescape codec error handler does not exist in Python 2
surrogateescape
codec error handler does not exist in Python 2 and needs to be replaced with replace
.
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?
Submit to Matrix branch
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.