nwithan8/PlexRecs

dependency conflicts

amokster88 opened this issue · 12 comments

When installing the requirements in a virtual environment in python, the file gives an error at last.

`Collecting discord==1.*
  Using cached discord-1.0.1-py3-none-any.whl (1.1 kB)
INFO: pip is looking at multiple versions of progress to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 8) and diskcache==5.4.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested diskcache==5.4.0
    imdbpie 5.6.4 depends on diskcache<3.0.0 and >=2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.6.3 depends on diskcache<3.0.0 and >=2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.6.2 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.6.1 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.6.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.5.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.5 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.4 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.3 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.2 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.1 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.4.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.3.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.2.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.1.0 depends on diskcache==2.9.0
    The user requested diskcache==5.4.0
    imdbpie 5.0.0 depends on diskcache==2.9.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts`

I am able to install all the dependencies if I am using imdbpie==1.6.0 which is 'duh' super old.

Also when executing 'run.py' the bot gives an error.

`amolak@homeserver:~/python_scripts/PlexRecs$ python3 run.py
Traceback (most recent call last):
  File "/home/amolak/python_scripts/PlexRecs/run.py", line 10, in <module>
    bot = commands.Bot(credentials.BOT_PREFIX)
TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents'`

It seems like the bot has not been migrated to the new intents.message_content, the above error in bot logs was due to this and I was able to fix the issue by making these changes in the 'run.py' code

`intents = discord.Intents.all()
bot = commands.Bot(credentials.BOT_PREFIX, intents=intents)`

I still can't get the bot to give reply, don't know if I am doing it right?
These are my trakt lists, is this right?

TRAKT_LISTS = {
    'username': ['Trending Lists', 'Popular Lists'],
    'Gilad & Alex': ['Latest Releases'],
    'Tim': ['MDBList Popular Lists']

I am using the command
? recommend movie
Would really love if you helped

Thanks for the issue and details. I'll work on addressing them.

@amokster88 Some of this has been fixed (the IMDb dependency issue, the Discord intents) and some of this has been changed (Trakt list configuration) in #16 . Would you mind trying the new bot?

I will surely try it tomorrow, when I reach home. Will update you here for sure, thanks for the fixes

@nwithan8 hello, just to confirm. I tried the bot now and i still see this error

I tried to use both ? and / as prefixes

bot = commands.Bot(command_prefix=config.discord.command_prefix, intents=discord.Intents.default())
AttributeError: 'DiscordConfig' object has no attribute 'command_prefix'

Sorry, it still gives me an error, anything else I can do to rectify it?

This will be fixed in a rework that is in progress.

This will be fixed in a rework that is in progress.

Please i would love if this bot is re-done and if docker support is also launched for this bot.
Once this bot is nicely updated, I will surely do some donation to this project so that it can be maintained.