1

So basically I was trying to write a bot for dogehouse.tv and I can't even start due to the error, I've spoken to some other people and they seem to have no problems regarding this. Here is the code:

from dogehouse import DogeClient, event class Client(DogeClient): @event async def on_ready(self): print(f"Ready") if __name__ == "__main__": Client("token", "refresh_token").run() 

Error: ImportError: cannot import name 'DogeClient' from partially initialized module 'dogehouse' (most likely due to a circular import)

3
  • Is dogehouse a module you wrote, or a third-party module? Commented Mar 30, 2021 at 14:24
  • Don't name your file dogehouse.py Commented Mar 30, 2021 at 14:27
  • 1
    All the way to the moon Commented Mar 30, 2021 at 14:29

1 Answer 1

0

You can refer this : Stackoverflow: Resolve circular import

I've seen similar error in Django, you might have initialized the class in init or some other file which is causing this error.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.