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

Problems with pywintypes #7

Open
MattRho92 opened this issue Feb 22, 2019 · 1 comment
Open

Problems with pywintypes #7

MattRho92 opened this issue Feb 22, 2019 · 1 comment

Comments

@MattRho92
Copy link

Hello,
I'm trying to learn how to use this library in python 3.6.4, win10, but this error appears :

Traceback (most recent call last):
  File "C:\Python36\lib\multiprocessing\queues.py", line 234, in _feed
    obj = _ForkingPickler.dumps(obj)
  File "C:\Python36\lib\multiprocessing\reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class 'pywintypes.datetime'>: attribute lookup datetime on pywintypes failed

The code is very simple and runned using PyCharm, I was just following the tutorial to use OpenOPC.

import OpenOPC
opc = OpenOPC.client()
opc.connect('Matrikon.OPC.Simulation.1', 'localhost')
print(opc.read('Random.Int1'))

Help please.

@fnk382
Copy link

fnk382 commented Oct 5, 2019

Trying using...

`import pywintypes

Due to picklingError with datetime

pywintypes.datetime = pywintypes.TimeType`

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

2 participants