-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error When Importing to File #1592
Comments
You need to provide the full traceback and any relevant code for someone to help you. |
What does traceback mean? (sorry, I'm new to all this) |
It's usually difficult, if not impossible, to determine what the problem is based on only the error type and message itself. You need to provide the entire traceback of the code that the error type and message are a part of, as well as any code that was used that caused the error, so that the issue can be debugged. |
Here's my code (and yes, I did change TOKEN to the actual token): import discord client = discord.Client() @client.event
@client.event client.run('TOKEN') |
Here's the full error from my terminal: Traceback (most recent call last): |
This is an issue with multidict, a dependency for discord.py, not discord.py itself. |
That might be the issue... I recently upgraded from 3.5.1 to 3.7, but PowerShell is running 3.5.1. How can I fix this? |
Discord.py 0.16 (async branch) is not compatible with Python 3.7 |
When I do py --version, it says 3.7, but when I run files, it says 3.5.1 |
In that case, this is likely related to aio-libs/multidict#286. However, if you want to use Python 3.7, you'll likely encounter issues with the current async branch. As for specifying the Python version on Windows, see https://docs.python.org/3/using/windows.html#python-launcher-for-windows. For further help using the library, you should join either the official discord.py server or the Discord API server, as the README recommends. |
Just a side-note, it's recommended to specify the interpreter you're running your script through explicitly; by the sounds of your previous statement, you 'run files', which means you're likely running the py file itself without specifying an interpreter. When running your py file, to specify what interpreter you can run it like: If you upgrade your python from 3.5.1 to resolve the main issue at hand, I would recommend you look into one of the newer 3.6 versions if you're wanting to keep using discord.py 0.16 (async branch), as it's compatible, and it comes with a few extra bonus', one especially being fstrings. |
This should now be fixed with multidict 4.4.2. |
I'm trying to make a really basic Discord bot using the reply.py example, but whenever I run it, the terminal says 'TypeError: Cannot change parameter count from 2 to 1'. Any suggestions?
The text was updated successfully, but these errors were encountered: