TecoGAN icon indicating copy to clipboard operation
TecoGAN copied to clipboard

ImportError: cannot import name 'clock' from 'time' (unknown location)

Open Ocean47 opened this issue 5 years ago • 2 comments

I get the below error when trying to run the dataPrepare.py script. Any help would be greatly appreciated? I am not sure if there is a conflict in library versions, or something basic most people have installed in their python libs that I am missing, or what it could be?

I feel like I could bash my head against this for days without a hint as to where I should be looking?

C:\Users\hanso\Documents\GitHub\TecoGAN>python3 dataPrepare.py --help Traceback (most recent call last): File "dataPrepare.py", line 6, in from lib.data import video File "C:\Users\hanso\Documents\GitHub\TecoGAN\lib\data\video.py", line 41, in from time import clock ImportError: cannot import name 'clock' from 'time' (unknown location)

Ocean47 avatar Nov 06 '20 01:11 Ocean47

Apparently clock got removed from the time module in python 3.8. You could try to use python 3.7, importing clock from time works for me in that version. In case you still have issues you could have a look at the docker environment I created for the TecoGAN project: https://github.com/tom-doerr/TecoGAN-Docker

tom-doerr avatar Nov 06 '20 01:11 tom-doerr

@tom-doerr What is did they replace clock function within time in python 3.8, was it just poof removed or migrated into something else when they deprecated clock

datatalking avatar Sep 08 '21 16:09 datatalking