cx_Freeze ImportError: DLL load failed failed while importing _ctypes: The specified module could not be found

Wyren

I compiled some Python scripts with cx_Freeze but compiled scripts giving me this error:

click to see error

setup.py:

from cx_Freeze import setup, Executable

executables = [
    Executable('USBAIO.py', base="Win32GUI", icon="Icons\\icon.ico"),
    Executable('ui.py', base="Win32GUI", icon="Icons\\icon.ico"),
    Executable("formatter.py", base="Win32GUI", icon="Icons\\cicon.ico"),
    Executable("updater.py", base="Win32GUI", icon="Icons\\uicon.ico"),
    Executable("permremove.py", base="Win32GUI", icon="Icons\\cicon.ico")
    ]

Packages = ["tkinter","functools", "time", "win32api",
                    "threading", "subprocess", "psutil", "os",
                    "shutil", "re", "requests", "sys", "ctypes",
                    "argparse", "google_drive_downloader",
                    "win32file", "win32con"
                    ]

Include = ["Icons", "version.txt", "icon.ico"]

setup(
    name="myapp",
    options={"build_exe":{"packages":Packages,"include_files":Include}},
    description = "myapp",
    executables = executables
)

Python version: 3.8

Windows: 8.1 Pro WMC

cx_Freeze: 6.0b1

Wyren

Well, I found the answer. The error caused by a DLL that cx_Freeze couldn't grab. When I copy the libffi-7.dll to lib folder my application works fine. Here is my research: research

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

DLL load failed: The specified module could not be found while importing scipy

From Dev

Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

From Dev

ImportError: DLL load failed while importing _psycopg: The specified module could not be found

From Dev

ImportError: DLL load failed while importing pyexpat: The specified module could not be found

From Dev

(ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

From Dev

Getting "ImportError: DLL load failed: The specified module could not be found" when using cx_Freeze even with tcl86t.dll and tk86t.dll added in

From Dev

ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

From Dev

When using cx_Freeze and tkinter I get: "DLL load failed: The specified module could not be found." (Python 3.5.3)

From Dev

How to fix 'ImportError: DLL load failed: The specified procedure could not be found.' while importing tensorflow-gpu?

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

pyodbc ImportError: DLL load failed: The specified module could > not be found

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

NLTK ImportError: DLL load failed: The specified module could not be found

From Dev

Scipy ImportError: DLL load failed: The specified module could not be found

From Dev

Pyinstaller ImportError: DLL load failed: The specified module could not be found

From Dev

Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

From Dev

skimage - ImportError: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found (sklearn)

From Dev

ktrain ImportError: DLL load failed: The specified module could not be found

From Dev

MeCab: “ImportError: DLL load failed: The specified module could not be found.”

From Dev

DLL load failed while importing aggregations: The specified module could not be found pyhton pandas excel files merging

From Dev

DLL load failed while importing ft2font: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

From Dev

Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

From Dev

Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

From Dev

How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

From Dev

ElastAlert ImportError: DLL load failed: The specified procedure could not be found

Related Related

  1. 1

    DLL load failed: The specified module could not be found while importing scipy

  2. 2

    Exception has occurred: ImportError DLL load failed while importing pdftotext: The specified module could not be found

  3. 3

    ImportError: DLL load failed while importing _psycopg: The specified module could not be found

  4. 4

    ImportError: DLL load failed while importing pyexpat: The specified module could not be found

  5. 5

    (ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found

  6. 6

    Getting "ImportError: DLL load failed: The specified module could not be found" when using cx_Freeze even with tcl86t.dll and tk86t.dll added in

  7. 7

    ImportError: DLL load failed while importing numpy_ops: The specified module could not be found. when importing spacy in Python

  8. 8

    When using cx_Freeze and tkinter I get: "DLL load failed: The specified module could not be found." (Python 3.5.3)

  9. 9

    How to fix 'ImportError: DLL load failed: The specified procedure could not be found.' while importing tensorflow-gpu?

  10. 10

    ImportError: DLL load failed: The specified module could not be found for numpy

  11. 11

    pyodbc ImportError: DLL load failed: The specified module could > not be found

  12. 12

    Python: ImportError: DLL load failed: The specified module could not be found

  13. 13

    ImportError: DLL load failed: The specified module could not be found

  14. 14

    ImportError: DLL load failed: The specified module could not be found

  15. 15

    NLTK ImportError: DLL load failed: The specified module could not be found

  16. 16

    Scipy ImportError: DLL load failed: The specified module could not be found

  17. 17

    Pyinstaller ImportError: DLL load failed: The specified module could not be found

  18. 18

    Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found

  19. 19

    skimage - ImportError: DLL load failed: The specified module could not be found

  20. 20

    ImportError: DLL load failed: The specified module could not be found (sklearn)

  21. 21

    ktrain ImportError: DLL load failed: The specified module could not be found

  22. 22

    MeCab: “ImportError: DLL load failed: The specified module could not be found.”

  23. 23

    DLL load failed while importing aggregations: The specified module could not be found pyhton pandas excel files merging

  24. 24

    DLL load failed while importing ft2font: The specified module could not be found

  25. 25

    ImportError: DLL load failed: The specified module could not be found. While attempting to import TensorFlow

  26. 26

    Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

  27. 27

    Trying to install TensorFlow- GPU...failed with ImportError: DLL load failed: The specified module could not be found

  28. 28

    How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

  29. 29

    ElastAlert ImportError: DLL load failed: The specified procedure could not be found

HotTag

Archive