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 'importlib.metadata' EdVS 3 913 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,230 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 5,260 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 30,835 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 9,546 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,306 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 3,673 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 3,105 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 2,359 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 869 Jul-04-2023, 10:03 AM
Last Post: Alphetto

Forum Jump:

User Panel Messages

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