partially initialized module 'click' has no attribute 'command' (most likely due to a circular import) #2744
Answered
by
davidism
rdguerrerom
asked this question in
Q&A
-
Environment:
|
Beta Was this translation helpful? Give feedback.
Answered by
davidism
Jun 19, 2024
Replies: 1 comment 1 reply
-
This is a general pitfall in Python. You've named your file |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rdguerrerom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a general pitfall in Python. You've named your file
click.py
, which shadows theclick
package further down insys.path
. A good way to avoid this is to name your top-level modules for what they do, rather than what they use, or use a package as a unique namespace for your project.