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

Minor issue with zsh when using help from lazy import errors #57

Closed
prashantgupta24 opened this issue Jun 14, 2022 · 1 comment
Closed

Comments

@prashantgupta24
Copy link
Member

Describe the bug

When using lazy import errors in import_tracker, if the import error is triggered within a module that is managed as an extras set, the error message is updated to include instructions on which extras set needs to be installed. The error message might look something like this:

ModuleNotFoundError: No module named 'example_module'. 
To install the missing dependencies, run `pip install my_module[my_module.example_module]`

If the command pip install my_module[my_module.example_module] is executed within a zsh environment, an error occurs:

zsh: no matches found: my_module[my_module.example_module]

since square brackets in zsh have special meanings.

Platform

Please provide details about the environment you are using, including the following:

  • Interpreter version: 3.8
  • Library version: 2.2.2

Sample Code

When pip install my_module[my_module.example_module] is executed within a zsh environment, an error occurs:

zsh: no matches found: my_module[my_module.example_module]

Expected behavior

The command should work on zsh.

@prashantgupta24 prashantgupta24 changed the title Minor issue with zsh when using lazy import errors Minor issue with zsh when using help from lazy import errors Jun 14, 2022
@gabe-l-hart
Copy link
Collaborator

Closed by #56

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

2 participants