OLE Error during dispatch
Alexander Urbina <[email protected]> Tue, 13 Feb 2024 21:20:51 -0600
| Newsgroups | gmane.comp.python.windows |
|---|---|
| Message-ID | <CAK-c_5cfG0jYKUa8zxBSjGyKcx0cM536HsSc9FMz+dqy+cvNiA@mail.gmail.com> |
--===============8389958621529473977==
Content-Type: multipart/alternative; boundary="000000000000174d8b06114f009f"
--000000000000174d8b06114f009f
Content-Type: text/plain; charset="UTF-8"
Hi All,
So I'm currently having an issue with pywin32, I keep getting this OLE
error:
Error: (-2146233036, 'OLE error 0x80131534', None, None), is there anyone
who is familiar with how to solve this issue or knows what the root cause
is? I'm trying to connect to an application called INCA from ETAS but I
keep getting this error. Any help would be appreciated thanks!
Best,
A.U
import win32com.client
import os
import sys
def start_inca_measurement():
try:
# Create a COM object
inca_app = win32com.client.Dispatch("Inca.Inca.7.4")
--000000000000174d8b06114f009f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi All,<div><br></div><div>So I'm currently having an =
issue with pywin32, I keep getting this OLE error:</div><div>Error: (-21462=
33036, 'OLE error 0x80131534', None, None), is there anyone who is =
familiar with how to solve this issue or knows what the root cause is? I=
9;m trying to connect to an application called INCA from ETAS but I keep ge=
tting this error. Any help would be appreciated thanks!<br></div><div><br><=
/div><div>Best,</div><div>A.U</div><div><br></div><div><div style=3D"color:=
rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"=
Courier New",monospace;font-size:14px;line-height:19px;white-space:pre=
"><div><span style=3D"color:rgb(197,134,192)">import</span> <span style=3D"=
color:rgb(78,201,176)">win32com</span>.<span style=3D"color:rgb(78,201,176)=
">client</span></div><div><span style=3D"color:rgb(197,134,192)">import</sp=
an> <span style=3D"color:rgb(78,201,176)">os</span></div><div><span style=
=3D"color:rgb(197,134,192)">import</span> <span style=3D"color:rgb(78,201,1=
76)">sys</span></div><br><div><span style=3D"color:rgb(86,156,214)">def</sp=
an> <span style=3D"color:rgb(220,220,170)">start_inca_measurement</span>():=
</div><div>=C2=A0 =C2=A0 <span style=3D"color:rgb(197,134,192)">try</span>:=
</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 <span style=3D"color:rgb(106,153,85)=
"># Create a COM object </span></div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 <span=
style=3D"color:rgb(156,220,254)">inca_app</span> =3D <span style=3D"color:=
rgb(78,201,176)">win32com</span>.<span style=3D"color:rgb(78,201,176)">clie=
nt</span>.<span style=3D"color:rgb(220,220,170)">Dispatch</span>(<span styl=
e=3D"color:rgb(206,145,120)">"Inca.Inca.7.4"</span>)</div></div><=
/div></div>
--000000000000174d8b06114f009f--
--===============8389958621529473977==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
--===============8389958621529473977==--