Strange manifest issues with embedded python interpreter

Hello again, I am using the lxml binaries for Windows 7 via easy_install directions on the website. Standalone version When i import lxml, etree via python.exe, everything works ok. it seems the lxml was built against msvc90 runtime library (c Runtime libs). Embedded version I have been embedding the python interpreter in the past in a c++ application developed in VS2010. When I try to run this, it fails when it attempts to load the etree.pyd with the Err R6034. http://msdn.microsoft.com/en-us/library/ms235560%28v=VS.90%29.aspx I think it fails more exactly when trying to load the wrong run time msvc90. dll which is laying next to my exe. This is the manifest info embedded in the etree.pyd binary <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel> </requestedPrivileges> </security> </trustInfo> <dependency> </dependency> </assembly> On renaming this to dll and editing via studio so that there is no manifest resource in the binary but just padding, it starts to work in the embedded environment. Even though I have the solution, I still did not understand what the problem is in my case. Do you'll have a manifest policy? Also i noticed the usual pyd in the python distribution have no manifest info embedded in them. Also since I would prefer releasing only one set of c runtime redistributibles (not msvc90 for etree.pyd and msvc100 for the rest of my app), is it possible to get access to a vcproj/vcxproj so that i could generate my own pyds? Best Regards and many thanks for your Library, Rohan
participants (1)
-
Rohan Dsa