Python Forum
TurtleWorld module not found
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TurtleWorld module not found
#1
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()
Reply
#2
Try from swampy.TurtleWorld import *

Lewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgraded Python: Module no longer found - for Linux Curbie 8 1,429 Mar-05-2025, 06:01 PM
Last Post: Curbie
Question [SOLVED] Upgraded Python: Module no longer found Winfried 1 1,066 Jan-01-2025, 02:43 PM
Last Post: Larz60+
  Module not found error even though installed NZGeorge 1 4,699 Jul-10-2024, 09:08 AM
Last Post: Larz60+
  pyside6 module not found ForeverNoob 4 5,894 Aug-18-2023, 04:36 PM
Last Post: snippsat
  Module Not Found Error bitoded 4 2,582 Jan-01-2023, 09:08 AM
Last Post: bitoded
  pdfminer package: module isn't found Pavel_47 25 17,002 Sep-18-2022, 08:40 PM
Last Post: Larz60+
  Module not found question sighhhh12 0 2,153 Sep-09-2022, 05:43 AM
Last Post: sighhhh12
  [SOLVED] Tkinter module not found Milan 7 50,187 Aug-05-2022, 09:45 PM
Last Post: woooee
  No module found when I run a main.py tomtom 2 2,800 Jul-20-2022, 09:24 AM
Last Post: tomtom
  No Module found in other directory than source code [SOLVED] AlphaInc 1 3,213 Nov-10-2021, 04:34 PM
Last Post: AlphaInc

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020