Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

ModuleNotFoundError: No module named 'click._bashcomplete' #53

Closed
michaelaye opened this issue Nov 1, 2021 · 7 comments
Closed

ModuleNotFoundError: No module named 'click._bashcomplete' #53

michaelaye opened this issue Nov 1, 2021 · 7 comments
Labels

Comments

@michaelaye
Copy link

Just installed typer and typer-cli for trying out.

Env: Python 3.8 conda env, installed typer and typer-cli via conda

╰─ mamba list click                                                                                                                 ─╯
# packages in environment at /home/maye/miniconda3/envs/py38:
#
# Name                    Version                   Build  Channel
click                     8.0.3            py38h578d9bd_0    conda-forge
click-plugins             1.1.1                      py_0    conda-forge
(py38) 
╭─ ~/Dropbox/src/uvis_pdart_project  main ?1 ········································································ ✔  14:43:54 ─╮
╰─ mamba list typer                                                                                                                 ─╯
# packages in environment at /home/maye/miniconda3/envs/py38:
#
# Name                    Version                   Build  Channel
typer                     0.4.0              pyhd8ed1ab_0    conda-forge
typer-cli                 0.0.12             pyh6c4a22f_1    conda-forge

Trying to use typer script.py run I get this error, despite click being installed:

typer create_meeting_notes.py run                                                                                                ─╯
Traceback (most recent call last):
  File "/home/maye/miniconda3/envs/py38/bin/typer", line 6, in <module>
    from typer_cli.main import main
  File "/home/maye/miniconda3/envs/py38/lib/python3.8/site-packages/typer_cli/main.py", line 11, in <module>
    from click._bashcomplete import get_choices as original_get_choices  # type: ignore
ModuleNotFoundError: No module named 'click._bashcomplete'
@musicinmybrain
Copy link

This is the same as #53.

@michaelaye
Copy link
Author

this IS #53 ?

@musicinmybrain
Copy link

this IS #53 ?

Ha! That’s funny. I meant to say that this appears to be the same as #50, in which the current version of typer-cli still only works with typer 0.3.x and click 7.x.

@idvorkin
Copy link

idvorkin commented Mar 7, 2022

Likely requires a similar change as : tiangolo/typer#317

@idvorkin
Copy link

idvorkin commented Mar 7, 2022

@michaelaye - The root cause here is typer-cli doesn't support click 0.8, can you rename the title like: Make typer-cli support click 8. This becomes as issues when other packages (like black) require click 0.8.

@tiangolo
Copy link
Owner

Thanks for the report and discussion everyone! ☕

This should be solved by Typer-CLI 0.0.13, just released 🚀

Sorry for the long delay! 🙈 I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.

@github-actions
Copy link

Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants