2017-11-28, 06:06
Ok strange one.
I recently noticed an error with my addon (Oz Weather) that only happens when using profiles other than the master profile. Also the Trakt v3 addon exhibits this, so it's not just my addon.
I have noticed this only recently - last couple of months at most. So something has changed.
The error is:
I thought urllib3 came via my addon.xml using:
which in turn import urllib3:
...what I am wondering about is
...Many thanks for your help!
I recently noticed an error with my addon (Oz Weather) that only happens when using profiles other than the master profile. Also the Trakt v3 addon exhibits this, so it's not just my addon.
I have noticed this only recently - last couple of months at most. So something has changed.
The error is:
Code:
20:10:36.573 T:139711338968832 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 urllib3
Traceback (most recent call last):
File "/storage/.kodi/addons/weather.ozweather/default.py", line 35, in <module>
from weatherzone import *
File "/storage/.kodi/addons/weather.ozweather/resources/lib/weatherzone.py", line 19, in <module>
import requests
File "/storage/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 43, in <module>
import urllib3
ImportError: No module named urllib3
-->End of Python script error report<--
I thought urllib3 came via my addon.xml using:
Code:
<import addon="script.module.requests" version="2.0.0"/>
which in turn import urllib3:
Code:
<import addon="script.module.urllib3" version="1.22"/>
...what I am wondering about is
- Why this addon still works just fine for the Master profile, with no error, but raises the error above with any secondary profile (tried on both Windows and LibreElec).
- When/why did this change happen, and where should I have been looking to be forewarned about this?
- How can I fix it to start working again in sub-profiles as well?
...Many thanks for your help!