using com object written in python from iis/asp

Uwe Schmitt uwe.schmitt at procoders.net
Wed Nov 27 11:07:30 EST 2002


Hi,

I wrote a python script for the implementation of a
com server. If I use a python script as client, everything
is o.k. But if I try to contact the com object from an ASP 
script, I get:

   Python COM Server Internal Error- Fehler '80004002' 

   Unexpected Python Error: exceptions.ImportError: No module named com_planefit 

due to the "--debug" option I get further information:

    Object with win32trace dispatcher created (object=None)
    Traceback (most recent call last):
      File "C:\Python22\Lib\site-packages\win32com\server\dispatcher.py", line 27, in _CreateInstance_
	self.policy._CreateInstance_(clsid, reqIID)
      File "C:\Python22\Lib\site-packages\win32com\server\policy.py", line 199, in _CreateInstance_
	myob = call_func(classSpec)
      File "C:\Python22\Lib\site-packages\win32com\server\policy.py", line 634, in call_func
	return apply(resolve_func(spec), args)
      File "C:\Python22\Lib\site-packages\win32com\server\policy.py", line 623, in resolve_func
	module = _import_module(mname)
      File "C:\Python22\Lib\site-packages\win32com\server\policy.py", line 642, in _import_module
	  __import__(mname)
    ImportError: No module named com_planefit

The COM object is registered as 'PlaneFit', the serverscript is named 'com_planefit.py'.

Can anybody help me ???

Greetings, Uwe


-- 
Dr. rer. nat. Uwe Schmitt      Computer science is no more about Computers,
uwe.schmitt at num.uni-sb.de      than astronomy is about telescopes. (Dijkstra)
http://www.procoders.net           



More information about the Python-list mailing list