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/