MSVCR90.DLL missing?

1,242 views
Skip to first unread message

Ram

unread,
Jan 31, 2012, 10:31:06 PM1/31/12
to PyInstaller

I do have Visual C++ 2008 redistributables installed, and I also tried
the SP1 installation, I still kept getting the following problem:

INFO: Testing for ability to set icons, version resources...
INFO: ... resource update available
INFO: UPX is not available.
WARNING: library python%s%s required via ctypes not found
INFO: checking Analysis
INFO: building Analysis because out00-Analysis.toc non existent
INFO: running Analysis out00-Analysis.toc
INFO: Analyzing c:\myproject\pyinstaller-pyinstaller-8374463\support
\_mountzlib.py
WARNING: library python%s%s required via ctypes not found
INFO: Analyzing C:/.../myproject.py
ERROR: lib not found: MSVCR90.dll dependency of c:\Python27\DLLs
\_tkinter.pyd
Traceback (most recent call last):
File "pyinstaller.py", line 90, in <module>
main()
File "pyinstaller.py", line 85, in main
run_build(opts, spec_file)
File "pyinstaller.py", line 49, in run_build
PyInstaller.build.main(spec_file, **opts.__dict__)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\build.py", line 1570, in main
build(specfile, buildpath)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\build.py", line 1480, in build
execfile(spec)
File "c:\myproject\pyinstaller-pyinstaller-8374463\myproject
\myproject.spec", line 5, in <module>
hookspath=None)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\build.py", line 369, in __init__
self.__postinit__()
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\build.py", line 304, in __postinit__
self.assemble()
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\build.py", line 433, in assemble
importTracker.analyze_script(script)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\mf.py", line 589, in analyze_script
return self.analyze_r('__main__')
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\mf.py", line 482, in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\mf.py", line 543, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\mf.py", line 635, in doimport
mod = self._handle_hook(mod, hook)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller
\mf.py", line 651, in _handle_hook
mod = hook.hook(mod)
File "c:\myproject\pyinstaller-pyinstaller-8374463\PyInstaller\hooks
\hook-_tkinter.py", line 83, in hook
tcl_tk = find_tk_win(binaries)
TypeError: find_tk_win() takes no arguments (1 given)

On one of my older machines, I can convert this code to ".exe" without
any problems but I just pulled a new version of pyinstaller on a
different machine, and I get this error. Also: When I check "No
console-Windows only" on my old machine, the executable thats created,
just exits without doing anything it seems. Any ideas on how to fix
that?

Thanks.

Martin Zibricky

unread,
Feb 1, 2012, 5:39:22 AM2/1/12
to pyins...@googlegroups.com
Ram píše v Út 31. 01. 2012 v 19:31 -0800:

> Any ideas on how to fix
> that?
>
> Thanks.

Please provide more details: Python/Pyinstaller/Windows version etc.

Ram

unread,
Feb 1, 2012, 11:01:46 PM2/1/12
to PyInstaller

Python 2.72
pyinstaller version : I tried this : https://github.com/pyinstaller/pyinstaller/zipball/develop
(zip file)
Windows 7 Professional Service Pack 1

Martin Zibricky

unread,
Feb 2, 2012, 6:35:07 AM2/2/12
to pyins...@googlegroups.com
Ram píše v St 01. 02. 2012 v 20:01 -0800:

> Python 2.72
> pyinstaller version : I tried this :
> https://github.com/pyinstaller/pyinstaller/zipball/develop
> (zip file)
> Windows 7 Professional Service Pack 1

What will you get if you run in command prompt:

echo %PATH%

Ram

unread,
Feb 2, 2012, 11:11:15 AM2/2/12
to PyInstaller

C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\JavaFX
\javafx-sdk1.3\
bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.3\emulator\bin;C:
\Python27\Lib\sit
e-packages\PyQt4;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:
\Program Files\C
ommon Files\Microsoft Shared\Windows Live;C:\Python27\Lib\site-packages
\PyQt4\bi
n;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows
\System32\Wi
ndowsPowerShell\v1.0\;C:\Program Files (x86)\Mercurial\;c:\Python27\;c:
\Python27
\Scripts\;C:\Program Files (x86)\gs\gs9.02\bin;

Exact version for pyinstaller was : pyinstaller-pyinstaller-8374463

Exact Error was:

WARNING: library python%s%s required via ctypes not found
INFO: Analyzing C:/cygwin/tmp/blib/resources/pk/pagekite.py
ERROR: lib not found: MSVCR90.dll dependency of c:\Python27\DLLs
\_tkinter.pyd

Thanks,
--Ram

Giovanni Bajo

unread,
Feb 2, 2012, 9:11:19 PM2/2/12
to pyins...@googlegroups.com
Il giorno 02/feb/2012, alle ore 17:11, Ram ha scritto:

> C:\Python27\Lib\site-packages\PyQt4;C:\Program Files (x86)\JavaFX
> \javafx-sdk1.3\
> bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.3\emulator\bin;C:
> \Python27\Lib\sit
> e-packages\PyQt4;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:
> \Program Files\C
> ommon Files\Microsoft Shared\Windows Live;C:\Python27\Lib\site-packages
> \PyQt4\bi
> n;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows
> \System32\Wi
> ndowsPowerShell\v1.0\;C:\Program Files (x86)\Mercurial\;c:\Python27\;c:
> \Python27
> \Scripts\;C:\Program Files (x86)\gs\gs9.02\bin;
>
> Exact version for pyinstaller was : pyinstaller-pyinstaller-8374463
>
> Exact Error was:
>
> WARNING: library python%s%s required via ctypes not found
> INFO: Analyzing C:/cygwin/tmp/blib/resources/pk/pagekite.py
> ERROR: lib not found: MSVCR90.dll dependency of c:\Python27\DLLs
> \_tkinter.pyd


Do you happen to have both a standard Windows Python version *and* a Cygwin Python version, that get mismatched? I can see from the above log that PyInstaller is analyzing packages in cygwin, and it should not if you are using the standard Python distro in c:\Python27.
--
Giovanni Bajo :: ra...@develer.com
Develer S.r.l. :: http://www.develer.com

My Blog: http://giovanni.bajo.it


Ram

unread,
Feb 2, 2012, 10:54:11 PM2/2/12
to PyInstaller

Hi Giovanni,

There is no cygwin python on this machine. Its just that i'm compiling
things in the cygwin\tmp directory:

This is the python that is being used:
Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)] on win32

Thanks,
--Ram.
>  smime.p7s
> 6KViewDownload

Ram

unread,
Feb 6, 2012, 10:30:41 PM2/6/12
to PyInstaller

Any ideas on how to fix my problem?

Hartmut Goebel

unread,
Feb 7, 2012, 2:43:30 AM2/7/12
to pyins...@googlegroups.com
Am 07.02.2012 04:30, schrieb Ram:
> Any ideas on how to fix my problem?

Did you already have a look at
<http://www.pyinstaller.org/wiki/FAQ#IfThingsGoWrong> and followed the
guide there?


>>>> WARNING: library python%s%s required via ctypes not found
>>>> INFO: Analyzing C:/cygwin/tmp/blib/resources/pk/pagekite.py
>>>> ERROR: lib not found: MSVCR90.dll dependency of c:\Python27\DLLs
>>>> \_tkinter.pyd

This looks like your Python setup is mixed up.

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de


Giovanni Bajo

unread,
Feb 7, 2012, 4:21:16 PM2/7/12
to pyins...@googlegroups.com
Il giorno 03/feb/2012, alle ore 04:54, Ram ha scritto:

> Hi Giovanni,
>
> There is no cygwin python on this machine. Its just that i'm compiling
> things in the cygwin\tmp directory:
>
> This is the python that is being used:
> Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
> (Intel)] on win32


Hi Ram,

the MSVCR90.DLL MISSING error seems a regression on git trunk. I've got it in my todo list.

Reply all
Reply to author
Forward
0 new messages