TypeError: 'encoding' is an invalid keyword argument for this function`
scrathe opened this issue · 1 comments
scrathe commented
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 commented
Problem fixed when using Python3