Im using VS Code on my laptop and ever since i created a circular import error message in my terminal, i have not been able to get rid of it since. I tried everything from making obvious changes to code, to clearing the cache, to a complete uninstall of any reference to vs code and the issue still presist. I have since then fix the issue with the circular import using my desktop and If i run the new code on my laptop, i get the same error message as before even though i know the circular import isnt with my current code. Any idea what can it be or how i can fix this issue so i can continue to use my laptop to code?
This is the feedback i get within my terminal no matter what code i put.
“”” Traceback (most recent call last):
File “c:UserskdoggOneDriveDesktopAnime-UltimateAnimeUltimateBotmain.py”, line 2, in
from discord.ext import commands
File “C:UserskdoggAppDataLocalProgramsPythonPython311Libsite-packagesdiscordextcommands_init_.py”, line 11, in
from .bot import *
File “C:UserskdoggAppDataLocalProgramsPythonPython311Libsite-packagesdiscordextcommandsbot.py”, line 38, in
from .core import GroupMixin
File “C:UserskdoggAppDataLocalProgramsPythonPython311Libsite-packagesdiscordextcommandscore.py”, line 9, in
class PlayerProfiles(commands.Bot):
^^^^^^^^^^^^
AttributeError: partially initialized module ‘discord.ext.commands’ has no attribute ‘Bot’ (most likely due to a circular import)
PS C:UserskdoggOneDriveDesktopAnime-Ultimate> “””
I tried completely deleting the file that the circular import was happening and my output was the same error message. tried uninstalling vs code and deleting app data and all. reinstalled it ran the new code that works and still get the same error.
Kavious Hinton is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.