[RPi2B] Plex script add-on throws ImportError from urllib3.connectionpool

  • I'm new to LibreELEC but tried it because my old rasplex seemed to not be getting much new updates. Installed via Official Raspberry Imager for a Pi 2 B. Install went fine, then install plex script and didn't see anyway to configure it with my plex server (on Synology) so figured it would find it just like Plex clients do. Next ran plex script but got an error to check logs. In /storage/.kodi/temp/kodi.log I found


    2026-01-31 22:36:12.793 T:903 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <class 'ImportError'>
    Error Contents: cannot import name 'VerifiedHTTPSConnection' from 'urllib3.connectionpool' (/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py)
    Traceback (most recent call last):
    File "/storage/.kodi/addons/script.plex/plugin.py", line 7, in <module>
    from lib import _included_packages, plex, util
    File "/storage/.kodi/addons/script.plex/lib/plex.py", line 13, in <module>
    from plexnet import plexapp, myplex, util as plexnet_util
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexapp.py", line 399, in <module>
    util.setApp(App())
    ^^^^^
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexapp.py", line 36, in __init__
    from . import nowplayingmanager
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/nowplayingmanager.py", line 10, in <module>
    from . import plexrequest
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexrequest.py", line 4, in <module>
    from . import plexserver
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexserver.py", line 3, in <module>
    from . import http
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/http.py", line 15, in <module>
    from . import asyncadapter
    File "/storage/.kodi/addons/script.plex/lib/_included_packages/plexnet/asyncadapter.py", line 9, in <module>
    from requests.packages.urllib3.connectionpool import VerifiedHTTPSConnection
    ImportError: cannot import name 'VerifiedHTTPSConnection' from 'urllib3.connectionpool' (/storage/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py)
    -->End of Python script error report<--

    2026-01-31 22:36:13.109 T:902 error <general>: GetDirectory - Error getting plugin://script.plex/
    2026-01-31 22:36:13.145 T:823 error <general>: CGUIMediaWindow::GetDirectory(plugin://script.plex/) failed

    The plugins seemed up-to-date, so I tried uninstall, reboot, re-install, but got the same error. Anyone know what's going on with this?
    Thanks

  • The error you're seeing is actually a known compatibility issue between the Plex add-on and the newer version of the urllib3 module included in recent LibreELEC/Kodi builds. The VerifiedHTTPSConnection name was removed in urllib3 v2.0, which is what's breaking the script's 'bundled' packages.

  • OK, I guess one could try to downgrade urllib but that would make me uneasy about the effect on the rest of the system. Do you know if there is any plan to address this in LibreELEC/Kodi or Plex (whoever is considered responsible)? Short term, I guess I will look elsewhere for now for running Plex. Maybe OSMC or maybe just back to Rasplex. Perhaps OSMC will have the same problem.

  • ou are right to be cautious. Downgrading the library is difficult in LibreELEC because of the read only filesystem and it would likely break other dependencies. The responsibility lies with Plex as their official add-on uses outdated code that has not kept pace with modern Python security changes. Since LibreELEC stays current with Python libraries, they will not roll back the system for one add-on. OSMC will likely face the same issue, so using a well-maintained alternative like PlexKodiConnect is the most stable path forward for your Pi 2.

  • The current version of PM4K in the 'Don't Panic' repo is not compatible with newer Python versions/libs. The workaround is to use the latest add-on source from https://github.com/pannal/plex-for-kodi/tree/develop_kodi21 as this contains fixes (and more). You need to download the source files from GitHub as a zip file, then unzip and rename the extracted folder to "script.plexmod" before re-zip'ing the folder. The zip file is then in a format that will install to Kodi (with install-from-zip allowed). If you only download the source and rename the original zip file the install to Kodi will fail.