Skip to content

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
Discussion options

You must be logged in to vote

This is a general pitfall in Python. You've named your file click.py, which shadows the click package further down in sys.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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdguerrerom
Comment options

Answer selected by rdguerrerom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2743 on June 19, 2024 01:15.