Python Forum
No module named '_cffi_backend' error with executable not with python script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named '_cffi_backend' error with executable not with python script
#1
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]
Reply
#2
Use

pyinstaller --hidden-import=_cffi_backend
Reply
#3
(Nov-24-2021, 06:11 PM)Axel_Erfurt Wrote: Use

pyinstaller --hidden-import=_cffi_backend

Thanks, that solved the problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 813 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 23,486 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,459 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,400 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,468 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,298 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,010 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 431 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,164 Jun-29-2023, 11:57 AM
Last Post: gologica
  Help with pyinstaller "No module named" korenron 9 8,738 Jun-15-2023, 12:20 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020