Error importing turtle and tkinter

Hi.

I want to use turtle.py and I get this error.

Traceback (most recent call last):

  • File “<blender_console>”, line 1, in *
  • File “C:\Program Files\Blender Foundation\Blender\2.80\python\lib\turtle.py”, line 107, in *
  • import tkinter as TK*
  • File “C:\Program Files\Blender Foundation\Blender\2.80\python\lib\tkinter_init_.py”, line 36, in *
  • import _tkinter # If this fails your Python may not be configured for Tk*
    ModuleNotFoundError: No module named ‘_tkinter’

I’m newbie with python so not sure what it’s happening. I read when searching for a solution both were disabled by Blender in previous versions not sure if it’s the same problem.

Thanks

It doesn’t look like tkinter is included in Blenders python libs.
If you’re trying to learn Python using the turtle module, you should be using a system version of Python, not Blender’s.

Well, maybe turtle isn’t the only solution. What I want is my object to follow a path generated by a Python function (spiral) and the only way I found is using turtle but maybe exists another

I highly doubt turtle is a solution.

To have an object follow a path you’ve generated through python, you should write the path information to a curve, then use a follow path constraint on the object.

Ok, Ben, thanks.

you should write the path information to a curve

Too advanced for me, I’m afraid