python-plexlibrary
python-plexlibrary copied to clipboard
AttributeError: 'MovieSection' object has no attribute 'ALLOWED_FILTERS'
I'm getting this error since the last PlexAPI update. I can't figure out how to solve it. It was not throwing an error prior to that. I have no playlists. Windows 10 install, Plex on the same box. Is this due to the new Plex movie agent being selected?
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "c:\plexlibrary\plexlibrary_main.py", line 8, in
Have you tried downgrading to a lower version of plexapi?
@timmehtimtims that worked for me thanks!
I used this cl pip install PlexAPI==4.1.2
as I'm still on legacy.
Have you tried downgrading to a lower version of plexapi?
worked for me too! Thanks
EDIT: I solved it, I needed to install libffi in order to install PlexAPI. working now.
======================
I'm running plex inside a container on linux, any idea how I can apply this fix?
# pip install PlexAPI==4.1.2
Collecting PlexAPI==4.1.2
Downloading PlexAPI-4.1.2.tar.gz (91 kB)
|████████████████████████████████| 91 kB 6.7 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5c8z577p/plexapi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5c8z577p/plexapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ctvegp4d
cwd: /tmp/pip-install-5c8z577p/plexapi/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python3.9/site-packages/setuptools/__init__.py", line 18, in <module>
from setuptools.dist import Distribution
File "/usr/lib64/python3.9/site-packages/setuptools/dist.py", line 32, in <module>
from setuptools import windows_support
File "/usr/lib64/python3.9/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/usr/lib64/python3.9/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ImportError: libffi.so.7: cannot open shared object file: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.