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)

1 Answers1

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.

Neeraj
  • 975
  • 4
  • 10