[Python] Sketchpy returning NameError: name 'draw' is not defined

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    So I want to draw an image and draw it with Turtle but I'm not sure how to command the Turtle to draw the image I've tried using sketchpy after following some tutorials but it returns an error

    from sketchpy import canvas
    obj=canvas.sketch_from_image('file:///C:/Users/aryan_mukhi/Downloads/32fd871166ae8debb1f848664365963f_adobe_express.svg')

    obj = draw(threshold=127)


    NameError: name 'draw' is not defined


    I've searched google but since sketchpy is a small library couldn't find any info on how to solve it I checked their website apparently the draw function is part of the sketchpy package, however since it's undefined can anyone suggest any alternatives

    Continue reading...

Compartilhe esta Página