Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jamesbraza opened this issue Jan 7, 2023 · 3 comments
Open

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

jamesbraza opened this issue Jan 7, 2023 · 3 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@jamesbraza
Copy link
Contributor

jamesbraza commented Jan 7, 2023

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               │
├───┼───────────────────────────┤
│ 0Matrikon.OPC.Simulation.1 │
└───┴───────────────────────────┘

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

@renzop
Copy link
Collaborator

renzop commented Jan 7, 2023 via email

@eliabieri eliabieri added bug Something isn't working documentation Improvements or additions to documentation labels Jan 17, 2023
@danilNil
Copy link

danilNil commented Aug 11, 2023

Hey @jamesbraza ! I wonder how you managed to run openopc2 in a 32 bit environment. I would be really grateful if you take a look at this issue I got here: #54

BTW I've tried graybox 64 bit dll with no luck

@renzop
Copy link
Collaborator

renzop commented Oct 30, 2023

I am working on a new release what I observed on a fresh Win10 install with latest updates:

  • the gbda.dll from the repository was not possible to install -- only the 64bit dll from graybox worked (even in python32bit)

  • important Python 32bit (did some experiments with python 64 bit bit i get somw weird windows errors... (under investigation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants