Error loading Python DLL : python26.dll (error code 14001)

4,182 views
Skip to first unread message

Victor Lin

unread,
Aug 25, 2009, 6:21:23 AM8/25/09
to PyInstaller
Hi,

I packaged my application under windows. It works fine on my machine,
but I got "Error loading Python DLL : python26.dll (error code 14001)"
error.

I find there is a ticket is about this topic : http://www.pyinstaller.org/ticket/38

But however, I notice that pyinstaller do copy "msvcr90.dll" for me in
dist folder. But even I am sure that dll file is in same folder of
the .exe file. I still got that error message.

What might be the problem cause the error? How can I fix that?

Thanks.
Victor Lin.

Giovanni Bajo

unread,
Aug 25, 2009, 6:26:25 AM8/25/09
to pyins...@googlegroups.com
On Tue, 25 Aug 2009 03:21:23 -0700 (PDT), Victor Lin <born...@gmail.com>
wrote:

Can you please try with the latest patch attached to the ticket #39?
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

Victor Lin

unread,
Aug 25, 2009, 6:55:34 AM8/25/09
to PyInstaller
I just try to apply that path
http://www.pyinstaller.org/attachment/ticket/39/pyinstaller-trunk-r701-py26-win-tweaks-20090821.patch

and I reconfigure pyinstaller, clean up everything, and build it
again.
I notice that pyinstaller did't copy MSVCR90.DLL for me. But the
problem is still there

On 8月25日, 下午6時26分, Giovanni Bajo <ra...@develer.com> wrote:
> On Tue, 25 Aug 2009 03:21:23 -0700 (PDT), Victor Lin <borns...@gmail.com>

Florian Höch

unread,
Aug 25, 2009, 8:58:28 AM8/25/09
to pyins...@googlegroups.com
Do you have the "python for windows extensions"
(http://sourceforge.net/projects/pywin32/) installed? They are needed
for the patch to work.

Regards,

Florian Höch

Victor Lin schrieb:

Victor Lin

unread,
Aug 25, 2009, 10:52:18 AM8/25/09
to PyInstaller
Yes, I did, but it seems the problem is still there :(

Are there any way to know advanced information I can get about that
error? Only that error message I really don't know what's wrong with
pyinstaller.

On 8月25日, 下午8時58分, Florian Höch <florian.ho...@gmx.de> wrote:
> Do you have the "python for windows extensions"
> (http://sourceforge.net/projects/pywin32/) installed? They are needed
> for the patch to work.
>
> Regards,
>
> Florian Höch
>
> Victor Lin schrieb:
>
> > I just try to apply that path
> >http://www.pyinstaller.org/attachment/ticket/39/pyinstaller-trunk-r70...

Florian Höch

unread,
Aug 25, 2009, 11:16:43 AM8/25/09
to pyins...@googlegroups.com
Can you please post the output when running Build.py? Also, which
Windows version are you on? I know the patch works under XP, but I
haven't tested under Vista for a while.

Florian Höch

unread,
Aug 25, 2009, 1:31:45 PM8/25/09
to pyins...@googlegroups.com
Ok, it seems I accidentally broke Vista/Windows 7 support in the last
patch - it was trivial to fix, though. So if you're on Vista, please try
the new patch I just added.

Regards,

Florian Höch

Florian Höch schrieb:

Victor Lin

unread,
Aug 25, 2009, 2:09:15 PM8/25/09
to PyInstaller
That's strange, I use windows XP to pack my program, the program works
on my host windows XP, but it shows the error in the XP as guest OS in
virtual box.
Hum... I have no idea what's wrong with that.

These are output of build.py

Making PyInstaller spec ...
wrote I:\workspace\pySketch\trunk\src\pysketch.spec
now run Build.py to build the executable
Building ...
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: c:\pyinstaller\support\_mountzlib.py
Analyzing: c:\pyinstaller\support\useUnicode.py
Analyzing: main.py
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_combo.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_combo.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Searching for assembly
x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww...
I: Found manifest C:\WINDOWS\WinSxS\Manifests
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375.manifest
I: Searching for file msvcr90.dll
I: Found file C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcr90.dll
I: Searching for file msvcp90.dll
I: Found file C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcp90.dll
I: Searching for file msvcm90.dll
I: Found file C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcm90.dll
I: Adding Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest
I: Adding Microsoft.VC90.CRT\msvcr90.dll
I: Adding Microsoft.VC90.CRT\msvcp90.dll
I: Adding Microsoft.VC90.CRT\msvcm90.dll
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Adding wxbase28uh_vc.dll dependency of _combo.pyd
I: Adding wxmsw28uh_core_vc.dll dependency of _combo.pyd
I: Adding wxmsw28uh_adv_vc.dll dependency of _combo.pyd
I: Adding python26.dll dependency of _combo.pyd
I: Skipping KERNEL32.dll dependency of _combo.pyd
I: Analyzing C:\Python26\DLLs\select.pyd
I: Skipping WSOCK32.dll dependency of select.pyd
I: Skipping KERNEL32.dll dependency of select.pyd
I: Analyzing C:\Python26\DLLs\unicodedata.pyd
I: Skipping KERNEL32.dll dependency of unicodedata.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_controls_.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_controls_.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping KERNEL32.dll dependency of _controls_.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_windows_.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_windows_.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Adding wxmsw28uh_html_vc.dll dependency of _windows_.pyd
I: Skipping KERNEL32.dll dependency of _windows_.pyd
I: Analyzing C:\Python26\DLLs\_hashlib.pyd
I: Skipping KERNEL32.dll dependency of _hashlib.pyd
I: Skipping USER32.dll dependency of _hashlib.pyd
I: Skipping ADVAPI32.dll dependency of _hashlib.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_core_.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_core_.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Adding wxbase28uh_net_vc.dll dependency of _core_.pyd
I: Skipping KERNEL32.dll dependency of _core_.pyd
I: Analyzing C:\Python26\DLLs\bz2.pyd
I: Skipping KERNEL32.dll dependency of bz2.pyd
I: Analyzing C:\Python26\DLLs\_ssl.pyd
I: Skipping WS2_32.dll dependency of _ssl.pyd
I: Skipping KERNEL32.dll dependency of _ssl.pyd
I: Skipping USER32.dll dependency of _ssl.pyd
I: Skipping ADVAPI32.dll dependency of _ssl.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_misc_.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_misc_.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping USER32.dll dependency of _misc_.pyd
I: Skipping KERNEL32.dll dependency of _misc_.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_xrc.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_xrc.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Adding wxbase28uh_xml_vc.dll dependency of _xrc.pyd
I: Adding wxmsw28uh_xrc_vc.dll dependency of _xrc.pyd
I: Skipping KERNEL32.dll dependency of _xrc.pyd
I: Analyzing c:\pyinstaller\AES.pyd
I: Dependent assemblies of c:\pyinstaller\AES.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww
I: Skipping KERNEL32.dll dependency of AES.pyd
I: Analyzing C:\Python26\DLLs\_ctypes.pyd
I: Skipping KERNEL32.dll dependency of _ctypes.pyd
I: Skipping ole32.dll dependency of _ctypes.pyd
I: Skipping OLEAUT32.dll dependency of _ctypes.pyd
I: Analyzing C:\Python26\lib\site-packages\cairo\_cairo.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\cairo
\_cairo.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww
I: Adding libcairo-2.dll dependency of _cairo.pyd
I: Skipping KERNEL32.dll dependency of _cairo.pyd
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\_gdi_.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages\wx-2.8-msw-
unicode\wx\_gdi_.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww,
x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping assembly x86_Microsoft.Windows.Common-
Controls_6595b64144ccf1df_6.0.0.0_x-ww
I: Skipping KERNEL32.dll dependency of _gdi_.pyd
I: Analyzing C:\Python26\DLLs\pyexpat.pyd
I: Skipping KERNEL32.dll dependency of pyexpat.pyd
I: Analyzing C:\Python26\DLLs\_multiprocessing.pyd
I: Skipping WS2_32.dll dependency of _multiprocessing.pyd
I: Skipping KERNEL32.dll dependency of _multiprocessing.pyd
I: Analyzing C:\Python26\lib\site-packages\win32\win32api.pyd
I: Dependent assemblies of C:\Python26\lib\site-packages
\win32\win32api.pyd:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww
I: Skipping USER32.dll dependency of win32api.pyd
I: Skipping ADVAPI32.dll dependency of win32api.pyd
I: Skipping SHELL32.dll dependency of win32api.pyd
I: Skipping VERSION.dll dependency of win32api.pyd
I: Skipping POWRPROF.dll dependency of win32api.pyd
I: Adding pywintypes26.dll dependency of win32api.pyd
I: Skipping KERNEL32.dll dependency of win32api.pyd
I: Analyzing C:\Python26\DLLs\_socket.pyd
I: Skipping WS2_32.dll dependency of _socket.pyd
I: Skipping KERNEL32.dll dependency of _socket.pyd
I: Analyzing C:\WINDOWS\WinSxS\Manifests
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375.manifest
I: Analyzing C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcr90.dll
I: Skipping KERNEL32.dll dependency of msvcr90.dll
I: Analyzing C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcp90.dll
I: Skipping KERNEL32.dll dependency of msvcp90.dll
I: Analyzing C:\WINDOWS\WinSxS
\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-
ww_d08d0375\msvcm90.dll
I: Skipping KERNEL32.dll dependency of msvcm90.dll
I: Skipping ole32.dll dependency of msvcm90.dll
I: Adding mscoree.dll dependency of msvcm90.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxbase28uh_vc.dll
I: Skipping KERNEL32.dll dependency of wxbase28uh_vc.dll
I: Skipping USER32.dll dependency of wxbase28uh_vc.dll
I: Skipping SHELL32.dll dependency of wxbase28uh_vc.dll
I: Skipping ole32.dll dependency of wxbase28uh_vc.dll
I: Skipping ADVAPI32.dll dependency of wxbase28uh_vc.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxmsw28uh_core_vc.dll
I: Adding gdiplus.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping USER32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping GDI32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping COMDLG32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping SHELL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping COMCTL32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping ole32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping OLEAUT32.dll dependency of wxmsw28uh_core_vc.dll
I: Skipping RPCRT4.dll dependency of wxmsw28uh_core_vc.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxmsw28uh_adv_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_adv_vc.dll
I: Skipping USER32.dll dependency of wxmsw28uh_adv_vc.dll
I: Skipping WINMM.dll dependency of wxmsw28uh_adv_vc.dll
I: Analyzing C:\WINDOWS\system32\python26.dll
I: Dependent assemblies of C:\WINDOWS\system32\python26.dll:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww
I: Skipping KERNEL32.dll dependency of python26.dll
I: Skipping USER32.dll dependency of python26.dll
I: Skipping ADVAPI32.dll dependency of python26.dll
I: Skipping SHELL32.dll dependency of python26.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxmsw28uh_html_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_html_vc.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxbase28uh_net_vc.dll
I: Skipping WSOCK32.dll dependency of wxbase28uh_net_vc.dll
I: Skipping KERNEL32.dll dependency of wxbase28uh_net_vc.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxbase28uh_xml_vc.dll
I: Skipping KERNEL32.dll dependency of wxbase28uh_xml_vc.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\wxmsw28uh_xrc_vc.dll
I: Skipping KERNEL32.dll dependency of wxmsw28uh_xrc_vc.dll
I: Analyzing I:\workspace\pySketch\trunk\src\libcairo-2.dll
I: Adding libpng12-0.dll dependency of libcairo-2.dll
I: Adding zlib1.dll dependency of libcairo-2.dll
I: Skipping GDI32.dll dependency of libcairo-2.dll
I: Skipping KERNEL32.dll dependency of libcairo-2.dll
I: Skipping msvcrt.dll dependency of libcairo-2.dll
I: Adding MSIMG32.DLL dependency of libcairo-2.dll
I: Skipping msvcrt.dll dependency of libcairo-2.dll
I: Skipping USER32.dll dependency of libcairo-2.dll
I: Analyzing C:\WINDOWS\system32\pywintypes26.dll
I: Dependent assemblies of C:\WINDOWS\system32\pywintypes26.dll:
I: x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww
I: Skipping ADVAPI32.dll dependency of pywintypes26.dll
I: Skipping USER32.dll dependency of pywintypes26.dll
I: Skipping ole32.dll dependency of pywintypes26.dll
I: Skipping OLEAUT32.dll dependency of pywintypes26.dll
I: Skipping KERNEL32.dll dependency of pywintypes26.dll
I: Analyzing C:\WINDOWS\system32\mscoree.dll
I: Skipping KERNEL32.dll dependency of mscoree.dll
I: Analyzing C:\Python26\lib\site-packages\wx-2.8-msw-unicode\wx
\gdiplus.dll
I: Skipping KERNEL32.dll dependency of gdiplus.dll
I: Skipping USER32.dll dependency of gdiplus.dll
I: Skipping GDI32.dll dependency of gdiplus.dll
I: Skipping ole32.dll dependency of gdiplus.dll
I: Skipping ADVAPI32.dll dependency of gdiplus.dll
I: Analyzing I:\workspace\pySketch\trunk\src\libpng12-0.dll
I: Skipping KERNEL32.dll dependency of libpng12-0.dll
I: Skipping msvcrt.dll dependency of libpng12-0.dll
I: Analyzing I:\workspace\pySketch\trunk\src\zlib1.dll
I: Skipping MSVCRT.dll dependency of zlib1.dll
I: Skipping KERNEL32.dll dependency of zlib1.dll
I: Analyzing C:\WINDOWS\system32\msimg32.dll
I: Skipping GDI32.dll dependency of msimg32.dll
I: Skipping KERNEL32.dll dependency of msimg32.dll
Warnings written to I:\workspace\pySketch\trunk\src\warnpysketch.txt
checking PYZ
rebuilding outPYZ1.toc because outPYZ1.pyz is missing
building PYZ outPYZ1.toc
checking PKG
rebuilding outPKG3.toc because outPKG3.pkg is missing
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because pysketch.exe missing
building EXE from outEXE2.toc
Appending archive to EXE I:\workspace\pySketch\trunk\src\build
\pyi.win32\pysketch\pysketch.exe
checking COLLECT
building because outCOLLECT4.toc missing or bad
building COLLECT outCOLLECT4.toc

Florian Höch

unread,
Aug 25, 2009, 5:13:07 PM8/25/09
to pyins...@googlegroups.com
Hmm, according to Build.py output, pyinstaller seems to pick up the
assembly alright with the patch. Maybe it's an virtualbox issue? Do you
have another install you could try the exe on?

Ryan Bales

unread,
Sep 30, 2009, 5:09:54 PM9/30/09
to PyInstaller
I also have this issue. I have a simple PyQt4 program with win32 and
pyodbc dependencies. Below is the output of the build....

checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: C:\Python26\Lib\site-packages\pyinstaller\support
\_mountzlib.py
Analyzing: C:\Python26\Lib\site-packages\pyinstaller\support
\useUnicode.py
Analyzing: main.py
Warnings written to C:\Python26\Lib\site-packages\pyinstaller\main
\warnmain.txt
checking PYZ
rebuilding outPYZ1.toc because outPYZ1.pyz is missing
building PYZ outPYZ1.toc
checking PKG
rebuilding outPKG3.toc because outPKG3.pkg is missing
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because main.exe missing
building EXE from outEXE2.toc
I: SRCPATH [('unifycomp.ico', None)]
I: Updating icons from ['unifycomp.ico'] to c:\docume~1\jeff
\locals~1\temp\tmppbkuqr
I: Writing RT_GROUP_ICON 0 resource with 34 bytes
I: Writing RT_ICON 1 resource with 1128 bytes
I: Writing RT_ICON 2 resource with 4264 bytes
Appending archive to EXE C:\Python26\Lib\site-packages\pyinstaller\main
\build\pyi.win32\main\main.exe
checking COLLECT
building because outCOLLECT4.toc missing or bad
building COLLECT outCOLLECT4.toc




Ryan Bales
thin...@gmail.com
> ...
>
> read more »

Florian Höch

unread,
Oct 1, 2009, 6:53:46 AM10/1/09
to pyins...@googlegroups.com
Have you applied the latest patch attached to the ticket #38?

Regards,

Florian Höch

Ryan Bales schrieb:
Reply all
Reply to author
Forward
0 new messages