RP4 Plex crash

Backstory - I’m in Australia, I’ve been using Plex on a Telstra 4700TL Roku, but its hobbled and branded for Telstra, but it still does what I need, and can even sideload Jellyfin for my future plans. But Telstra are shutting it all down, so I need something to replace it. This morning I came across OSMC, it looks great, and i’ve got a spare RP4 lying around, so I thought i’d give it a try before I buy, see if I like the experience then purchase a couple of the Vero’s.

I tried the P4MK: PM4K / PlexMod for Kodi (18, 19, 20, 21+) - Streaming Devices - Plex Forum

It lets me sign in, but gives very weird rendering, if you try to play a video, it crashes so badly you need to physically power off the unit. I note that i’m running version 0.7.6, when it appears to up to 0.7.9 rev3 - I tried to update sources etc, no way I can see to get updated.

When I run straight Plex it crashes with the following errors:

2024-09-21 20:32:58.006 T:847 debug : CUtil::GetMatchingSource: no matching source found for [plugin://script.plex/]
2024-09-21 20:32:58.007 T:847 debug : ------ Window Init (MyPrograms.xml) ------
2024-09-21 20:32:58.007 T:847 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture ‘noop’
2024-09-21 20:32:58.059 T:847 debug : CGUIMediaWindow::GetDirectory (plugin://script.plex/)
2024-09-21 20:32:58.060 T:847 debug : ParentPath = [plugin://script.plex/]
2024-09-21 20:32:58.060 T:13358 debug : Thread waiting start, auto delete: false
2024-09-21 20:32:58.067 T:13357 debug : CAddonDatabase::SetLastUsed[script.plex] took 6 ms
2024-09-21 20:32:58.067 T:13358 debug : CScriptRunner: running add-on script Plex(‘plugin://script.plex/’, ‘32’, ‘’)
2024-09-21 20:32:58.067 T:13359 debug : Thread LanguageInvoker start, auto delete: false
2024-09-21 20:32:58.068 T:13359 debug : initializing python engine.
2024-09-21 20:32:58.068 T:13359 debug : CPythonInvoker(51, /home/osmc/.kodi/addons/script.plex/plugin.py): start processing
2024-09-21 20:32:58.161 T:847 debug : ------ Window Init (DialogBusy.xml) ------
2024-09-21 20:32:58.191 T:877 debug : PushCecKeypress - received key b duration 450
2024-09-21 20:32:58.202 T:13359 debug : -->Python Interpreter Initialized<–
2024-09-21 20:32:58.202 T:13359 debug :

2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51, /home/osmc/.kodi/addons/script.plex/plugin.py): the source file to load is “/home/osmc/.kodi/addons/script.plex/plugin.py”
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): full python path:
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): custom python path:
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.certifi/lib
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.chardet/lib
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.idna/lib
2024-09-21 20:32:58.202 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.kodi-six/libs
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.requests/lib
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.six/lib
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.module.urllib3/lib
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /home/osmc/.kodi/addons/script.plex
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): default python path:
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /usr/lib/python39.zip
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /usr/lib/python3.9
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /usr/lib/python3.9/lib-dynload
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /usr/local/lib/python3.9/dist-packages
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): /usr/lib/python3/dist-packages
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): adding args:
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): plugin://script.plex/
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): 32
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51):
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51): resume:false
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51, /home/osmc/.kodi/addons/script.plex/plugin.py): entering source directory /home/osmc/.kodi/addons/script.plex
2024-09-21 20:32:58.203 T:13359 debug : CPythonInvoker(51, /home/osmc/.kodi/addons/script.plex/plugin.py): instantiating addon using automatically obtained id of “script.plex” dependent on version 3.0.0 of the xbmc.python api
2024-09-21 20:32:58.228 T:847 debug : ------ Window Deinit (DialogAddonInfo.xml) ------
2024-09-21 20:32:59.830 T:13359 error : File “/home/osmc/.kodi/addons/script.plex/lib/init.py”, line 6, in
from requests.packages.urllib3.exceptions import InsecurePlatformWarning, SNIMissingWarning

2024-09-21 20:32:59.830 T:13359 error :
2024-09-21 20:32:59.830 T:13359 error : ImportError: cannot import name ‘SNIMissingWarning’ from ‘urllib3.exceptions’ (/home/osmc/.kodi/addons/script.module.urllib3/lib/urllib3/exceptions.py)

2024-09-21 20:32:59.830 T:13359 error :
2024-09-21 20:33:00.103 T:13359 error : 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’ (/home/osmc/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py)
Traceback (most recent call last):
File “/home/osmc/.kodi/addons/script.plex/plugin.py”, line 7, in
from lib import _included_packages, plex, util
File “/home/osmc/.kodi/addons/script.plex/lib/plex.py”, line 13, in
from plexnet import plexapp, myplex, util as plexnet_util
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexapp.py”, line 399, in
util.setApp(App())
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexapp.py”, line 36, in init
from . import nowplayingmanager
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/nowplayingmanager.py”, line 10, in
from . import plexrequest
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexrequest.py”, line 4, in
from . import plexserver
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/plexserver.py”, line 3, in
from . import http
File “/home/osmc/.kodi/addons/script.plex/lib/_included_packages/plexnet/http.py”, line 15, in
from . import asyncadapter
File “/home/osmc/.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’ (/home/osmc/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py)
–>End of Python script error report<–

2024-09-21 20:33:00.106 T:13359 debug : onExecutionDone(51, /home/osmc/.kodi/addons/script.plex/plugin.py)
2024-09-21 20:33:00.106 T:13359 debug : .
2024-09-21 20:33:00.136 T:847 debug : ------ Window Init (DialogNotification.xml) ------
2024-09-21 20:33:00.189 T:13359 debug : Python interpreter stopped
2024-09-21 20:33:00.189 T:13359 debug : Thread LanguageInvoker 3207131392 terminating
2024-09-21 20:33:00.199 T:13358 error : GetDirectory - Error getting plugin://script.plex/
2024-09-21 20:33:00.199 T:13358 debug : Thread waiting 3341308160 terminating
2024-09-21 20:33:00.201 T:847 debug : ------ Window Deinit (DialogBusy.xml) ------
2024-09-21 20:33:00.211 T:847 error : CGUIMediaWindow::GetDirectory(plugin://script.plex/) failed
2024-09-21 20:33:00.211 T:847 debug : CGUIMediaWindow::GetDirectory ()
2024-09-21 20:33:00.211 T:847 debug : ParentPath = [plugin://script.plex/]
2024-09-21 20:33:00.213 T:13361 debug : Thread waiting start, auto delete: false
2024-09-21 20:33:00.213 T:13361 debug : Thread waiting 3341308160 terminating
2024-09-21 20:33:00.218 T:13362 debug : Thread BackgroundLoader start, auto delete: false
2024-09-21 20:33:00.218 T:847 debug : [threads] name: ‘BackgroundLoader’ priority: ‘1’
2024-09-21 20:33:00.220 T:13362 debug : Thread BackgroundLoader 3604189440 terminating
2024-09-21 20:33:00.227 T:847 debug : [Warning] CGUITextureManager::GetTexturePath: could not find texture ‘noop’
2024-09-21 20:33:05.575 T:847 debug : ------ Window Deinit (DialogNotification.xml) ------

What does one do to get Plex working on OSMC ??

A full log might help and the PlexMod guys might be able to help you more specifically.

I know that others like @KaraokeAmerica are using this on their Vero V.

1 Like

I think the core issue here is the Raspberry Pi version was running 0.7.6, where as the current version is 0.7.9 Rev3 - I manually updated to this version and it worked, after logging in as Plex admin, and it applying 2 changes.

Is there any way to determine if the RP store is out of date, and why is this app so far out of date and not auto updated ?

(i’ve also ordered a Vero V just cause, but I want to get this running as well)

Not sure what you mean by this. Where are you installing it from? My understanding is that this a third party add-on and always needs to be installed from a third party source; i.e. the thread you linked to.

Sam

P4MK is in the App store, thats where I got it from, well the original version of 0.7.6

Ah, I think you mean Kodi’s add-on repository: PM4K for Plex | Omega | Addons.

Indeed 0.7.6 is the version published there.

It’s up to the developer/maintainer to update this. Perhaps they haven’t done so yet as they are awaiting more feedback.

Yes, I am as well as on my Vero4K+.

To get it installed I had to install the native repository app in Kodi. Once I did the dependencies were installed and I was able to update it to the latest version of PM4K. I did some settings stuff to make the Kodi app not appear and only left the PM4K version which basically looks the same.

If you haven’t figured this out yet you may want to follow that PM4K thread as there are always updates and tips like how to get it to use the beta repository going forward. It is up to v0.8.0-beta5.1 now and you can set it to auto update.