Python Forum

Full Version: No module named '_cffi_backend' error with executable not with python script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
No module named '_cffi_backend' error with executable not with python script

I'm using a script with the paramiko module. When I run the script it works fine. But when I convert the script to an executable with pyinstaller I get a 'Unhandled exception' error. It says 'No module named _cffi_backend'. How can I solve this issue?

I have already uninstalled all versions of Python and installed 1 version after that this afternoon. So I don't think the problem is that there are multiple versions of Python. I'm running this on Windows.

This is the error message I get:
[Image: gcOSD.png]
Use

pyinstaller --hidden-import=_cffi_backend
(Nov-24-2021, 06:11 PM)Axel_Erfurt Wrote: [ -> ]Use

pyinstaller --hidden-import=_cffi_backend

Thanks, that solved the problem.