shadertoy-render icon indicating copy to clipboard operation
shadertoy-render copied to clipboard

Module 'time' has no attribute 'clock'

Open AjaniBilby opened this issue 3 years ago • 3 comments

Ran the below command to get an unusual error that appears to have nothing to do with my shader or command arguments.

python shadertoy-render.py "U:\Documents\My Projects\Programming\Visuals\Shaders\boundry.shader" --output out.mp4 --size 1920x1080 --duration 10
Traceback (most recent call last):
  File "shadertoy-render.py", line 590, in <module>
    canvas = RenderingCanvas(glsl_shader,
  File "shadertoy-render.py", line 144, in __init__
    clock = time.clock()
AttributeError: module 'time' has no attribute 'clock'

For reference here is a link to the shader being rendered (https://www.shadertoy.com/view/NsGSR3)

AjaniBilby avatar Oct 23 '21 06:10 AjaniBilby

try my fork of this script, it updated to python 3 https://github.com/danilw/shadertoy-to-video-with-FBO

danilw avatar Dec 04 '21 21:12 danilw

upgrade your sqlalchemy pip install sqlalchemy --upgrade

Indhar01 avatar Jan 22 '22 05:01 Indhar01

need to change the "time.clock()" to "time.process_time()"

yuyou avatar Mar 17 '22 11:03 yuyou