alexjc / shadertoy-render

Render a ShaderToy script directly to a video file.
BSD 3-Clause "New" or "Revised" License
238 stars 39 forks source link

Module 'time' has no attribute 'clock' #15

Open AjaniBilby opened 2 years ago

AjaniBilby commented 2 years ago

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)

danilw commented 2 years ago

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

Indhar01 commented 2 years ago

upgrade your sqlalchemy pip install sqlalchemy --upgrade

yuyou commented 2 years ago

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