plexinc / plex-for-kodi

Offical Plex for Kodi add-on releases.
GNU General Public License v2.0
249 stars 123 forks source link

Plex Broken #389

Open albertescriche opened 9 months ago

albertescriche commented 9 months ago

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:

Checklist

b-ryan commented 9 months ago

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 9 months ago

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
albertescriche commented 9 months ago

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

anytimesoon commented 9 months ago

Can confirm that this works. Thanks for the fix

Barbaracus commented 9 months ago

How to fix on Firestick?

psarraf commented 9 months ago

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

Jezza96 commented 9 months ago

@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

Generator commented 9 months ago

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

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

eastein commented 1 month ago

The Pannal fork works for me