Mailing List Archive

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC
Zach Hirsch <zhirsch@umich.edu> added the comment:

Without msvc9compiler_stripruntimes.diff, or a patch like it, it doesn't
seem possible to use pywin32 (or other binary extensions) with
Python-2.6+ installed "just for me" (i.e., without the VC90 runtime
installed globally).

Using the python-2.6.1 MSI installed "just for me" and the pywin32-212
installer, I get the following error when trying to import win32api:

Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem.

Removing the manifest from all the .pyd files installed by pywin32
allows me to import win32api without issue.

----------
nosy: +zhirsch

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC [ In reply to ]
johan de taeye <jdetaeye@users.sourceforge.net> added the comment:

Is the report posted in:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/3ec
6af1279a162ca#
also a symptom of the same problem?

Johan

----------
nosy: +jdetaeye

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC [ In reply to ]
Koen van de Sande <koen@tibed.net> added the comment:

@johan: no it is not a symptom of the same problem. The problem you are
having is that the executable which is embedding Python does not have a
manifest. If you add a manifest with a dependency on the VC90 runtimes
to the main executable, then it should work AFAIK.

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC [ In reply to ]
johan de taeye <jdetaeye@users.sourceforge.net> added the comment:

@koen: You're aboslutely right. The issue is solved indeed by adding a
dependency in the manifest.

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com