azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Here is my issue again!!

Open dmarinere opened this issue 5 years ago • 3 comments

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az interactive

Errors:

No module named 'prompt_toolkit.interface'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
...
cli/command_modules/interactive/custom.py, ln 41, in start_shell
    azext_interactive.start_shell(cmd, style=style)
cliextensions/interactive/azext_interactive/__init__.py, ln 10, in start_shell
    from .azclishell.app import AzInteractiveShell
interactive/azext_interactive/azclishell/app.py, ln 33, in <module>
    from prompt_toolkit.interface import Application, CommandLineInterface
ModuleNotFoundError: No module named 'prompt_toolkit.interface'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az interactive

Expected Behavior

Environment Summary

Linux-5.4.0-42-generic-x86_64-with-glibc2.29
Python 3.8.2
Installer: PIP

azure-cli 2.10.1

Extensions:
interactive 0.4.4

Additional Context

dmarinere avatar Aug 12 '20 23:08 dmarinere

interactive

yonzhan avatar Aug 13 '20 00:08 yonzhan

If you are getting ModuleNotFoundError: No module named 'prompt_toolkit.interface', it looks like you have multiple versions of prompt_toolkit installed which conflicts with the one Azure CLI uses. Could you check https://github.com/Azure/azure-cli/issues/13539 and see if it can be solved?

jiasli avatar Aug 13 '20 02:08 jiasli

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 10 '22 20:08 ghost