469,944 Members | 2,326 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,944 developers. It's quick & easy.

Problem embedding the Python interpreter and importing win32 extensions

I have been playing around with this issue for a while and seen some previous posting trying to address the problem but I haven't seen any answers to the problem so I am reposting it in my quest for a solution.

I am using python 2.2.3, because I am using some dSpace software (controldesk/automationdesk) that is based upon that version of python. I have some pre-compiled python modules that come with the dspace applications. I am pretty sure that those modules use win32com or pythoncom. I want to use those modules from a C/C++ application or DLL via an embedded interpreter. I can make it work, but it only works once. I get an error trying to import those modules again, even after uninitializing the interpreter (Py_Initialize) and re-initializing it (Py_Uninitialize). I thought may be using a new sub-interpreter would help but it doesn't so now I have no idea what I could try. Any ideas?
Jan 26 '07 #1
0 1043

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by David McNab | last post: by
23 posts views Thread by Robey Holderith | last post: by
8 posts views Thread by Thomas Bartkus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.