opcua-client-gui icon indicating copy to clipboard operation
opcua-client-gui copied to clipboard

module 'time' has no attribute 'clock' in Python 3.8

Open VyachL84 opened this issue 5 years ago • 1 comments

can not start opcua-client on windows with python 3.8

error: ................... from . import ptime File "c:\users\vlazarev\appdata\local\programs\python\python38-32\lib\site-packages\pyqtgraph\ptime.py", line 24, in cstart = systime.clock() ### Required to start the clock in windows AttributeError: module 'time' has no attribute 'clock'

I think that here some info about this error: https://stackoverflow.com/questions/58569361/attributeerror-module-time-has-no-attribute-clock-in-python-3-8

VyachL84 avatar Mar 10 '20 09:03 VyachL84

had the same problem, solved it the "dirty way" by editing ptime.py, replacing systime.clock() with systime.perf_counter() on lines 16 and 24 since ptime.py won't work with Python 3.8 anyway as it is now

tlitguy avatar May 25 '20 13:05 tlitguy