We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,916 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

ActivePython 2.7 COM Server Manifest

This is my first post and my first experience with Python. My environment is Windows XP/Win7. I have installed ActivePython 2.7, extensions and other packages and run many test scripts. I was especially interested that a .py file could include code to self-register as a COM object, and according to docs could be accessible with CreateObject() in scripting languages that support COM.

I ran and self-registered a basic Hello World script. But trying to access it with CreateObject() in VBA or other scripting code I get the error that the C libraries could not load which I tracked down to the issue that Python binaries are compiled in Visual Studio 2008 and require the VC90.CRT manifest in the calling app.

Probably I read the docs wrong, but how do I get around this issue as I am not calling the Python COM object with an exe that has the manifest embedded.

BTW: If I include the Python code in a .wsc file I can use GetObject().

This is a transitional step as I would be moving from current apps scripted in other languages to running 100% from Python (if possible).

TIA. appreciate any response and directions.

1
Contributor
2
Replies
21 Hours
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
stan_l
Newbie Poster
23 posts since Apr 2011
Reputation Points: 14
Solved Threads: 0
Skill Endorsements: 0

I guess this can be marked solved. I figured it out.

stan_l
Newbie Poster
23 posts since Apr 2011
Reputation Points: 14
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 2 Years Ago

Oh, as for the solution. After installing ActivePython I installed a vc80.crt package the and ran a script that included

import msvcp

This set of C++ runtimes requires the manifest. After uninstalling and removing that line everything worked fine with the runtimes included with ActivePython. Just getting my feet wet.

stan_l
Newbie Poster
23 posts since Apr 2011
Reputation Points: 14
Solved Threads: 0
Skill Endorsements: 0

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0562 seconds using 2.65MB