-
Notifications
You must be signed in to change notification settings - Fork 52
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
sfctl conflicts with recent azure-cli #72
Comments
@wminos as a workaround you can run either azure CLI or sfctl from a virtual environment, please take a look at the virtualenv package. |
I am using virtualenv. Thank you. |
I ran into this and created a container that loads from azure-cli and then installs tmux and uses a virtualenv to load sfctl in a separate environment loaded in a tmux pane. Now my left pane runs az and the right pane runs sfctl. In case someone else finds it useful until the knack version is fixed: https://hub.docker.com/r/ryanmcintyre/sfctl/ |
@ryankmcintyre Very cool idea. However, I mainly develop under windows environment and do not use tmux. But it would be useful in a WSL environment. |
It could be run in Docker for Windows after switching it to Linux
containers (doesn't require WSL), but I get your point.
…On Sat, Mar 10, 2018, 2:36 AM Park Minu ***@***.***> wrote:
@ryankmcintyre <https://github.com/ryankmcintyre> Very cool idea.
However, I mainly develop under windows environment and do not use tmux.
But it would be useful in a WSL environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABnj6lTjosG9DtqmWIuDbbWi2ABdGnFWks5tc56xgaJpZM4SbNBC>
.
|
[Info]
[Reason]
two recent cli uses incompatible knack library of different version.
current sfctl cli uses knack@0.1.1
current az cli uses knack@0.3.1
[Error]
PS C:\Users\me> pip install sfctl
PS C:\Users\me> pip install azure-cli
PS C:\Users\me> sfctl
Traceback (most recent call last):
File "c:\python36\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\me\AppData\Roaming\Python\Python36\Scripts\sfctl.exe_main.py", line 5, in
File "C:\Users\me\AppData\Roaming\Python\Python36\site-packages\sfctl_init.py", line 16, in
from sfctl.entry import launch
File "C:\Users\me\AppData\Roaming\Python\Python36\site-packages\sfctl\entry.py", line 16, in
from sfctl.commands import SFCommandLoader, SFCommandHelp
File "C:\Users\me\AppData\Roaming\Python\Python36\site-packages\sfctl\commands.py", line 14, in
from knack.commands import CLICommandsLoader, CommandSuperGroup
ImportError: cannot import name 'CommandSuperGroup'
[My solution]
PS> pip check
sfctl 4.0.0 has requirement knack==0.1.1, but you have knack 0.3.1.
PS> pip uninstall knack
PS> pip install knack==0.1.1
sfctl okay.
but azure-cli error occurs.
PS> az
init() got multiple values for argument 'ctx'
Traceback (most recent call last):
File "C:\Python36\lib\site-packages\knack\cli.py", line 124, in invoke
initial_data=initial_invocation_data)
File "C:\Python36\lib\site-packages\knack\invocation.py", line 31, in init
self.parser = parser_cls(ctx=self.ctx, prog=self.ctx.name, parents=[self._global_parser])
File "C:\Users\me\AppData\Roaming\Python\Python36\site-packages\azure\cli\core\parser.py", line 39, in init
super(AzCliCommandParser, self).init(cli_ctx, cli_help=cli_help, **kwargs)
TypeError: init() got multiple values for argument 'ctx'
The text was updated successfully, but these errors were encountered: