prithugoswami / auto-movie-tagger

A Python script that auto tags and adds poster to mkv or mp4 movie files.
MIT License
58 stars 15 forks source link

Error running the script #13

Open geeflaxx opened 2 years ago

geeflaxx commented 2 years ago

I searched over 5 hours to look at the script like this.

Every project just have his own Database, but nothing change the file.

Thanks! For creating this project.

I got following Error:

Traceback (most recent call last): File "/home/patrick/PycharmProjects/LearnHacking/test.py", line 23, in from imdbpie import Imdb File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/imdbpie/init.py", line 2, in from .imdbpie import Imdb # noqa File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/imdbpie/imdbpie.py", line 17, in from .auth import Auth File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/imdbpie/auth.py", line 13, in import diskcache File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/diskcache/init.py", line 5, in from .fanout import FanoutCache File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/diskcache/fanout.py", line 10, in from .persistent import Deque, Index File "/home/patrick/PycharmProjects/LearnHacking/venv/lib/python3.10/site-packages/diskcache/persistent.py", line 8, in from collections import MutableMapping, OrderedDict, Sequence ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

What shall I change?

geeflaxx commented 2 years ago

Change imports in the the "persistent.py" in path: python3.10/site-packages/diskcache/persistent.py

to

from collections.abc import MutableMapping,Sequence, KeysView, ValuesView, ItemsView from collections import OrderedDict

thanks for your work