crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

ImportError: cannot import name 'Agent' from partially initialized module 'crewai' (most likely due to a circular import)

Open Verfinix opened this issue 1 year ago • 3 comments

I am new here, wanted to try the sample. But having error

ImportError: cannot import name 'Agent' from partially initialized module 'crewai' (most likely due to a circular import)

Any suggestion to fix this ?

I am using conda, python=3.10, have also try python=3.11, both not working

Verfinix avatar Jan 01 '24 15:01 Verfinix

I had the same use case, just change your python file name where you are executing the code to anything different from "crewai*"

juangonbeamsuntory avatar Jan 01 '24 20:01 juangonbeamsuntory

Thanks. This solved my issue.

Verfinix avatar Jan 02 '24 01:01 Verfinix

❤️ thanks folks

joaomdmoura avatar Jan 02 '24 02:01 joaomdmoura

This works. Thanks @juangonbeamsuntory

prabhatkgupta avatar May 04 '24 06:05 prabhatkgupta