[python-win32] 'import win32com' fails from within an embedded interpreter

quadric at primenet.com quadric at primenet.com
Fri Jan 28 22:50:33 CET 2005


I'm hoping someone can give me some advice, or point me in a helpful direction.

I've embedded python 2.4 within an application that needs to connect with 
MS Excel.
I've written the python code to communicate with Excel and tested it from 
the python
command line interpreter.  It works great!  However, when I attempt to 
import win32com
from within the embedded interpreter I get the following:

"Fatal Python error: Can not setup interpreter state, as current state is 
invalid"


The python startup file that executes the 'import win32com' code is 
successfully executing
lots of other code including imports of other site-packages.

Can anyone give me an idea as to what I might do to solve this dilemma ?


Thanks for your help.






More information about the Python-win32 mailing list