Forums

Problem with discord.py and tasks

hi, I am trying to create a task. But I am getting error

ModuleNotFoundError: No module named 'discord'
Jun  8 16:32:35 Traceback (most recent call last):
Jun  8 16:32:35   File "", line 1, in <module>
Jun  8 16:32:35     import discord
Jun  8 16:32:35 ModuleNotFoundError: No module named 'discord'

But when I run through the console everything works

code task

python3.6 path to file/bot.py

I use a paid plan

Take a look at https://help.pythonanywhere.com/pages/DebuggingImportError/

may I know the answer of this query ? i have same problem. thanks

This problem specifically relates to an issue that someone had with a paid account, and yours is a free one, so you won't have the same issue. Could you give some more details about the problem you're having?

It's also worth mentioning that the standard Python discord client library doesn't work in free accounts, unfortunately.