Re: pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)

Shaik Saleem Basha <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <CAK8Wpt0thPjbXcfR0VWCh8t1MgDYyAuaLY26M+Es0+DDyo-F4w@mail.gmail.com>
When I downloaded  install python  by default  it installed  32bit version
only so pywin32 also I installed 32bit only
Quicopc library is installed

On Tue, 8 Sep 2020, 22:15 Tim Roberts, <[email protected]> wrote:

> 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, [email protected]
> Providenza & Boekelheide, Inc.
>
>
> _______________________________________________
> python-win32 mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-win32
>

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.