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

TypeError: 'encoding' is an invalid keyword argument for this function` #6

Closed
scrathe opened this issue Oct 13, 2019 · 1 comment
Closed

Comments

@scrathe
Copy link

scrathe commented Oct 13, 2019

Ran into this error when running this on a Linux VM (Linux Mint 19.1, Python 2.7.15)

  File "plex_auto_collections.py", line 135, in <module>
    plex = Plex()
  File "/home/loki/Plex-Auto-Collections/config_tools.py", line 28, in __init__
    config = Config().plex
  File "/home/loki/Plex-Auto-Collections/config_tools.py", line 17, in __init__
    with open(self.config_path, 'rt', encoding='utf-8') as yml:
TypeError: 'encoding' is an invalid keyword argument for this function

Fixed this issue by adding this to config_tools.py
from io import open

@scrathe
Copy link
Author

scrathe commented Oct 14, 2019

Problem fixed when using Python3

@scrathe scrathe closed this as completed Oct 14, 2019
slick-nick-90 referenced this issue in slick-nick-90/Plex-Auto-Collections Dec 20, 2020
Update plex_auto_collections.py
slick-nick-90 referenced this issue in slick-nick-90/Plex-Auto-Collections Dec 20, 2020
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

1 participant