
Hi, I am using boost python for one of my application. It works fine in a machine where visual studio installed. If visual studio removed then app will through a error ""ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.". I have searched through internet, but I am not able find a proper solution for this. However i have installed 2008 visual studio redistribution package. Also I resolved dependency problem which is shown by dependency walker. Any help regarding this issue greatly appreciated. Thanks, Guru

On 2012-02-14 09:17, Guruswamy B M wrote:
I am using boost python for one of my application. It works fine in a machine where visual studio installed. If visual studio removed then app will through a error ""ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.".
Are you sure that installed redistributable package is the same version as manifest embedded in your application? You could try to extract manifest and check its version (using for example mt tool from Microsoft Platform SDK for Windows Server). Regards, Bogdan

Hi, Thanks for the reply, I am new to the visual studio and don't know about the manifest-thing. But any how as per your suggestion i have figured out like below. 1. Boost python dll named as "boost_python-vc90-mt-gd-1_48.dll" (I think name itself explains the version). 2. I dont know how to extract manifest, as your example I ran MT.exe in Microsoft Platform SDK, but I couldn't get any thing from this. 3. I have opened my .pyd files in notepad and searched for ".dll" from the file, and ensured that all dll using was in respective folder. 4. When I opened same .pyd file in dependency walker, it also through an error like below, which is the same error when I tried to import .pyd file in python. "Error: The Side-by-Side configuration information for "c:\python27\scripts\Example_EXT.PYD" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\python27\scripts\BOOST_PYTHON-VC90-MT-GD-1_48.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module." Please suggest me if anything more I need to check. Thanks in adavnce, Guru On Tue, Feb 14, 2012 at 8:10 PM, Bogdan Slusarczyk < bogdan.slusarczyk@aldec.com.pl> wrote:
On 2012-02-14 09:17, Guruswamy B M wrote:
I am using boost python for one of my application. It works fine in a machine where visual studio installed. If visual studio removed then app will through a error ""ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.".
Are you sure that installed redistributable package is the same version as manifest embedded in your application? You could try to extract manifest and check its version (using for example mt tool from Microsoft Platform SDK for Windows Server).
Regards, Bogdan
______________________________**_________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/**mailman/listinfo.cgi/boost-**usershttp://lists.boost.org/mailman/listinfo.cgi/boost-users

Guruswamy B M wrote
1. Boost python dll named as "boost_python-vc90-mt-gd-1_48.dll" (I think name itself explains the version).
<snip> 4. When I opened same .pyd file in dependency walker, it also through an error like below, which is the same error when I tried to import .pyd file in python. "Error: The Side-by-Side configuration information for "c:\python27\scripts\Example_EXT.PYD" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Error: The Side-by-Side configuration information for "c:\python27\scripts\BOOST_PYTHON-VC90-MT-GD-1_48.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."
Please suggest me if anything more I need to check.
It looks to me as though you are trying to use debug version of boost python dll (the -gd in the name) The MS VC90 redist package only installs the release versions of the crt so these are missing on the target computer. I'd suggest either building your module in release or installing the debug versions of the crt library on the target machine (Installing VStudio does the trick - but it is possible to just copy the appropriate dll's (as long as you aren't breaking redistribution/licensing rules) a quick hunt around MSDN should find loads of information on how to do this.) HTH Alex -- View this message in context: http://boost.2283326.n4.nabble.com/Dependency-Issue-tp4387097p4391498.html Sent from the Boost - Users mailing list archive at Nabble.com.
participants (3)
-
alex_perry
-
Bogdan Slusarczyk
-
Guruswamy B M