wonderworks-software/PyFlow

`clock` is depricated and doesn't exist in python 3.8

mtst99 opened this issue · 4 comments

clock is deprecated and doesn't exist in Python 3.8 so I get this error.

C:\Users\mtst\Documents\softwares\PyFlow-master
λ pyflow
Traceback (most recent call last):
  File "C:\Users\mtst\Documents\softwares\PyFlow-master\pyflow.py", line 17, in <module>
    from PyFlow.App import PyFlow
  File "C:\Users\mtst\Documents\softwares\PyFlow-master\PyFlow\App.py", line 23, in <module>
    from time import clock
ImportError: cannot import name 'clock' from 'time' (unknown location)

The same issue discussed here: PyTables/PyTables#744

3.8 is not yet supported. Thank you for submission, will look into it later

Relates to this issue: #73

FreeCAD is developing an add-on using PyFlow.

When this issue popped up, it seems the solution is simply replacing time.clock() with time.process_time(). It doesn't seem like a difficult change, and it seems process_time is available since Python 3.3.

https://stackoverflow.com/a/58569410

Closed in a693d95