Sonething has changes in requests/urllib3 (using profiles other than master only?!)
#1
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:
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!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply


Messages In This Thread
Sonething has changes in requests/urllib3 (using profiles other than master only?!) - by bossanova808 - 2017-11-28, 06:06


Logout Mark Read Team Forum Stats Members Help
Sonething has changes in requests/urllib3 (using profiles other than master only?!)1
This forum uses Lukasz Tkacz MyBB addons.