Skip to content
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

ModuleNotFoundError: No modue named '_cffi_backend' #1

Closed
wwjang opened this issue May 4, 2024 · 5 comments
Closed

ModuleNotFoundError: No modue named '_cffi_backend' #1

wwjang opened this issue May 4, 2024 · 5 comments

Comments

@wwjang
Copy link
Collaborator

wwjang commented May 4, 2024

Traceback (most recent call last):
File "/home/wwjang/E2FL/test_wrls-power.py", line 10, in
import paramiko
File "/usr/lib/python3/dist-packages/paramiko/init.py", line 22, in
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/python3/dist-packages/paramiko/transport.py", line 90, in
from paramiko.ed25519key import Ed25519Key
File "/usr/lib/python3/dist-packages/paramiko/ed25519key.py", line 17, in
import bcrypt
File "/usr/lib/python3/dist-packages/bcrypt/init.py", line 25, in
from . import _bcrypt
ModuleNotFoundError: No module named '_cffi_backend'

@wwjang
Copy link
Collaborator Author

wwjang commented May 4, 2024

$ python3.10 -m pip install cffi
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: cffi in /.local/lib/python3.10/site-packages (1.16.0)
Requirement already satisfied: pycparser in /.local/lib/python3.10/site-packages (from cffi) (2.22)
DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at pypa/pip#12063
DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at pypa/pip#12063

@wwjang
Copy link
Collaborator Author

wwjang commented May 12, 2024

@wwjang
Copy link
Collaborator Author

wwjang commented May 12, 2024

https://stackoverflow.com/questions/75272737/error-invalid-version-0-23ubuntu1-package-distro-info

pip uninstall -y distro-info
pip install distro-info==1.0

@wwjang
Copy link
Collaborator Author

wwjang commented May 12, 2024

@wwjang
Copy link
Collaborator Author

wwjang commented Jun 3, 2024

Resolve this issue by installing cffi on sudo python and update it.

@wwjang wwjang closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant