It is possible that the routine SeachPath() on Windows finds the 64-bit DLL (this is found in the cx_Freeze.util submodule). The documentation for that Windows function isn't clear on what happens in a mixed 32-bit and 64-bit environment. If you can find the source of that set of DLLs (perhaps another one of the entries in your PATH environment variable?) you can remove it. If someone knows a better solution than using SearchPath() to determine dependencies, I'd love to hear about it!
Anthony On Fri, Nov 18, 2016 at 7:49 AM, Cody Scott <c...@perspexis.com> wrote: > I've created an 32 bit executable but it has the 64 bit MSCRT Dlls in the > build\exe.win32-3.5 directory. When I run it on a clean Windows 7 32 bit > system I get an error that > > C:\Program Files\QMLApplication\api-ms-win-crt-runtime-L1-1-0.dll is > either not designed to run on Windows or it contains an error. > > When I open it with Dependency Walker it shows all of the > api-ms-win-crt-*.dll files as 64 bit. > > I have an x64 Python installed on my system. But I want to create a 32 bit > application. I installed a 32bit Python 3.5.2 using the Installer from > www.python.org. > > I created a venv with > > python -m venv venv > > Then installed cx_Freeze in the venv. > > Here is what sys.path looks like while in the venv > > >>> pprint(sys.path) > ['', > 'C:\\Users\\cody\\Desktop\\qml-testing\\venv_32\\Scripts\\python35.zip', > 'C:\\Users\\cody\\AppData\\Local\\Programs\\Python\\Python35-32\\DLLs', > 'C:\\Users\\cody\\AppData\\Local\\Programs\\Python\\Python35-32\\lib', > 'C:\\Users\\cody\\AppData\\Local\\Programs\\Python\\Python35-32', > 'C:\\Users\\cody\\Desktop\\qml-testing\\venv_32', > 'C:\\Users\\cody\\Desktop\\qml-testing\\venv_32\\lib\\site-packages'] > > > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > cx-freeze-users mailing list > cx-freeze-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > >
------------------------------------------------------------------------------
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users