SpykerNZ / one-pace-for-plex

This project helps adapt One Pace to a format plex can read.
77 stars 8 forks source link

Python Rename Script Error #63

Open alexh2 opened 1 month ago

alexh2 commented 1 month ago

Hi, I have my Plex server on a Synology NAS, I installed Python 3.9, because it only comes with Python 2 by default. But when I try to run the rename.py script, I get this error, even with the --dry-run flag:

Traceback (most recent call last):
  File "rename.py", line 56, in <module>
    def get_episode_from_media(filename: str, seasons: dict[str, int]) -> Optional[Episode]:
TypeError: 'type' object is not subscriptable

Any way to fix this?

SpykerNZ commented 4 weeks ago

are you sure you are running python 3.9? It is likely that you have installed python 3.9 but still are running the script using python 2.

What command are you using to run the script? are you specifying python3? python3 rename.py --dry-run

You cans always check your python version by running python --version or python3 --version