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

cannot import name "MutableMapping" from collections #12

Open Boldbydesign opened 2 years ago

Boldbydesign commented 2 years ago

I have tried this multiple different ways, attempted installing additional modules to see if that might help, but with no luck. Do you have any idea what is causing the error and how do i fix it.?

Boldbydesign commented 2 years ago

23080544-29 23080549-48

Same Error is happening as before, I have attached, here, the Output Error that get in full detail idea of whats happening

geeflaxx commented 2 years ago

I fixed it, look at the issue.

you have to change the import of collections in ../lib/site-packages/diskcache/persistent.py

to

from collections.abc import MutableMapping,Sequence, KeysView, ValuesView, ItemsView
from collections import OrderedDict
geeflaxx commented 2 years ago

But get annother Error:

Searching IMDb for "Chicago Rot"

Fetching data for Chicago Rot (2016)

Some error occured while processing Chicago Rot.mkv

====================================================

EXCEPTION IN (/home/patrick/PycharmProjects/changeTags/main.py, LINE 159 "imdb_movie = imdb.get_title(mpr['imdb_id'])"): 400 {"message":"Request timestamp: Sat, 17 Sep 2022 00:45:20 GMT expired. It must be within 300 secs/ of server time."}

The files that were not proccessed:

Chicago Rot.mkv - 400 {"message":"Request timestamp: Sat, 17 Sep 2022 00:45:20 GMT expired. It must be within 300 secs/ of server time."}