Azure / Azure/azure-cli

ImportError: libffi.so.7: cannot open shared object file: No such file or directory

Open
#20,003 1 comment 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-identity-squad feature-request KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az keyvault set-policy`

**Errors:**
```
The command failed with an unexpected error. Here is the traceback:
libffi.so.7: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 556, in execute
self.commands_loader.load_arguments(command)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/core/__init__.py", line 517, in load_arguments
self.command_table[command].load_arguments() # this loads the arguments via reflection
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/core/commands/__init__.py", line 313, in load_arguments
super(AzCliCommand, self).load_arguments()
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/knack/commands.py", line 104, in load_arguments
cmd_args = self.arguments_loader()
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
op = self.get_op_handler(self.op_path)
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
handler = import_module(mod_to_import)
File "/home/linuxbrew/.linuxbrew/opt/python@3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/command_modules/keyvault/custom.py", line 21, in
from azure.cli.command_modules.keyvault.security_domain.jwe import JWE
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/azure/cli/command_modules/keyvault/security_domain/jwe.py", line 13, in
from cryptography.hazmat.primitives import hashes, padding
File "/home/linuxbrew/.linuxbrew/Cellar/azure-cli/2.29.0/libexec/lib/python3.9/site-packages/cryptography/hazmat/primitives/padding.py", line 13, in
from cryptography.hazmat.bindings._padding import lib
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

```

## 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 keyvault set-policy`

## Expected Behavior

## Environment Summary
```
Linux-5.4.0-1059-azure-x86_64-with-glibc2.27, Ubuntu 18.04.6 LTS
Python 3.9.7
Installer: HOMEBREW

azure-cli 2.29.0 *

Extensions:
aks-preview 0.5.10
k8s-extension 0.1PP.12
azure-devops 0.17.0

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.