question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az aks list - No module named '_cffi_backend'

See original GitHub issue

Command Ran: az aks list

Fixed issue with brew link --overwrite python3

Environment summary

Install Method: pip & homebrew CLI Version: azure-cli (2.0.21)

Python location '/usr/local/opt/python3/bin/python3.6'
Extensions directory '/Users/shayneboyer/.azure/cliextensions'

Python (Darwin) 3.6.3 (default, Nov  1 2017, 11:10:52)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)]

Error:

No module named '_cffi_backend'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/application.py", line 177, in execute
    self.configuration.load_params(command)
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/application.py", line 50, in load_params
    commands.load_params(command)
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 391, in load_params
    command_table[command].load_arguments()
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 335, in load_arguments
    self.arguments.update(self.arguments_loader())
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 647, in arguments_loader
    return extract_args_from_signature(get_op_handler(operation), no_wait_param=no_wait_param)
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 537, in get_op_handler
    op = import_module(mod_to_import)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/command_modules/acs/custom.py", line 37, in <module>
    from azure.cli.command_modules.acs import acs_client, proxy
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/azure/cli/command_modules/acs/acs_client.py", line 12, in <module>
    import paramiko
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/paramiko/__init__.py", line 31, in <module>
    from paramiko.transport import SecurityOptions, Transport
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/paramiko/transport.py", line 57, in <module>
    from paramiko.ed25519key import Ed25519Key
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/paramiko/ed25519key.py", line 17, in <module>
    import bcrypt
  File "/usr/local/Cellar/azure-cli/2.0.21/libexec/lib/python3.6/site-packages/bcrypt/__init__.py", line 25, in <module>
    from bcrypt import _bcrypt
ImportError: No module named '_cffi_backend'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

42reactions
kventilcommented, Jul 1, 2018

Same here.

△ ~ az --version
azure-cli (2.0.38)

 ▲ ~ python3 --version
Python 3.7.0

Update: python3 -m pip install cffi fixed it for me.

19reactions
julienstrohekercommented, Mar 14, 2018

Did you try brew link --overwrite python3 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named _cffi_backend
My requirement file has cffi package and using devops pipeline these package get installed at runtime, generate .zip for azure functions. But ...
Read more >
没有名为'_cffi_backend' lambda 的模块 - 免费编程教程
Python ImportError No module name _cffi_backend - 帮助 ... az aks list, _cffi import ffi as _ffi E ImportError: No module named '_cffi_backend'。...
Read more >
[Fixed] ModuleNotFoundError: No module named 'azure-core'
Quick Fix: Python raises the ImportError: No module named 'azure-core' when it cannot find the library azure-core . The most frequent source of...
Read more >
Python ImportError No module name _cffi_backend - Help
I was successfully used the LetsEncrypt client a couple of weeks ago but today (after a refresh from github) I started getting this...
Read more >
Server Migration Service
2.24 Can I Migrate a Source Server If There Is No Corresponding Image Available on Huawei Cloud?.......18. 2.25 How Does SMS Differ from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found