You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
(31) |
Jul
(50) |
Aug
(79) |
Sep
(45) |
Oct
(41) |
Nov
(56) |
Dec
(103) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(75) |
Feb
(37) |
Mar
(40) |
Apr
(41) |
May
(91) |
Jun
(41) |
Jul
(38) |
Aug
(48) |
Sep
(146) |
Oct
(98) |
Nov
(65) |
Dec
(64) |
| 2006 |
Jan
(40) |
Feb
(123) |
Mar
(57) |
Apr
(69) |
May
(49) |
Jun
(51) |
Jul
(50) |
Aug
(103) |
Sep
(89) |
Oct
(23) |
Nov
(73) |
Dec
(63) |
| 2007 |
Jan
(74) |
Feb
(76) |
Mar
(40) |
Apr
(46) |
May
(97) |
Jun
(45) |
Jul
(57) |
Aug
(74) |
Sep
(42) |
Oct
(15) |
Nov
(63) |
Dec
(10) |
| 2008 |
Jan
(40) |
Feb
(40) |
Mar
(25) |
Apr
(51) |
May
(34) |
Jun
(70) |
Jul
(52) |
Aug
(55) |
Sep
(44) |
Oct
(66) |
Nov
(44) |
Dec
(42) |
| 2009 |
Jan
(26) |
Feb
(32) |
Mar
(40) |
Apr
(81) |
May
(44) |
Jun
(49) |
Jul
(45) |
Aug
(58) |
Sep
(23) |
Oct
(62) |
Nov
(40) |
Dec
(48) |
| 2010 |
Jan
(24) |
Feb
(74) |
Mar
(62) |
Apr
(31) |
May
(42) |
Jun
(24) |
Jul
(39) |
Aug
(61) |
Sep
(21) |
Oct
(24) |
Nov
(26) |
Dec
(41) |
| 2011 |
Jan
(27) |
Feb
(27) |
Mar
(45) |
Apr
(15) |
May
(13) |
Jun
(26) |
Jul
(20) |
Aug
(52) |
Sep
(11) |
Oct
(32) |
Nov
(5) |
Dec
(5) |
| 2012 |
Jan
(7) |
Feb
(21) |
Mar
(2) |
Apr
(5) |
May
(9) |
Jun
|
Jul
(14) |
Aug
(20) |
Sep
(5) |
Oct
(8) |
Nov
(11) |
Dec
(4) |
| 2013 |
Jan
(7) |
Feb
(9) |
Mar
(8) |
Apr
(7) |
May
(22) |
Jun
(7) |
Jul
(4) |
Aug
(10) |
Sep
(7) |
Oct
(1) |
Nov
(17) |
Dec
(2) |
| 2014 |
Jan
(4) |
Feb
(2) |
Mar
(6) |
Apr
(6) |
May
(15) |
Jun
|
Jul
(9) |
Aug
(7) |
Sep
(21) |
Oct
(13) |
Nov
|
Dec
(2) |
| 2015 |
Jan
(5) |
Feb
|
Mar
(11) |
Apr
(3) |
May
(9) |
Jun
(5) |
Jul
(2) |
Aug
(2) |
Sep
(8) |
Oct
(9) |
Nov
(6) |
Dec
(1) |
| 2016 |
Jan
|
Feb
(5) |
Mar
(32) |
Apr
|
May
|
Jun
(10) |
Jul
(2) |
Aug
|
Sep
(5) |
Oct
(7) |
Nov
(3) |
Dec
|
| 2017 |
Jan
(5) |
Feb
|
Mar
(1) |
Apr
(1) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
| 2018 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(2) |
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2021 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sakurai Y. <You...@ys...> - 2016-09-20 02:06:38
|
Hello there,
I’d like to share one patch, as attached, which enables to build py2exe with Python 3.5.
The points were:
1. Run vcvarsall.bat of VC 14 (VS2015) manually before building py2exe.
2. Append “/DLL” option to link arguments in setup.py.
3. Modify assert condition to recognize new extension suffix (.cp35-win32.pyd) in py2exe/runtime.py.
My building test executable seems to work w/o problems at the moment.
You can also find outcome of the build using my patch as below.
Best regards,
Youhei
***
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>python --version
Python 3.5.2
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>set INCLUDE=
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>set INCLUDE
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\\shared;C:\Program Files (x86)\Windows Kits\8.1\include\\um;C:\Program Files (x86)\Windows Kits\8.1\include\\winrt;
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>C:\Python35\python.exe setup.py build
running build
running build_py
creating build
creating build\lib
copying zipextimporter.py -> build\lib
creating build\lib\py2exe
copying py2exe\boot_common.py -> build\lib\py2exe
copying py2exe\boot_ctypes_com_server.py -> build\lib\py2exe
copying py2exe\boot_service.py -> build\lib\py2exe
copying py2exe\build_exe.py -> build\lib\py2exe
copying py2exe\distutils_buildexe.py -> build\lib\py2exe
copying py2exe\dllfinder.py -> build\lib\py2exe
copying py2exe\hooks.py -> build\lib\py2exe
copying py2exe\icons.py -> build\lib\py2exe
copying py2exe\mf3.py -> build\lib\py2exe
copying py2exe\mf34.py -> build\lib\py2exe
copying py2exe\patch_distutils.py -> build\lib\py2exe
copying py2exe\py2exe_distutils.py -> build\lib\py2exe
copying py2exe\resources.py -> build\lib\py2exe
copying py2exe\runtime.py -> build\lib\py2exe
copying py2exe\setup_template.py -> build\lib\py2exe
copying py2exe\versioninfo.py -> build\lib\py2exe
copying py2exe\_wapi.py -> build\lib\py2exe
copying py2exe\__init__.py -> build\lib\py2exe
copying py2exe\__main__.py -> build\lib\py2exe
running build_interpreters
creating build\temp.win32-3.5
creating build\temp.win32-3.5\Release
creating build\temp.win32-3.5\Release\source
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/run.c /Fobuild\temp.win32-3.5\Release\source/run.obj
run.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/start.c /Fobuild\temp.win32-3.5\Release\source/start.obj
start.c
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /fobuild\temp.win32-3.5\Release\source/icon.res source/icon.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MemoryModule.c /Fobuild\temp.win32-3.5\Release\source/MemoryModule.obj
MemoryModule.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MyLoadLibrary.c /Fobuild\temp.win32-3.5\Release\source/MyLoadLibrary.obj
MyLoadLibrary.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/_memimporter.c /Fobuild\temp.win32-3.5\Release\source/_memimporter.obj
_memimporter.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/actctx.c /Fobuild\temp.win32-3.5\Release\source/actctx.obj
actctx.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/python-dynload.c /Fobuild\temp.win32-3.5\Release\source/python-dynload.obj
python-dynload.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:C:\Python35\libs /LIBPATH:C:\Python35\PCbuild\win32 user32.lib shell32.lib build\temp.win32-3.5\Release\source/run.obj build\temp.win32-3.5\Release\source/start.obj build\temp.win32-3.5\Release\source/icon.res build\temp.win32-3.5\Release\source/MemoryModule.obj build\temp.win32-3.5\Release\source/MyLoadLibrary.obj build\temp.win32-3.5\Release\source/_memimporter.obj build\temp.win32-3.5\Release\source/actctx.obj build\temp.win32-3.5\Release\source/python-dynload.obj /OUT:build\lib\py2exe\run-py3.5-win32.exe /IMPLIB:build\temp.win32-3.5\Release\source\run-py3.5-win32.lib
ライブラリ build\temp.win32-3.5\Release\source\run-py3.5-win32.lib とオブジェクト build\temp.win32-3.5\Release\source\run-py3.5-win32.exp を作成中
コード生成しています。
コード生成が終了しました。
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/run_w.c /Fobuild\temp.win32-3.5\Release\source/run_w.obj
run_w.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/start.c /Fobuild\temp.win32-3.5\Release\source/start.obj
start.c
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /fobuild\temp.win32-3.5\Release\source/icon.res source/icon.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MemoryModule.c /Fobuild\temp.win32-3.5\Release\source/MemoryModule.obj
MemoryModule.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MyLoadLibrary.c /Fobuild\temp.win32-3.5\Release\source/MyLoadLibrary.obj
MyLoadLibrary.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/_memimporter.c /Fobuild\temp.win32-3.5\Release\source/_memimporter.obj
_memimporter.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/actctx.c /Fobuild\temp.win32-3.5\Release\source/actctx.obj
actctx.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/python-dynload.c /Fobuild\temp.win32-3.5\Release\source/python-dynload.obj
python-dynload.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:C:\Python35\libs /LIBPATH:C:\Python35\PCbuild\win32 user32.lib shell32.lib build\temp.win32-3.5\Release\source/run_w.obj build\temp.win32-3.5\Release\source/start.obj build\temp.win32-3.5\Release\source/icon.res build\temp.win32-3.5\Release\source/MemoryModule.obj build\temp.win32-3.5\Release\source/MyLoadLibrary.obj build\temp.win32-3.5\Release\source/_memimporter.obj build\temp.win32-3.5\Release\source/actctx.obj build\temp.win32-3.5\Release\source/python-dynload.obj /OUT:build\lib\py2exe\run_w-py3.5-win32.exe /IMPLIB:build\temp.win32-3.5\Release\source\run_w-py3.5-win32.lib
ライブラリ build\temp.win32-3.5\Release\source\run_w-py3.5-win32.lib とオブジェクト build\temp.win32-3.5\Release\source\run_w-py3.5-win32.exp を作成中
コード生成しています。
コード生成が終了しました。
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python35\include -IC:\Python35\include /Tcsource/dll.c /Fobuild\temp.win32-3.5\Release\source/dll.obj
dll.c
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe -IC:\Python35\include -IC:\Python35\include /fobuild\temp.win32-3.5\Release\source/icon.res source/icon.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /LIBPATH:C:\Python35\libs /LIBPATH:C:\Python35\PCbuild\win32 build\temp.win32-3.5\Release\source/dll.obj build\temp.win32-3.5\Release\source/icon.res /OUT:build\lib\py2exe\resources.dll /IMPLIB:build\temp.win32-3.5\Release\source\resources.lib /NOENTRY /DLL
コード生成しています。
コード生成が終了しました。
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/run_ctypes_dll.c /Fobuild\temp.win32-3.5\Release\source/run_ctypes_dll.obj
run_ctypes_dll.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/start.c /Fobuild\temp.win32-3.5\Release\source/start.obj
start.c
C:\Program Files (x86)\Windows Kits\8.1\bin\x86\rc.exe -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /fobuild\temp.win32-3.5\Release\source/icon.res source/icon.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MemoryModule.c /Fobuild\temp.win32-3.5\Release\source/MemoryModule.obj
MemoryModule.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/MyLoadLibrary.c /Fobuild\temp.win32-3.5\Release\source/MyLoadLibrary.obj
MyLoadLibrary.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/_memimporter.c /Fobuild\temp.win32-3.5\Release\source/_memimporter.obj
_memimporter.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/actctx.c /Fobuild\temp.win32-3.5\Release\source/actctx.obj
actctx.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYTHONDLL=\"python35.dll\" -D_CRT_SECURE_NO_WARNINGS=1 -DPy_BUILD_CORE=1 -IC:\Python35\include -IC:\Python35\include /Tcsource/python-dynload.c /Fobuild\temp.win32-3.5\Release\source/python-dynload.obj
python-dynload.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /LIBPATH:C:\Python35\libs /LIBPATH:C:\Python35\PCbuild\win32 user32.lib shell32.lib /EXPORT:DllCanUnloadNow,PRIVATE /EXPORT:DllGetClassObject,PRIVATE /EXPORT:DllRegisterServer,PRIVATE /EXPORT:DllUnregisterServer,PRIVATE build\temp.win32-3.5\Release\source/run_ctypes_dll.obj build\temp.win32-3.5\Release\source/start.obj build\temp.win32-3.5\Release\source/icon.res build\temp.win32-3.5\Release\source/MemoryModule.obj build\temp.win32-3.5\Release\source/MyLoadLibrary.obj build\temp.win32-3.5\Release\source/_memimporter.obj build\temp.win32-3.5\Release\source/actctx.obj build\temp.win32-3.5\Release\source/python-dynload.obj /OUT:build\lib\py2exe\run_ctypes_dll-py3.5-win32.dll /IMPLIB:build\temp.win32-3.5\Release\source\run_ctypes_dll-py3.5-win32.lib /DLL
ライブラリ build\temp.win32-3.5\Release\source\run_ctypes_dll-py3.5-win32.lib とオブジェクト build\temp.win32-3.5\Release\source\run_ctypes_dll-py3.5-win32.exp を作成中
コード生成しています。
コード生成が終了しました。
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>echo %ERRORLEVEL%
0
C:\Users\sakurai\workspace\py2exe\trunk\py2exe-3>tree /F build\lib
フォルダー パスの一覧
ボリューム シリアル番号は A695-7605 です
C:\USERS\SAKURAI\WORKSPACE\PY2EXE\TRUNK\PY2EXE-3\BUILD\LIB
│ zipextimporter.py
│
└─py2exe
boot_common.py
boot_ctypes_com_server.py
boot_service.py
build_exe.py
distutils_buildexe.py
dllfinder.py
hooks.py
icons.py
mf3.py
mf34.py
patch_distutils.py
py2exe_distutils.py
resources.dll
resources.py
run-py3.5-win32.exe
runtime.py
run_ctypes_dll-py3.5-win32.dll
run_w-py3.5-win32.exe
setup_template.py
versioninfo.py
_wapi.py
__init__.py
__main__.py
________________________________
CONFIDENTIALITY NOTICE
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information.
If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify us by email to in...@ys... with a copy of this message. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Y Soft and any of its subsidiaries each reserves the right to monitor all e-mail communications through its networks.
Y Soft is neither liable for the proper, complete transmission of the information contained in this communication nor any delay in its receipt. This email was scanned for the presence of computer viruses. In the unfortunate event of infection Y Soft does not accept liability.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them.
|
|
From: Ashish A. <ash...@gm...> - 2016-07-17 10:21:24
|
Hi Team, Need your desperate help. I'm using py2exe to compile a Python 3.3 script that uses Selenium to open up Firefox windows and open the given URL. When I try to run the .exe generated by the compiled code, I get the error that Library.zip file is not having the webdriver_prefs.json When I opened the Library.zip file,above file is not there.I tried every option I find in the google but no luck.Your quick help will be appreciated. Thank you, Ashish |
|
From: Dimitry D. <pos...@gm...> - 2016-07-02 10:16:15
|
\src>python setup.py py2exe
running py2exe
*** searching for required modules ***
Traceback (most recent call last):
File "setup.py", line 65, in <module>
data_files = datafiles
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 243, in run
self._run()
File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 296, in _run
self.find_needed_modules(mf, required_files, required_modules)
File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 1297, in find_needed_modules
mf.import_hook(mod)
File "C:\Python27\lib\site-packages\py2exe\mf.py", line 719, in import_hook
return Base.import_hook(self,name,caller,fromlist,level)
File "C:\Python27\lib\site-packages\py2exe\mf.py", line 136, in import_hook
q, tail = self.find_head_package(parent, name)
File "C:\Python27\lib\site-packages\py2exe\mf.py", line 204, in find_head_package
raise ImportError, "No module named " + qname
ImportError: No module named pyomo |
|
From: Fahlgren, E. <eri...@sm...> - 2016-06-14 17:45:23
|
Seems like a reasonable solution. You might want to pile on with a bug report against lib2to3 (http://bugs.python.org/), citing the storjnode issue and your own embodiment of the problem. I'd say that it's not particularly robust to hard code "dirname(__file__)" as the path to a data file, maybe something with an envar or sys.path, or put it in a string and import it, or… Lots of ways this could have been done more flexibly. _GRAMMAR_DIR = os.getenv("PYGEN_GRAMMAR_DIR") if not _GRAMMAR_DIR: _GRAMMAR_DIR = os.path.dirname(__file__) _GRAMMAR_FILE = os.path.join(_GRAMMAR_DIR, "Grammar.txt") ... From: Jared DeMott [mailto:dem...@ya...] Sent: Tuesday, June 14, 2016 09:46 To: Fahlgren, Eric; py2...@li... Subject: Re: [Py2exe-users] including .txt files in .o it seems like if i have a post-installer that copies the files to install dir, and than just this change to pygram.py should do it? Best way? _GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "../../Grammar.txt") _PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "../../PatternGrammar.txt") ________________________________ From: "Fahlgren, Eric" <eri...@sm...<mailto:eri...@sm...>> To: Jared DeMott <dem...@ya...<mailto:dem...@ya...>>; "py2...@li...<mailto:py2...@li...>" <py2...@li...<mailto:py2...@li...>> Sent: Tuesday, June 14, 2016 12:12 PM Subject: RE: [Py2exe-users] including .txt files in .o Jared, This sounds like more of an installer issue than a py2exe one. If you put the txt files into your product.exe, how exactly do you envision opening the Grammar.txt file? I would look at putting it in the installation directory tree somewhere, and setting whatever path variable is needed for lib2to3 to find them there? On the other hand, you might not be able to do any of those yet: https://github.com/StorjOld/storjnode/issues/102 (at least without hacking pgen.py). Eric From: Jared DeMott [mailto:dem...@ya...] Sent: Monday, June 13, 2016 10:34 To: py2...@li...<mailto:py2...@li...> Subject: [Py2exe-users] including .txt files in .o The Python3 ported pefile makes use of futures and therefore lib2to3. This introduces a couple of dependencies (Grammar.txt and PatternGrammar.txt) which are not the standard types packaged into the shared library by py2exe (normally dll, pyd, pyo) Anyone know now to modify py2exe to include those? Thx! jrod |
|
From: Jared D. <dem...@ya...> - 2016-06-14 16:48:58
|
it seems like if i have a post-installer that copies the files to install dir,and than just this change to pygram.py should do it? Best way?
_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "../../Grammar.txt")_PATTERN_GRAMMAR_FILE = os.path.join(os.path.dirname(__file__), "../../PatternGrammar.txt")
From: "Fahlgren, Eric" <eri...@sm...>
To: Jared DeMott <dem...@ya...>; "py2...@li..." <py2...@li...>
Sent: Tuesday, June 14, 2016 12:12 PM
Subject: RE: [Py2exe-users] including .txt files in .o
#yiv9860078120 #yiv9860078120 -- _filtered #yiv9860078120 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9860078120 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9860078120 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv9860078120 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv9860078120 #yiv9860078120 p.yiv9860078120MsoNormal, #yiv9860078120 li.yiv9860078120MsoNormal, #yiv9860078120 div.yiv9860078120MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;}#yiv9860078120 a:link, #yiv9860078120 span.yiv9860078120MsoHyperlink {color:blue;text-decoration:underline;}#yiv9860078120 a:visited, #yiv9860078120 span.yiv9860078120MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9860078120 span.yiv9860078120Code {color:black;}#yiv9860078120 span.yiv9860078120EmailStyle18 {color:#1F497D;}#yiv9860078120 .yiv9860078120MsoChpDefault {font-size:10.0pt;} _filtered #yiv9860078120 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv9860078120 div.yiv9860078120WordSection1 {}#yiv9860078120 Jared, This sounds like more of an installer issue than a py2exe one. If you put the txt files into your product.exe, how exactly do you envision opening the Grammar.txt file? I would look at putting it in the installation directory tree somewhere, and setting whatever path variable is needed for lib2to3 to find them there? On the other hand, you might not be able to do any of those yet:https://github.com/StorjOld/storjnode/issues/102 (at least without hacking pgen.py). Eric From: Jared DeMott [mailto:dem...@ya...]
Sent: Monday, June 13, 2016 10:34
To: py2...@li...
Subject: [Py2exe-users] including .txt files in .o The Python3 ported pefile makes use of futures and therefore lib2to3. This introduces a couple of dependencies (Grammar.txt and PatternGrammar.txt) which are not the standard types packaged into the shared library by py2exe (normally dll, pyd, pyo) Anyone know now to modify py2exe to include those? Thx! jrod
|
|
From: Jared D. <dem...@ya...> - 2016-06-14 16:39:39
|
Yah, looks like a known issue, thx! I'll see what I can figure out.
From: "Fahlgren, Eric" <eri...@sm...>
To: Jared DeMott <dem...@ya...>; "py2...@li..." <py2...@li...>
Sent: Tuesday, June 14, 2016 12:12 PM
Subject: RE: [Py2exe-users] including .txt files in .o
#yiv9860078120 #yiv9860078120 -- _filtered #yiv9860078120 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9860078120 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9860078120 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv9860078120 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv9860078120 #yiv9860078120 p.yiv9860078120MsoNormal, #yiv9860078120 li.yiv9860078120MsoNormal, #yiv9860078120 div.yiv9860078120MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;}#yiv9860078120 a:link, #yiv9860078120 span.yiv9860078120MsoHyperlink {color:blue;text-decoration:underline;}#yiv9860078120 a:visited, #yiv9860078120 span.yiv9860078120MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9860078120 span.yiv9860078120Code {color:black;}#yiv9860078120 span.yiv9860078120EmailStyle18 {color:#1F497D;}#yiv9860078120 .yiv9860078120MsoChpDefault {font-size:10.0pt;} _filtered #yiv9860078120 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv9860078120 div.yiv9860078120WordSection1 {}#yiv9860078120 Jared, This sounds like more of an installer issue than a py2exe one. If you put the txt files into your product.exe, how exactly do you envision opening the Grammar.txt file? I would look at putting it in the installation directory tree somewhere, and setting whatever path variable is needed for lib2to3 to find them there? On the other hand, you might not be able to do any of those yet:https://github.com/StorjOld/storjnode/issues/102 (at least without hacking pgen.py). Eric From: Jared DeMott [mailto:dem...@ya...]
Sent: Monday, June 13, 2016 10:34
To: py2...@li...
Subject: [Py2exe-users] including .txt files in .o The Python3 ported pefile makes use of futures and therefore lib2to3. This introduces a couple of dependencies (Grammar.txt and PatternGrammar.txt) which are not the standard types packaged into the shared library by py2exe (normally dll, pyd, pyo) Anyone know now to modify py2exe to include those? Thx! jrod
|
|
From: Fahlgren, E. <eri...@sm...> - 2016-06-14 16:27:33
|
Jared, This sounds like more of an installer issue than a py2exe one. If you put the txt files into your product.exe, how exactly do you envision opening the Grammar.txt file? I would look at putting it in the installation directory tree somewhere, and setting whatever path variable is needed for lib2to3 to find them there? On the other hand, you might not be able to do any of those yet: https://github.com/StorjOld/storjnode/issues/102 (at least without hacking pgen.py). Eric From: Jared DeMott [mailto:dem...@ya...] Sent: Monday, June 13, 2016 10:34 To: py2...@li... Subject: [Py2exe-users] including .txt files in .o The Python3 ported pefile makes use of futures and therefore lib2to3. This introduces a couple of dependencies (Grammar.txt and PatternGrammar.txt) which are not the standard types packaged into the shared library by py2exe (normally dll, pyd, pyo) Anyone know now to modify py2exe to include those? Thx! jrod |
|
From: Jared D. <dem...@ya...> - 2016-06-13 17:37:20
|
The Python3 ported pefile makes use of futures and therefore lib2to3. This introduces a couple of dependencies (Grammar.txt and PatternGrammar.txt) which are not the standard types packaged into the shared library by py2exe (normally dll, pyd, pyo) Anyone know now to modify py2exe to include those? Thx!jrod |
|
From: Fahlgren, E. <eri...@sm...> - 2016-06-08 15:29:32
|
Ah, that would make sense, my patched junk assumes those libraries are already in the numpy site-packages… I have always used Christoph Gohlke's builds (http://www.lfd.uci.edu/~gohlke/pythonlibs/) as they already have the MKL packaged in. From: Sharma, Girish [mailto:gir...@wu...] Sent: Wednesday, June 08, 2016 07:59 To: Dimitry Demin; Fahlgren, Eric Cc: Py2...@li... Subject: Re: [Py2exe-users] numpy Hi Dimi, I also had similar problem and got it solved by this email from py2exe group. This is not a perfect solution. But it works. [😊] To get you up and running, you will need to add 'libiomp5md.dll' and 'mkl_core.dll' to your DIST directory. They are located in '<anacodadir>\Library\bin'. For now, copy all the DLL files. This makes the exe run on other computers as well. Best of luck! ________________________________ From: Dimitry Demin <pos...@gm...<mailto:pos...@gm...>> Sent: Wednesday, June 8, 2016 2:33:37 AM To: Fahlgren, Eric Cc: Py2...@li...<mailto:Py2...@li...> Subject: Re: [Py2exe-users] numpy Hi Eric, Thanks a lot for your reply! I followed your steps, but run into old errors :( by executing on site machines. The script is attached. Any ideas are highly appreciated! Sincerely Dimi Traceback (most recent call last): File "testNumpy.py", line 2, in <module> File "numpy\__init__.pyc", line 180, in <module> File "numpy\add_newdocs.pyc", line 13, in <module> File "numpy\lib\__init__.pyc", line 8, in <module> File "numpy\lib\type_check.pyc", line 11, in <module> File "numpy\core\__init__.pyc", line 14, in <module> File "numpy\core\multiarray.pyc", line 12, in <module> File "numpy\core\multiarray.pyc", line 10, in __load ImportError: DLL load failed: The specified module could not be found. |
|
From: Sharma, G. <gir...@wu...> - 2016-06-08 15:13:28
|
Hi Dimi, I also had similar problem and got it solved by this email from py2exe group. This is not a perfect solution. But it works. [😊] To get you up and running, you will need to add 'libiomp5md.dll' and 'mkl_core.dll' to your DIST directory. They are located in '<anacodadir>\Library\bin'. For now, copy all the DLL files. This makes the exe run on other computers as well. Best of luck! ________________________________ From: Dimitry Demin <pos...@gm...> Sent: Wednesday, June 8, 2016 2:33:37 AM To: Fahlgren, Eric Cc: Py2...@li... Subject: Re: [Py2exe-users] numpy Hi Eric, Thanks a lot for your reply! I followed your steps, but run into old errors :( by executing on site machines. The script is attached. Any ideas are highly appreciated! Sincerely Dimi Traceback (most recent call last): File "testNumpy.py", line 2, in <module> File "numpy\__init__.pyc", line 180, in <module> File "numpy\add_newdocs.pyc", line 13, in <module> File "numpy\lib\__init__.pyc", line 8, in <module> File "numpy\lib\type_check.pyc", line 11, in <module> File "numpy\core\__init__.pyc", line 14, in <module> File "numpy\core\multiarray.pyc", line 12, in <module> File "numpy\core\multiarray.pyc", line 10, in __load ImportError: DLL load failed: The specified module could not be found. |
|
From: Dimitry D. <pos...@gm...> - 2016-06-08 07:34:23
|
Hi Eric, Thanks a lot for your reply! I followed your steps, but run into old errors :( by executing on site machines. The script is attached. Any ideas are highly appreciated! Sincerely Dimi Traceback (most recent call last): File "testNumpy.py", line 2, in <module> File "numpy\__init__.pyc", line 180, in <module> File "numpy\add_newdocs.pyc", line 13, in <module> File "numpy\lib\__init__.pyc", line 8, in <module> File "numpy\lib\type_check.pyc", line 11, in <module> File "numpy\core\__init__.pyc", line 14, in <module> File "numpy\core\multiarray.pyc", line 12, in <module> File "numpy\core\multiarray.pyc", line 10, in __load ImportError: DLL load failed: The specified module could not be found. |
|
From: Fahlgren, E. <eri...@sm...> - 2016-06-06 17:39:48
|
Dimitry,
Here's my solution that's working with Python 2.7.11 win 64 and Numpy 1.10.4 (currently, but has worked for about four years now with each numpy/scipy update).
First, exclude the three fortran libs from the build through a monkey patch:
EXCLUDED_DLLS = (
'libmmd.dll', # These next three are numpy and problematic, so we do them manually.
'libifcoremd.dll',
'libiomp5md.dll',
… some other stuff
)
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
basepath = _path.basename(pathname).lower()
if basepath in INCLUDED_DLLS: return 1
if basepath in EXCLUDED_DLLS: return 1
return origIsSystemDLL(pathname)
py2exe.build_exe.isSystemDLL = isSystemDLL
Next, collect all the numpy dlls manually (not sure why I'm replacing the DOS backslashes, but whatever):
import numpy
numpyDir = path.split(numpy.__file__)[0]
numpyDlls = [dll.replace("/", "\\") for dll in glob.glob(path.join(numpyDir, "core", "*.dll"))]
del numpy, numpyDir
Finally in the setup, include all the numpy DLLs with data_files:
distutils.core.setup(
data_files = [
… other stuff
("", numpyDlls),
],
Might look like overkill, but it seems to work.
Hope this helps,
Eric
From: Dimitry Demin [mailto:pos...@gm...]
Sent: Monday, June 06, 2016 05:03
To: Py2...@li...
Subject: [Py2exe-users] numpy
Dear All,
I have an error issue with numpy Version: 1.11.0 on site computers. Seems py2exe doesn't sheep all the dlls.
Any ideas are highly appreciated!
Sincerely
Dimitry
|
|
From: Dimitry D. <pos...@gm...> - 2016-06-06 12:03:32
|
Dear All, I have an error issue with numpy Version: 1.11.0 on site computers. Seems py2exe doesn't sheep all the dlls. Any ideas are highly appreciated! Sincerely Dimitry |
|
From: Massa, H. A. <ch...@gh...> - 2016-03-24 09:09:42
|
Hello Lara Maia, > #!/bin/console.exe /usr/bin/python > I need to call the command "python" through this executable (console.exe). > Is there any way to do that? > > For clarify: > > - The console.exe is from winpty project ( > https://github.com/rprichard/winpty) > and I need it for my program works. > > as py2exe brings his own startup-stub, integrating another startup-stub will be near impossible. As much as I understand, console.exe does the following: - start an unix-console-agent - reroute the python stdout / stdin / stderr to that console agent. So, if you want to use that, you have to find ways to do that in your Python-program on your own, before you start using console input / output. best wishes, Harald -- GHUM GmbH Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 Amtsgericht Stuttgart, HRB 734971 |
|
From: Lara M. <de...@la...> - 2016-03-24 02:14:34
|
I have a python with the following shebang: #!/bin/console.exe /usr/bin/python I need to call the command "python" through this executable (console.exe). Is there any way to do that? For clarify: - The console.exe is from winpty project (https://github.com/rprichard/winpty) and I need it for my program works. - When the user runs compiledPythonScript.exe, It must execute the console.exe with the path of python interpreter and path of python script as a parameter: (E.g: $ /bin/console.exe /path/to/python /path/to/compiledPythonScript.exe) - The console.exe will execute the python and the script. I've searched a lot and found no solution to this problem, but I don't want to execute the console.exe manually every time. I accept any solution. Thanks |
|
From: Toni B. <hih...@go...> - 2016-03-18 05:27:35
|
Am 17.03.2016 um 21:46 schrieb honas grael: > > Hi I'm using python's cmd.cmd module(aka cmd module), essentially I > have a function like > > |do_simple_test(line)*run the test file*| > > When I run it, I get a nice little console typing > |simple_test(test_filename.txt)|, allows me to run the tests contained > in the text file that I typed in. > > This works well, but I want to take the automation one step further. I > converted my *main.py* into an executable *main.exe* using py2exe. It > still works fine. > > What I now want is to be able to launch main.exe with the > test_filename.txt as a parameter so > > |main.exe test_filename.txt| > > so that it will execute > > |simple_test(test_filename.txt)| > > That would give me the freedom to change the argument with which I > call main.exe, without having to type the appropriate command in the > console window. > > I am running python 2.7.10 on Windows Is it possible to do this, and how? > > Thank you > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 > > Hi, > > this isn't actually a py2exe question. What stops you from doing it > the old fashioned way? > import sys > do_simple_test(sys.argv[1]) > > or actually implement an argument parser for your program. That way > you could actually add some more arguments to your program. Use the > argparse module to do that (import argparse). > > Both ways should be fully compatible to py2exe. > > Best Regards. > > Toni > > > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |
|
From: honas g. <hon...@gm...> - 2016-03-17 20:46:37
|
Hi I'm using python's cmd.cmd module(aka cmd module), essentially I have a function like do_simple_test(line) *run the test file* When I run it, I get a nice little console typing simple_test(test_filename.txt), allows me to run the tests contained in the text file that I typed in. This works well, but I want to take the automation one step further. I converted my *main.py* into an executable *main.exe* using py2exe. It still works fine. What I now want is to be able to launch main.exe with the test_filename.txt as a parameter so main.exe test_filename.txt so that it will execute simple_test(test_filename.txt) That would give me the freedom to change the argument with which I call main.exe, without having to type the appropriate command in the console window. I am running python 2.7.10 on Windows Is it possible to do this, and how? Thank you |
|
From: Sharma, G. <gir...@wu...> - 2016-03-10 01:46:34
|
Dear Kloth, exe is running on other computers now without any problem though the size of the dist folder has increased. It is definitely much easier for the users than to install Anaconda. Thank you. - Girish Sharma ________________________________________ From: Jeremy Kloth <jer...@gm...> Sent: Wednesday, March 9, 2016 5:30 PM To: Sharma, Girish Cc: py2...@li... Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers On Wed, Mar 9, 2016 at 4:17 PM, Sharma, Girish <gir...@wu...> wrote: > Dear Kloth, > > I thought that the exe was running fine but there is still a problem. > > Background: In my .py file I used Tkinter to make a GUI and take inputs. Then I use scipy, numpy functions to create some plots, which I produce using matplotlib. > > I thought the exe is running because there are no errors in the log file now and the Tkinter window opens, takes inputs but it fails to give me plots when I submit my inputs to the GUI (which I did not check earlier) Well, the same problem that occured with mkl_intel_thread.dll is probably happening with other modules. I've run out of time to investigate further, but a quick solution would be to copy all the .dll files from '<anacondadir>\Library\bin' to the DIST directory. It adds bloat to the final distribution, but should fix the problem. -- Jeremy Kloth |
|
From: Jeremy K. <jer...@gm...> - 2016-03-09 23:30:07
|
On Wed, Mar 9, 2016 at 4:17 PM, Sharma, Girish <gir...@wu...> wrote: > Dear Kloth, > > I thought that the exe was running fine but there is still a problem. > > Background: In my .py file I used Tkinter to make a GUI and take inputs. Then I use scipy, numpy functions to create some plots, which I produce using matplotlib. > > I thought the exe is running because there are no errors in the log file now and the Tkinter window opens, takes inputs but it fails to give me plots when I submit my inputs to the GUI (which I did not check earlier) Well, the same problem that occured with mkl_intel_thread.dll is probably happening with other modules. I've run out of time to investigate further, but a quick solution would be to copy all the .dll files from '<anacondadir>\Library\bin' to the DIST directory. It adds bloat to the final distribution, but should fix the problem. -- Jeremy Kloth |
|
From: Sharma, G. <gir...@wu...> - 2016-03-09 23:17:49
|
Dear Kloth,
I thought that the exe was running fine but there is still a problem.
Background: In my .py file I used Tkinter to make a GUI and take inputs. Then I use scipy, numpy functions to create some plots, which I produce using matplotlib.
I thought the exe is running because there are no errors in the log file now and the Tkinter window opens, takes inputs but it fails to give me plots when I submit my inputs to the GUI (which I did not check earlier)
Following will explain the current problem better:
My computer Other computer
Anaconda Yes No
Python Yes No
exe without the 2 DLLs Yes No
exe with the 2 DLLs No* No*
*(opens GUI but no plot or data file, gives no error in log file)
This is my mainscript (Moment_Final.py) : https://github.com/girishsharma91/Python_github/blob/master/Moment_Final.py
This is my set up file (setup.py) :
https://github.com/girishsharma91/Python_github/blob/master/setup.py
________________________________________
From: Sharma, Girish <gir...@wu...>
Sent: Wednesday, March 9, 2016 9:21 AM
To: Jeremy Kloth
Cc: py2...@li...
Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers
Dear Kloth,
I cannot tell you how much helpful you were. Now, the exe is running on other computers. Thanks a lot Kloth. It would not be possible for me to get it done without your help. You are just awesome.
-
Girish Sharma
________________________________________
From: Jeremy Kloth <jer...@gm...>
Sent: Wednesday, March 9, 2016 2:39 AM
To: Sharma, Girish
Cc: py2...@li...
Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers
On Tue, Mar 8, 2016 at 11:17 PM, Sharma, Girish <gir...@wu...> wrote:
> Dear Kloth,
>
> But the users would not wish to download and install Anaconda Python 2.7 on their computers just to run my exe. I feel There is a small mistake, which I am not able to catch. Please have a look at my setup.py file, if that helps.
In short, what you have done *should* work OOTB. However, there is a
bug (edge case really) within py2exe that is preventing this from
working.
To get you up and running, you will need to add 'libiomp5md.dll' and
'mkl_core.dll' to your DIST directory. They are located in
'<anacodadir>\Library\bin'.
As for the bug in py2exe, it relates to the usage of Windows API
function BindImageEx() on the 'mkl_intel_thread.dll' DLL. That
function is not finding any modules to bind (perhaps already bound?).
The fix for this would involve reading of the PE format directly to
locate the imported modules.
--
Jeremy Kloth
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Py2exe-users mailing list
Py2...@li...
https://lists.sourceforge.net/lists/listinfo/py2exe-users
|
|
From: from_JP <in...@in...> - 2016-03-09 17:33:18
|
I have been watching these emails for a few days because I have had similar problems. I program on Linux then copy the python py files to a Win XP machine where I use py2exe to convert those files for testing on the win XP machine. After testing for bugs I use Inno Setup to produce a package for installation on other computers. My current, voice to text program is running on a Dell Touch Screen machine, with a Win 10 O.S. In the past I had similar problems until I got Inno to work correctly.. To get Inno to work you will have to have your paths and files in good order. If you can't get Inno to work you have a problem to solve. If you get Inno to work you will most likely solve you problem. If I were having the problems that these emails to py2exe help are concerned with I would give Inno Setup a try even if it got me to think about the problem from a different angle. That's my py2exe 2 cents, jimonlinux for inqvista.com |
|
From: Sharma, G. <gir...@wu...> - 2016-03-09 15:21:28
|
Dear Kloth, I cannot tell you how much helpful you were. Now, the exe is running on other computers. Thanks a lot Kloth. It would not be possible for me to get it done without your help. You are just awesome. - Girish Sharma ________________________________________ From: Jeremy Kloth <jer...@gm...> Sent: Wednesday, March 9, 2016 2:39 AM To: Sharma, Girish Cc: py2...@li... Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers On Tue, Mar 8, 2016 at 11:17 PM, Sharma, Girish <gir...@wu...> wrote: > Dear Kloth, > > But the users would not wish to download and install Anaconda Python 2.7 on their computers just to run my exe. I feel There is a small mistake, which I am not able to catch. Please have a look at my setup.py file, if that helps. In short, what you have done *should* work OOTB. However, there is a bug (edge case really) within py2exe that is preventing this from working. To get you up and running, you will need to add 'libiomp5md.dll' and 'mkl_core.dll' to your DIST directory. They are located in '<anacodadir>\Library\bin'. As for the bug in py2exe, it relates to the usage of Windows API function BindImageEx() on the 'mkl_intel_thread.dll' DLL. That function is not finding any modules to bind (perhaps already bound?). The fix for this would involve reading of the PE format directly to locate the imported modules. -- Jeremy Kloth |
|
From: Jeremy K. <jer...@gm...> - 2016-03-09 08:39:40
|
On Tue, Mar 8, 2016 at 11:17 PM, Sharma, Girish <gir...@wu...> wrote: > Dear Kloth, > > But the users would not wish to download and install Anaconda Python 2.7 on their computers just to run my exe. I feel There is a small mistake, which I am not able to catch. Please have a look at my setup.py file, if that helps. In short, what you have done *should* work OOTB. However, there is a bug (edge case really) within py2exe that is preventing this from working. To get you up and running, you will need to add 'libiomp5md.dll' and 'mkl_core.dll' to your DIST directory. They are located in '<anacodadir>\Library\bin'. As for the bug in py2exe, it relates to the usage of Windows API function BindImageEx() on the 'mkl_intel_thread.dll' DLL. That function is not finding any modules to bind (perhaps already bound?). The fix for this would involve reading of the PE format directly to locate the imported modules. -- Jeremy Kloth |
|
From: Sharma, G. <gir...@wu...> - 2016-03-09 06:17:24
|
Dear Kloth,
But the users would not wish to download and install Anaconda Python 2.7 on their computers just to run my exe. I feel There is a small mistake, which I am not able to catch. Please have a look at my setup.py file, if that helps.
Thank you for your time.
________________________________________
From: Sharma, Girish <gir...@wu...>
Sent: Tuesday, March 8, 2016 11:25 PM
To: Jeremy Kloth
Cc: py2...@li...
Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers
Thank you Kloth for writing a code for me to figure out what is really missing. I ran the code for did numpy or matplotlib, I got the names of the files. But I already have them in my dist folder.
My exe is running fine on my system but not on other systems. If I install Anaconda Python 2.7 on other systems, exe runs on other computers as well.
________________________________________
From: Jeremy Kloth <jer...@gm...>
Sent: Tuesday, March 8, 2016 10:38 PM
To: Sharma, Girish
Cc: py2...@li...
Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers
Ok. Here is a little script to see what imports are required for a
given module:
# -- begin --
import sys
initial = set(sys.modules)
# change this import as needed for testing
import numpy.core.multiarray
# determine which modules have been added by the import statement
loaded = set(sys.modules) - initial
# remove "placeholder" modules
loaded -= set(name for name in loaded if sys.modules[name] is None)
# remove built-in modules
loaded -= set(name for name in loaded if not
hasattr(sys.modules[name], '__file__'))
# finally, find the extension modules
for name in loaded:
fn = sys.modules[name].__file__
if fn.lower().endswith('.pyd'):
print(fn)
# -- end --
Copy/Paste the above into a new .py file and run it with python:
python somefile.py
The output will be the names of extension modules which are needed by
the given import. A quick test locally produces:
C:\Python27\lib\site-packages\numpy\random\mtrand.pyd
C:\Python27\lib\site-packages\numpy\core\umath.pyd
C:\Python27\lib\site-packages\numpy\fft\fftpack_lite.pyd
C:\Python27\lib\site-packages\numpy\core\multiarray.pyd
C:\Python27\lib\site-packages\numpy\linalg\_umath_linalg.pyd
C:\Python27\lib\site-packages\numpy\linalg\lapack_lite.pyd
The listed files should exist in the DIST directory of py2exe executable.
--
Jeremy Kloth
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Py2exe-users mailing list
Py2...@li...
https://lists.sourceforge.net/lists/listinfo/py2exe-users
|
|
From: Sharma, G. <gir...@wu...> - 2016-03-09 05:25:30
|
Thank you Kloth for writing a code for me to figure out what is really missing. I ran the code for did numpy or matplotlib, I got the names of the files. But I already have them in my dist folder.
My exe is running fine on my system but not on other systems. If I install Anaconda Python 2.7 on other systems, exe runs on other computers as well.
________________________________________
From: Jeremy Kloth <jer...@gm...>
Sent: Tuesday, March 8, 2016 10:38 PM
To: Sharma, Girish
Cc: py2...@li...
Subject: Re: [Py2exe-users] .exe file working on my computer but not other computers
Ok. Here is a little script to see what imports are required for a
given module:
# -- begin --
import sys
initial = set(sys.modules)
# change this import as needed for testing
import numpy.core.multiarray
# determine which modules have been added by the import statement
loaded = set(sys.modules) - initial
# remove "placeholder" modules
loaded -= set(name for name in loaded if sys.modules[name] is None)
# remove built-in modules
loaded -= set(name for name in loaded if not
hasattr(sys.modules[name], '__file__'))
# finally, find the extension modules
for name in loaded:
fn = sys.modules[name].__file__
if fn.lower().endswith('.pyd'):
print(fn)
# -- end --
Copy/Paste the above into a new .py file and run it with python:
python somefile.py
The output will be the names of extension modules which are needed by
the given import. A quick test locally produces:
C:\Python27\lib\site-packages\numpy\random\mtrand.pyd
C:\Python27\lib\site-packages\numpy\core\umath.pyd
C:\Python27\lib\site-packages\numpy\fft\fftpack_lite.pyd
C:\Python27\lib\site-packages\numpy\core\multiarray.pyd
C:\Python27\lib\site-packages\numpy\linalg\_umath_linalg.pyd
C:\Python27\lib\site-packages\numpy\linalg\lapack_lite.pyd
The listed files should exist in the DIST directory of py2exe executable.
--
Jeremy Kloth
|