Unable to run "az connectedk8s"; versions mismatch?
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az connectedk8s connect
Errors:
The command failed with an unexpected error. Here is the traceback:
No module named 'Crypto.IO'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/home/developer/.local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 561, in execute
self.commands_loader.load_arguments(command)
File "/home/developer/.local/lib/python3.8/site-packages/azure/cli/core/__init__.py", line 515, in load_arguments
self.command_table[command].load_arguments() # this loads the arguments via reflection
File "/home/developer/.local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 318, in load_arguments
super(AzCliCommand, self).load_arguments()
File "/usr/local/lib/python3.8/dist-packages/knack/commands.py", line 104, in load_arguments
cmd_args = self.arguments_loader()
File "/home/developer/.local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
op = self.get_op_handler(self.op_path)
File "/home/developer/.local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
handler = import_module(mod_to_import)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/developer/.azure/cliextensions/connectedk8s/azext_connectedk8s/custom.py", line 37, in <module>
from Crypto.IO import PEM
ModuleNotFoundError: No module named 'Crypto.IO'
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 connectedk8s connect --group {} --name --subscription {}
Expected Behavior
Environment Summary
Linux-5.15.57.1-microsoft-standard-WSL2-x86_64-with-glibc2.29, Ubuntu 20.04.5 LTS
Python 3.8.10
Installer: PIP
azure-cli 2.40.0
Extensions:
storage-preview 0.8.3
connectedk8s 1.3.4
resource-graph 2.1.0
account 0.2.5
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
az connectedk8s connect results in an error but kubectl works ...
I can connect to local running Microk8s cluster either via kubectl or k9s. I also parsed the kube config externally to see if...
Read more >Troubleshoot common Azure Arc-enabled Kubernetes issues
After you've installed that version, run the az connectedk8s connect command again to ... Unable to connect OpenShift cluster to Azure Arc.
Read more >Azure Function app failing on GitHub integration due to ...
I have confirmed the FUNCTIONS_EXTENSION_VERSION value is set to ~2 in the portal. My function app runtime version is 2.0.12134.0 (~2) as ...
Read more >Error deploying solution on AZURE (kubernetes CAL and ...
I'm trying to deploy a solution (Data Intelligence) on AZURE, but it seems the Kubernetes version used by CAL to deploy on AKS...
Read more >Maven Build Failing Intermittently with Baseline version check ...
Maven Build is failing sometimes with baseline mismatch error. In yaml script, i have added command to skip baseline version, but still build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirming that uninstalling all Azure components and reinstalling again works. Is there a way to remove the package from Pypi to avoid this in future? Happy for this issue to be closed though. Thanks for you help.
@MswPaulDSmith @papadeltasierra Thanks for the confirmation! With the right dependencies, the pypi package should work as well but its part of the official documentation since the other methods are recommended. Nonetheless, I will share the feedback with the concerning team. Closing.