Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with circular import #69

Open
TimDaub opened this issue Mar 23, 2024 · 0 comments
Open

error with circular import #69

TimDaub opened this issue Mar 23, 2024 · 0 comments

Comments

@TimDaub
Copy link

TimDaub commented Mar 23, 2024

Traceback (most recent call last):
  File "/Users/timdaub/Projects/updated-gpt-cli/gptcli/gpt.py", line 11, in <module>
    import openai
  File "/Users/timdaub/Projects/updated-gpt-cli/gptcli/openai.py", line 3, in <module>
    from openai import OpenAI
ImportError: cannot import name 'OpenAI' from partially initialized module 'openai' (most likely due to a circular import) (/Users/timdaub/Projects/updated-gpt-cli/gptcli/openai.py)```

why does it even invoke the openai module in the first place?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant