-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
Yea true, a warning would be nice. I just recently found out that graybox
has a 64 bit dll. For the wrapper. We had no time to test it but I think
this might drop the 32 bit constraint.
…On Sat, 7 Jan 2023 at 01:16, James Braza ***@***.***> wrote:
Please see ya-mouse/openopc#22
<ya-mouse/openopc#22>. For reference, I have MatrikonOPC
Simulation Server
<https://www.matrikonopc.com/products/opc-drivers/opc-simulation-server.aspx>
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.
|
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 |
I am working on a new release what I observed on a fresh Win10 install with latest updates:
|
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:
When running with 32-bit Python, it now works fine:
It would be good to document this, and consider warning users of this possibility.
The text was updated successfully, but these errors were encountered: