plexinc/plex-for-kodi

Plex Broken

albertescriche opened this issue · 10 comments

Description: Plex is not loading sending this error,

Looks like after urllib3 update there-s a discrepancy between connection and connectionpool

File "C:\Users\user\AppData\Roaming\Kodi\addons\script.plex\lib_included_packages\plexnet\asyncadapter.py", line 9, in
from requests.packages.urllib3.connectionpool import VerifiedHTTPSConnection
ImportError: cannot import name 'VerifiedHTTPSConnection' from 'urllib3.connectionpool' (C:\Users\albes\AppData\Roaming\Kodi\addons\script.module.urllib3\lib\urllib3\connectionpool.py)

Details:

  • Add-on version: 3.5
  • Kodi version: 20.2
  • OS Platform: windows
  • Hardware: nuc

Checklist

  • I have included a link to a log (or at the very least a link to a forum post with a log) from a session that had the issue
  • I have added appropriate GitHub labels
b-ryan commented

Same issue. plex-for-kodi hasn't updated in awhile, so something else must have updated right? I'm wondering if I can manually roll back a package somewhere.

b-ryan commented

Ok I hacked a fix. I don't know the implications of doing this, but hey.. it's working for me. I first went into the add-ons interface for Kodi and disabled automated updates for the urllib3 add-on. Then I ssh'd into my Kodi box and did the following:

cd /storage/.kodi/addons/script.module.urllib3/lib
mv urllib3 urllib3.backup # make a backup of the code in case things go wrong
wget https://github.com/urllib3/urllib3/archive/refs/tags/1.26.18.tar.gz # download the code for urllib3 version 1.26.18
tar xzvf 1.26.18.tar.gz # extract the code
mv urllib3-1.26.18/src/urllib3/ . # move the relevant portion of the urllib3 code to the right spot
rm -r 1.26.18.tar.gz urllib3-1.26.18/ # clean up the stuff we don't need

@b-ryan great idea, works for me too. thx

Can confirm that this works. Thanks for the fix

How to fix on Firestick?

I switched to the composite add-on instead to access my plex library, which works fine. I use plex-mpv-shim (python) outside of Kodi which also depends on urllib3 and it works.

https://forum.kodi.tv/showthread.php?tid=351179

@b-ryan thanks for the tip. I'm using xbox series x so ssh is not as straightforward but what I did manage to do was install an old version of urllib3 using install from zip file and this repo: https://mirrors.kodi.tv/addons/nexus/script.module.urllib3/

@Barbaracus this should work for firestick too

Use the Pannal fork, it's actively maintained and have this issue fixed

https://github.com/pannal/plex-for-kodi

The Pannal fork works for me