d8ahazard / FlexTV.bundle

Cast media, fetch stats...do more with less. :D
50 stars 9 forks source link

FlexTv.bundle fails to load #5

Open rpirsc13 opened 5 years ago

rpirsc13 commented 5 years ago

It seems that the plugin is not compatible with the latest plex build.

Plex is running perfectly from docker image https://hub.docker.com/r/linuxserver/plex/

I get ImportError: No module named _ctypes

I tried installing FlexTv.bundle using both methods ( git and webtools ) with same results.

2019-05-02 00:04:40,882 (7583c600) :  DEBUG (core:361) - Using the elevated policy
2019-05-02 00:04:40,883 (7583c600) :  DEBUG (core:450) - Starting runtime component.
2019-05-02 00:04:40,887 (7583c600) :  DEBUG (core:450) - Starting caching component.
2019-05-02 00:04:40,888 (7583c600) :  DEBUG (core:450) - Starting data component.
2019-05-02 00:04:40,889 (7583c600) :  DEBUG (core:450) - Starting networking component.
2019-05-02 00:04:40,889 (7583c600) :  DEBUG (networking:288) - No cookie jar found
2019-05-02 00:04:40,891 (7583c600) :  DEBUG (networking:452) - Setting the default network timeout to 20.0
2019-05-02 00:04:40,893 (7583c600) :  DEBUG (core:450) - Starting localization component.
2019-05-02 00:04:40,894 (7583c600) :  INFO (localization:409) - Setting the default locale to en-us
2019-05-02 00:04:40,894 (7583c600) :  DEBUG (core:450) - Starting messaging component.
2019-05-02 00:04:40,897 (7583c600) :  DEBUG (core:450) - Starting debugging component.
2019-05-02 00:04:40,898 (7583c600) :  DEBUG (core:450) - Starting services component.
2019-05-02 00:04:40,899 (7583c600) :  DEBUG (core:450) - Starting myplex component.
2019-05-02 00:04:40,899 (6f0f7460) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.FlexTV'
2019-05-02 00:04:40,899 (7583c600) :  DEBUG (core:450) - Starting notifications component.
2019-05-02 00:04:41,475 (7583c600) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.FlexTV in namespace 'metadata'
2019-05-02 00:04:41,493 (7583c600) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2019-05-02 00:04:41,551 (7583c600) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
2019-05-02 00:04:41,551 (6f0f7460) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2019-05-02 00:04:41,553 (6f0f7460) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/xxxxxxxxx'
2019-05-02 00:04:41,557 (7583c600) :  DEBUG (runtime:1117) - Created a thread named 'get_server_info'
2019-05-02 00:04:41,559 (7583c600) :  DEBUG (core:150) - Finished starting framework core
2019-05-02 00:04:41,559 (6e0e7460) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400'
2019-05-02 00:04:41,560 (7583c600) :  DEBUG (core:560) - Loading plug-in code
2019-05-02 00:04:43,154 (6e0e7460) :  DEBUG (core:538) - Machine identifier is xxxx
2019-05-02 00:04:43,162 (6e0e7460) :  DEBUG (core:539) - Server version is 1.15.4.993-bb4a2cb6c
2019-05-02 00:04:44,301 (6f0f7460) :  DEBUG (services:362) - Loaded services
2019-05-02 00:04:44,410 (6e8ef460) :  DEBUG (services:438) - No shared code to load
2019-05-02 00:04:45,068 (7583c600) :  DEBUG (core:566) - Finished loading plug-in code
2019-05-02 00:04:46,223 (7583c600) :  CRITICAL (core:615) - Exception starting plug-in (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-bb4a2cb6c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 608, in start
    self.sandbox.execute(self.init_code)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-bb4a2cb6c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 256, in execute
    exec(code) in self.environment
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/FlexTV.bundle/Contents/Code/__init__.py", line 25, in <module>
    import pychromecast
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-bb4a2cb6c/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 345, in __import__
    raise e
ImportError: No module named _ctypes
PeterMurdoch commented 5 years ago

Pip install ctypes ?

rpirsc13 commented 5 years ago

Pip install ctypes ?

Not a solution. Python 2.7 has ctypes as default.

Aipaloovik commented 5 years ago

I am having the same issue. Plex running in docker on a Raspberry Pi.

avnerel commented 5 years ago

Same here

kverkind commented 5 years ago

Same problem

Electronlibre2012 commented 4 years ago

Same