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

In cx_Freeze version 5.1.1, the included modules are in a subdirectory lib of the build directory. The tcl86t.dll and tk86t.dll DLLs apparently need to be moved there as well. You can do this with the following modification of your setup.py script: build_exe_options = {“packages”: [“winsound”, “random”, “time”, “tkinter”, “math”], “include_files”: [(‘tcl86t.dll’, os.path.join(‘lib’, ‘tcl86t.dll’)), (‘tk86t.dll’, os.path.join(‘lib’, … Read more

ImportError: No module named ‘psycopg2._psycopg’

Eureka! I pulled my hair out for 2 days trying to get this to work. Enlightenment came from this SO Question. Simply stated, you probably installed psycopg2 x64 version like I did, not realizing your python version was 32-bit. Unistall your current psycopg2, then: Download: psycopg2-2.6.1.win32-py3.4-pg9.4.4-release.exe from HERE, then run the following in a Terminal: … Read more

What does “Symbol not found / Expected in: flat namespace” actually mean?

Description The problem was caused by mixing objects that compiled with libc++ and object that compiled with libstdc++. In our case, the library myMod.so (compiled with libstdc++) need boost-python that compiled with libstdc++ (boost-python-libstdc++ from now). When boost-python is boost-python-libstdc++, it will work fine. Otherwise – on computer that its boost-python has compiled with libc++ … Read more