Import Error: DLL load failed: The specified module could not be found when using cxfreeze

Fares Al Ghazy

I've been trying to convert a .py file to a .exe file using pyinstaller (failed, too many modules missing), now I've moved on to cx_freeze, things are running smoother but I'm still unable to compile my script. I'm using windows 10, 64 bit if it matters. Here is my setup.py

 import sys
from cx_Freeze import setup, Executable

setup(
    name = "EyeBreak",
    version = "3.1",
    description = "Script to remind user of 202020 eye rule.",
    executables = [Executable("EyeBreak.py", base = "Win32")])

I get an error from cmd as follows:

 Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\fares>cd c:\Python34

c:\Python34>python setup.py build
running build
running build_exe
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    executables = [Executable("EyeBreak.py", base = "Win32")])
  File "c:\Python34\lib\site-packages\cx_Freeze\dist.py", line 362, in setup
    distutils.core.setup(**attrs)
  File "c:\Python34\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "c:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\Python34\lib\distutils\command\build.py", line 126, in run
    self.run_command(cmd_name)
  File "c:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\Python34\lib\site-packages\cx_Freeze\dist.py", line 231, in run
    metadata = metadata)
  File "c:\Python34\lib\site-packages\cx_Freeze\freezer.py", line 101, in __init__
    for n in self._GetDefaultBinPathExcludes() + binPathExcludes]
  File "c:\Python34\lib\site-packages\cx_Freeze\freezer.py", line 242, in _GetDefaultBinPathExcludes
    **import cx_Freeze.util
ImportError: DLL load failed: The specified module could not be found.**
Anthony Tuininga

Check your installation of cx_Freeze for util.pyd. From the errors noted above that should be in this location:

c:\Python34\lib\site-packages\cx_Freeze\util.pyd

If that isn't found, your installation is broken. You can use this command to install a pre-built cx_Freeze instead:

python -m pip install cx_Freeze --upgrade

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

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

From Dev

Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

From Java

"import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

From Dev

import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

From Dev

Getting the error "DLL load failed: The specified module could not be found." while trying to import tensorflow for Windows in Anaconda using PyCharm

From Dev

ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

From Dev

Error importing numpy from Anaconda, using conda (DLL load failed: The specified module could not be found)

From Dev

"DLL load failed: The specified module could not be found" error on using wordcloud in Jupyter notebook

From Dev

I am getting a "DLL load failed: The specified module could not be found." when using Cython with a Numpy program

From Dev

from scipy.linalg import _fblas: ImportError: DLL load failed: 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

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

From Dev

Can't load audio on pygame - Pygame error when loading audio: Failed loading libvorbisfile-3.dll: The specified module could not be found

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

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

PyQt5: The 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

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

From Dev

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

From Dev

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

From Dev

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

From Dev

DLL load failed: the specified module could not be found Windows 10 shell

Related Related

  1. 1

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

  2. 2

    Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

  3. 3

    "import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

  4. 4

    import matplotlib._png as _png Import: Error: DLL load failed: The specified module could not be found

  5. 5

    Getting the error "DLL load failed: The specified module could not be found." while trying to import tensorflow for Windows in Anaconda using PyCharm

  6. 6

    ver.2 PyGreSQL ERROR: from _pg import * ImportError: DLL load failed: The specified module could not be found

  7. 7

    Error importing numpy from Anaconda, using conda (DLL load failed: The specified module could not be found)

  8. 8

    "DLL load failed: The specified module could not be found" error on using wordcloud in Jupyter notebook

  9. 9

    I am getting a "DLL load failed: The specified module could not be found." when using Cython with a Numpy program

  10. 10

    from scipy.linalg import _fblas: ImportError: DLL load failed: The specified module could not be found

  11. 11

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

  12. 12

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

  13. 13

    Can't load audio on pygame - Pygame error when loading audio: Failed loading libvorbisfile-3.dll: The specified module could not be found

  14. 14

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

  15. 15

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

  16. 16

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

  17. 17

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

  18. 18

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

  19. 19

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

  20. 20

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

  21. 21

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

  22. 22

    PyQt5: The DLL load failed: the specified module could not be found

  23. 23

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

  24. 24

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

  25. 25

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

  26. 26

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

  27. 27

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

  28. 28

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

  29. 29

    DLL load failed: the specified module could not be found Windows 10 shell

HotTag

Archive