473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Python win32com com_error: (-2147418113

I'm trying to use a proprietary windows software with COM and win32com.
The result is everytime the error message

com_error: (-2147418113, 'Catastrophic failure', None, None)

I've read this in some e-mails, but can't find the solution and I have
not enough experience with Windows and COM.

Can anybody help ?

This ist the test script.

#--------------------------------------------------------------------------
import sys
from win32com.client import gencache
import win32com.client

if __name__=='__main__':

flag = None
gencache.EnsureModule('{A5FE85B0-D562-11D3-A8E8-00609727A3F3}', 0, 1, 0)
o =
win32com.client.Dispatch('VISIONP400DATACONTROL.Vi sionP400DataControlCtrl.1')

"""
Debug output:
o ==>
<win32com.gen_py.A5FE85B0-... instance at 0x17707056>
o.connectToVisionP400 ==>
<bound method_D....>
"""

try:
flag = o.connectToVisionP400()

"""
Error by function call ==>
Unhandled exception while debugging...

Traceback (most recent call last):
File "S:\Python\DCOM\test.py", line , in ?
flag = o.connectToVisionP400()
File
"C:\Programme\Python\Python2.4\lib\site-packages\win32com\gen_py\A5FE85B0-D562-11D3-A8E8-00609727A3F3x0x1x0.py",
line 60, in connectToVisionP400
return self._oleobj_.InvokeTypes(12, LCID, 1, (11, 0), (),)
com_error: (-2147418113, 'Catastrophic failure', None, None)
"""

except:
flag = "*** - The connection not possible !"

print flag

Regards
gerd
Sep 21 '05 #1
1 9098
Usually this means the COM object has to run in a full ActiveX container.
You can host it in IE, or Pythonwin can act as a container with some effort.
See \pythonwin\pywin\Demos\ocx for some examples of using OCX objects
that require a container.

Roger

"g.franzkowiak" <g.***********@onlinehome.de> wrote in message news:dg*********@online.de...
I'm trying to use a proprietary windows software with COM and win32com.
The result is everytime the error message

com_error: (-2147418113, 'Catastrophic failure', None, None)

I've read this in some e-mails, but can't find the solution and I have
not enough experience with Windows and COM.

Can anybody help ?

This ist the test script.

#--------------------------------------------------------------------------
import sys
from win32com.client import gencache
import win32com.client

if __name__=='__main__':

flag = None
gencache.EnsureModule('{A5FE85B0-D562-11D3-A8E8-00609727A3F3}', 0, 1, 0)
o =
win32com.client.Dispatch('VISIONP400DATACONTROL.Vi sionP400DataControlCtrl.1')

"""
Debug output:
o ==>
<win32com.gen_py.A5FE85B0-... instance at 0x17707056>
o.connectToVisionP400 ==>
<bound method_D....>
"""

try:
flag = o.connectToVisionP400()

"""
Error by function call ==>
Unhandled exception while debugging...

Traceback (most recent call last):
File "S:\Python\DCOM\test.py", line , in ?
flag = o.connectToVisionP400()
File
"C:\Programme\Python\Python2.4\lib\site-packages\win32com\gen_py\A5FE85B0-D562-11D3-A8E8-00609727A3F3x0x1x0.py",
line 60, in connectToVisionP400
return self._oleobj_.InvokeTypes(12, LCID, 1, (11, 0), (),)
com_error: (-2147418113, 'Catastrophic failure', None, None)
"""

except:
flag = "*** - The connection not possible !"

print flag

Regards
gerd



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Sep 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Florian Fredegar Haftmann | last post by:
Hi! I'm working on a tool which helps in testing applications with web-frontends (on Windows) On thing I would like to test ist the occurence of JavaScript errors; the idea is that the test...
1
by: Patrick | last post by:
I am investigating a web-based app wherein I wanted to provide html form frontends to an Excel spreadsheet sitting on a MS Windows server; with each authenticated HTTP user having thier own...
0
by: neblackcat | last post by:
This is a heads-up on a possible memory corruption type of bug in recent and present versions of Python/win32com. I dont know if its general, or specific to using win32com.client to access CDO as...
8
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating...
1
by: koia | last post by:
Hi, I have a problem with adding attributes to a Line in an Excel drawing using the Python win32com interface. From recording in Excel I get the Macro: Sub Makro1()...
0
by: vml | last post by:
I am a newbie in python and com. I am trying to use python and com to access to a software. I had a look in the file .py describing the interface (generated by makepy) and I found some dispatch...
3
by: Ray | last post by:
Hi, I'm working on something with mysql and excel. I'm using python and win32com. All major function works, But I have two problems: 1. the output need to do "auto fit" to make it readable. ...
3
by: vml | last post by:
Hello, I am really new in python scipy win32com and scipy I tried to setup a COM server to interact with vb 6 the pythom COM server is : from win32com.server import exception, register import...
2
by: Ray | last post by:
Hi, I need to use cell's background color. when I record a macro from excel, it shows: Rows("7:7").Select With Selection.Interior .ColorIndex = 8 .Pattern = xlSolid
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.