Skip to content

Bug: 'Class not registered' when not using 32-bit PythonΒ #39

@jamesbraza

Description

@jamesbraza

Please see ya-mouse/openopc#22 for a 32-bit Python vs 64-bit Python issue. For reference, I have MatrikonOPC Simulation Server installed and running.

I had hoped that openopc2 didn't require a 32-bit Python, but when trying to use the OPC Gateway Service with 64-bit Python I get the same error message:

>>> python -m openopc2 list-servers
...
OPCError: (OPCError(...), 'Dispatch: (-2147221164, \'Class not registered\', None, None)
opc_class:"Matrikon.OPC.Automation"')

When running with 32-bit Python, it now works fine:

>>> python -m openopc2 list-servers
    Available OPC DA servers
β”Œβ”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ # β”‚ Server Name               β”‚
β”œβ”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 0 β”‚ Matrikon.OPC.Simulation.1 β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

It would be good to document this, and consider warning users of this possibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions