Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'MovieSection' object has no attribute 'ALLOWED_FILTERS' #98

Open
PearsonFlyer opened this issue Nov 20, 2020 · 4 comments

Comments

@PearsonFlyer
Copy link

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
main()
File "c:\plexlibrary\plexlibrary\plexlibrary.py", line 67, in main
r.run(sort_only=args.sort_only, share_playlist_to_all=args.everyone)
File "c:\plexlibrary\plexlibrary\recipe.py", line 718, in run
missing_items, list_count = self._run(share_playlist_to_all=share_playlist_to_all)
File "c:\plexlibrary\plexlibrary\recipe.py", line 656, in _run
source_libraries = self._get_plex_libraries()
File "c:\plexlibrary\plexlibrary\recipe.py", line 125, in _get_plex_libraries
if 'guid' not in source_library.ALLOWED_FILTERS:
AttributeError: 'MovieSection' object has no attribute 'ALLOWED_FILTERS'

@timmehtimtims
Copy link

Have you tried downgrading to a lower version of plexapi?

@morganzero
Copy link

@timmehtimtims that worked for me thanks!
I used this cl pip install PlexAPI==4.1.2 as I'm still on legacy.

@chiggerz
Copy link

Have you tried downgrading to a lower version of plexapi?

worked for me too! Thanks

@enricosan
Copy link

enricosan commented Feb 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants