Can you not adjust your setup.py so that it checks for 32-bit Python and then removes the offending paths from your PATH environment variable? Or at least make sure that the location containing the desired 32-bit paths are earlier in the PATH environment variable?
Anthony On Fri, Nov 18, 2016 at 9:13 AM, Cody Scott <c...@perspexis.com> wrote: > Okay the problem is my PATH environment variable contains the x64 Python > (Anaconda3) > > Code is here > https://bitbucket.org/anthony_tuininga/cx_freeze/src/ > 24372b7571459b087346c4803faf589396da5e62/cx_Freeze/freezer. > py?at=default&fileviewer=file-view-default#freezer.py-274 > > > os.environ["PATH"].split(';') > > ['c:\\Users\\cody\\Desktop\\qml-testing\\venv_32\\lib\\ > site-packages\\PyQt5\\Qt\\bin', > #... > 'C:\\Users\\cody\\Anaconda3', > 'C:\\Users\\cody\\Anaconda3\\Scripts', > 'C:\\Users\\cody\\Anaconda3\\Library\\bin', > ] > > What would be a good work around? > > On Fri, Nov 18, 2016 at 11:06 AM, Cody Scott <c...@perspexis.com> wrote: > >> Nevermind I do it is just util.cp35-win32.pyd >> >> I'm debugging the build now. >> >> On Fri, Nov 18, 2016 at 10:53 AM, Cody Scott <c...@perspexis.com> wrote: >> >>> Oddly I don't have a cx_Freeze.util submodule. >>> >>> >>> On Fri, Nov 18, 2016 at 10:20 AM, Anthony Tuininga < >>> anthony.tuini...@gmail.com> wrote: >>> >>>> 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\\p >>>>> ython35.zip', >>>>> 'C:\\Users\\cody\\AppData\\Local\\Programs\\Python\\Python3 >>>>> 5-32\\DLLs', >>>>> 'C:\\Users\\cody\\AppData\\Local\\Programs\\Python\\Python3 >>>>> 5-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 >>>> >>>> >>> >> > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > 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