Ask coding questions

← Back to all posts
Code returns an error, but only when I'm logged in to my account. How do I fix this?
DelaneySkelton (0)

I've been using to run a simple Discord bot for nearly a year. Recently, I began getting this response when I tried to run it: Updating package configuration

--> /usr/local/bin/python3 -m poetry lock

'Key "authors" does not exist.'


exit status 1 Package operation failed.

Traceback (most recent call last):
  File "", line 4, in <module>
    from discord import *
ModuleNotFoundError: No module named 'discord'

I cleared my cache as an attempt to fix this problem, and then discovered that the code only runs when I am logged out of my account. When I'm logged out, it works fine, but once I log back in, this error occurs. Why does this happen, and is there any way I can fix it so that I don't have to constantly log out in order to use this bot?
Thanks for any help!

ash15khng (415)

It runs for me. This could be a bug, try reporting it on the bugs page.

DelaneySkelton (0)

@ash15khng Will do. Thanks for the reply!