[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

    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.

  • 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.

    Thank you !!!!


    Was just setting up a new rpi5, and couldn't get Plex nor PM4K from the official repositories working ... digged through the logfiles but a whole bunch of errors that didn;t seem easily solvable ... then I google and found your post ... 5 minutes later, PM4K up and running !


    :thumbup::thumbup::thumbup::*