Discussion:
[python-win32] Unable to install PyWin32 with Python 2.6.2
Chris Kaynor
2009-07-07 18:17:51 UTC
Permalink
I have an install of Python 2.6.2 and am trying to get a copy of
PyWin32 (version 213) installed under the site-packages folder. The
install process always gives the following error:

Traceback (most recent call last):
  File "<string>", line 601, in <module>
  File "<string>", line 311, in install
  File "<string>", line 149, in LoadSystemModule
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

during the post install scripts. Effectively the same error also
occurs if I just ignore the installer's error and attempt to import
PyWin32.

After digging around, I suspect the problem may be related to the
manifest files embedded into the pyd files, however I have not been
able to find out what the proper manifest files should be (this is
related to issue 4566 for Python).




In addition, I have tried to compile from source, and have
consistently received the error:

error: Unable to find vcvarsall.bat

despite adding the path to this file to the path, and running it from
within the same command prompt. This occurs when I run the command

python setup.py -q build

as well as, just to test it, replacing the build with install. Various
Google searches have turned up nothing related to PyWin32, and little
else besides. Searching the files included with the PyWin32 213 source
release turns up no instances of this file being used.



Any help on getting either of these issues resolved is appreciated.
Chris Kaynor
2009-07-08 16:08:50 UTC
Permalink
This issue was resolved with the release of PyWin32 version 214.

Chris
Post by Chris Kaynor
I have an install of Python 2.6.2 and am trying to get a copy of
PyWin32 (version 213) installed under the site-packages folder. The
  File "<string>", line 601, in <module>
  File "<string>", line 311, in install
  File "<string>", line 149, in LoadSystemModule
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.
during the post install scripts. Effectively the same error also
occurs if I just ignore the installer's error and attempt to import
PyWin32.
After digging around, I suspect the problem may be related to the
manifest files embedded into the pyd files, however I have not been
able to find out what the proper manifest files should be (this is
related to issue 4566 for Python).
In addition, I have tried to compile from source, and have
error: Unable to find vcvarsall.bat
despite adding the path to this file to the path, and running it from
within the same command prompt. This occurs when I run the command
python setup.py -q build
as well as, just to test it, replacing the build with install. Various
Google searches have turned up nothing related to PyWin32, and little
else besides. Searching the files included with the PyWin32 213 source
release turns up no instances of this file being used.
Any help on getting either of these issues resolved is appreciated.
--
Chris
Terry Haran
2009-08-29 00:43:21 UTC
Permalink
Hi Chris:

I'm getting:
error: Unable to find vcvarsall.bat
when running
setup.py install
with pywin32-214
and Python 2.6.2
under
Microsoft Windows XP [Version 5.1.2600]
on a
Panasonic CF-19 Series Toughbook.

Any help would be greatly appreciated.

Thanks,
--Terry
--
Terence (Terry) Haran National Snow & Ice Data Center
***@nsidc.org University of Colorado
voice: 303-492-1847 449 UCB
fax: 303-492-2468 Boulder, CO 80309-0449
Mark Lawrence
2009-08-29 13:14:23 UTC
Permalink
Post by Chris Kaynor
error: Unable to find vcvarsall.bat
when running
setup.py install
with pywin32-214
and Python 2.6.2
under
Microsoft Windows XP [Version 5.1.2600]
on a
Panasonic CF-19 Series Toughbook.
Any help would be greatly appreciated.
Thanks,
--Terry
My work around for this was to edit the distutils msvc9compiler.py file.
I commented out the line vcvarsall = find_vcvarsall(version) in the
function query_vcvarsall and hard coded vcvarsall = r'C:\Program
Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat'. This assumes that
you've got a copy of Visual C++!:)

HTH.
--
Kindest regards.

Mark Lawrence.
Dave Angel
2009-09-30 17:10:20 UTC
Permalink
Post by Chris Kaynor
error: Unable to find vcvarsall.bat
when running
setup.py install
with pywin32-214
and Python 2.6.2
under
Microsoft Windows XP [Version 5.1.2600]
on a
Panasonic CF-19 Series Toughbook.
Any help would be greatly appreciated.
Thanks,
--Terry
vcvarsall.bat is a batch file installed as part of Microsoft C (recent
versions). So presumably you're trying to install pywin32 from C
sources. Do you have a compatible version of MSC?

Have you considered installing pywin32 from binary?
http://sourceforge.net/projects/pywin32/


DaveA

Loading...