nwithan8 / PlexRecs

A Discord bot that provides movie, TV show and music recommendations from your Plex library
GNU General Public License v3.0
39 stars 5 forks source link

PlexRecs not working #13

Closed amokster88 closed 2 years ago

amokster88 commented 2 years ago

`(recs_venv) amolak@homeserver:~/python_scripts/PlexRecs$ python3 run.py Traceback (most recent call last): File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 606, in _load_from_module_spec spec.loader.exec_module(lib) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/home/amolak/python_scripts/PlexRecs/PlexRecs.py", line 11, in import modules.imdb_connector as imdb File "/home/amolak/python_scripts/PlexRecs/modules/imdb_connector.py", line 1, in from imdbpie import ImdbFacade File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/imdbpie/init.py", line 2, in from .imdbpie import Imdb # noqa File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/imdbpie/imdbpie.py", line 17, in from .auth import Auth File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/imdbpie/auth.py", line 13, in import diskcache File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/diskcache/init.py", line 5, in from .fanout import FanoutCache File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/diskcache/fanout.py", line 10, in from .persistent import Deque, Index File "/home/amolak/python_scripts/PlexRecs/recs_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)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/amolak/python_scripts/PlexRecs/run.py", line 20, in bot.load_extension(ext) File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 678, in load_extension self._load_from_module_spec(spec, name) File "/home/amolak/python_scripts/PlexRecs/recs_venv/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 609, in _load_from_module_spec raise errors.ExtensionFailed(key, e) from e discord.ext.commands.errors.ExtensionFailed: Extension 'PlexRecs' raised an error: ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/init.py)`

nwithan8 commented 2 years ago

https://stackoverflow.com/questions/70870041/cannot-import-name-mutablemapping-from-collections

Bot is not compatible with Python 3.10 currently

amokster88 commented 2 years ago

Any ETA on compatibility with 3.10

nwithan8 commented 2 years ago

@amokster88 Fixed.