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

opc.read() line killing and restating the kernel #15

Open
kranthiakssy opened this issue Jun 11, 2020 · 3 comments
Open

opc.read() line killing and restating the kernel #15

kranthiakssy opened this issue Jun 11, 2020 · 3 comments

Comments

@kranthiakssy
Copy link

I got stuck up with small issue while using openOPC.
I have installed python 3.8.3 on windows 10 64 bit system.
Installed OpenOPC-Python3x through pip install.
Running Matrikon OPC simulation server and OPC explorer for data simulation.

While running the following code, I'm able to connect with Matrikon OPC server, but when I try to read/write the data, kernel is restarting and I'm not able to get any data.

import OpenOPC
opc = OpenOPC.client()
print(opc.servers())
opc.connect('Matrikon.OPC.Simulation.1')
print(opc['Random.Real8'])
opc.close()

Kindly help me to get out of this issue.
I also tried with different IDEs (Jupyter, Spyder, IDLE), but same result.

@qqq89513
Copy link

You should use 32 bit version of python.
And then you will get another error like this

_pickle.PicklingError: Can't pickle : attribute lookup datetime on pywintypes failed.

This link solves above error.

@kranthiakssy
Copy link
Author

@qqq89513 Thanks for the reply. I'll try the same.

@sj0n
Copy link

sj0n commented Oct 14, 2020

I suggest closing this issue because @qqq89513 's solution works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants