question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pynacl and discord.py error

See original GitHub issue

Please tick all applicable boxes.

  • [v] I am using Python 3.5.3 or higher (run python --version on the command line)
  • [v] I have followed the official guides to install the bot for my system
  • I have updated my dependencies to the latest version using the appropriate update script

Which version are you using?

  • [v] The latest master version (release-260419)
  • The latest review version

What type of issue are you creating?

  • [v] Bug
  • Feature request
  • Question

Description of issue

python3.7 -m pip install -U -r requirements.txt

ERROR: Cannot install discord-py[voice]==1.2.5 and pynacl==1.2.1 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested pynacl==1.2.1 discord-py[voice] 1.2.5 depends on PyNaCl==1.3.0; extra == “voice”

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/user_guide/#fixing-conflicting-dependencies

Steps to reproduce


Log file

Please attach your MusicBot log file (located at logs/musicbot.log) to this issue. You can do so by dragging and dropping the file here. If you do not include your log file, you WILL be asked to provide one.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Jcodeerdcommented, Mar 14, 2021

Change the requirements.txt file so that it looks like this: pynacl discord.py[voice] pip youtube_dl colorlog

Then run update.bat(if your on windows, if not chose the appropriate update file for your system OS) once it’s all up to date, then do run.bat(same note as before). Make to to press n and then y that way it doesn’t reset the requirements.txt file back to the original.

Why do I need to change the requirements.txt file? Discord pushed an update that broke discord.py, it was fixed in a new version of discord.py however we haven’t updated the requirements.txt file to target the latest version of discord.py with the fix.

0reactions
jaykimjay06commented, Jun 10, 2021

누구세요

2021년 6월 6일 (일) 오전 10:10, Winter @.***>님이 작성:

HOW DARE YOU…LOL jk you cool. Websockets is weird because sometimes you need to install it and other times you don’t.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Just-Some-Bots/MusicBot/issues/2200#issuecomment-855319116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO5S6RGMU4ET3Z2PY3XTGWLTRLDHPANCNFSM4ZEXSBHA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord.py .connect() not working (PyNaCl) - Stack Overflow
connect()". For some reason every time I try to use this command I get an error that says: "PyNaCl library needed in order...
Read more >
PyNaCl Issue · Issue #1916 · Rapptz/discord.py - GitHub
Okay so. I have recently put my public bot onto a hosting rather than use my computer. And they installed the correct version...
Read more >
discord.py - PyPI
A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Features. Modern Pythonic API using async...
Read more >
my bot gives me a error saying... - Replit
my bot gives me a error saying 'An error occurred: Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice'...
Read more >
python discord bot module not found - You.com | The AI ...
txt (line 2)) (6.0) ERROR: Cannot install discord-py[voice]==1.2.5 and pynacl==1.2.1 because these package versions have conflicting dependencies. The conflict ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found