[python-win32] pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Tim Roberts
timr at probo.com
Tue Sep 8 12:36:00 EDT 2020
Shaik Saleem Basha wrote:
>
> Hi,
>
> I’m using python 3.8.5 32 bit and also I have installed pywin32 by
> this command pip install pywin32 but when I execute my coed i’m
> getting the following error pywintypes.com_error: (-2147221005,
> 'Invalid class string', None, None)
>
> My code :
>
> import win32com.client
>
> client = win32com.client.Dispatch('OpcLabs.EasyOpc.DataAccess.EasyDAClient')
>
> value = client.ReadItemValue('','OPCLabs.KitServer.2', 'Demo.Single')
>
> print('value:',value)
>
The most obvious question, of course, is do you actually have the
QuickOPC .NET library installed?
Why did you choose the 32-bit Python, instead of the 64-bit Python?
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3389 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-win32/attachments/20200908/b3bfc855/attachment.bin>
More information about the python-win32
mailing list