Python Forum
TurtleWorld module not found - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: TurtleWorld module not found (/thread-10523.html)



TurtleWorld module not found - sangurocactus - May-23-2018

Hello-I installed Swampy 2.1.5 on Python 2.7.15 correctly. However, when I try to run the code below, I keep getting an error message "ImportError: No module named TurtleWorld". Can someone please help me? Thank you.

from TurtleWorld import *

world = TurtleWorld()
bob = Turtle()

def square(t):
    for i in range(4):
        fd(t, 100)
        lt(t)

square(bob)
wait_for_user()



RE: TurtleWorld module not found - ljmetzger - May-26-2018

Try from swampy.TurtleWorld import *

Lewis