Questions tagged [swampy]

Swampy is a suite of Python programs for use with Think Python, Python for Software Design, and The Little Book of Semaphores.

Swampy is a suite of Python programs for use with Think Python, Python for Software Design, and The Little Book of Semaphores.

It was written by Allen Downey and is available under the GNU General Public License (GPL).

Swampy includes these components:

AmoebaWorld

Provides a fun environment to practice writing Python expressions and to introduce object-oriented programming.

TurtleWorld

An implementation of turtle graphics used to teach procedural interface design and object-oriented programming.

TurmiteWorld

Allows students to experiment with cellular automata and finite state machines, including Langton's Ant. (The misspelling of "termite" is deliberate; it is a tribute to Alan Turing).

Sync

A simulator that demonstrates the execution of multithreaded programs that interact through Semaphores. Sync is designed to run the examples and solutions from The Little Book of Semaphores.

Lumpy

Lumpy stands for "UML in Python". It generates UML class diagrams and UML object diagrams from a Python program.

source: http://www.greenteapress.com/thinkpython/swampy/

23 questions
4
votes
6 answers

Installing the Swampy Python module on Windows

I am trying to install the Swampy module on Python, but there is a lot that is unclear in the instructions given on the site and the documentation. I have put the Swampy folder into the site-packages folder of Python 2.7.1, but I don't know how to…
vrfjghrdkrdji
  • 41
  • 1
  • 2
2
votes
1 answer

Python Turtle AttributeError: 'Turtle' object has no attribute 'position'

I have the following code to play with turtle within turtleworld: >>> from swampy.TurtleWorld import * >>> world = TurtleWorld() >>> bob = Turtle() >>> fd(bob, 100) >>> bob.position() >>> bob.reset() There is no issue with executing the fd(bob,…
halny
  • 63
  • 6
1
vote
1 answer

Help installing the Swampy python module?

I need to install swampy for the book Think Python. I tried the documentation, but I can't figure it out. I've been trying for a few days and can't continue the book until I install it. I use Ubuntu.
neil
  • 203
  • 1
  • 4
  • 14
1
vote
1 answer

Install Swampy module in Python 3.5.0 (which is installed through Anaconda)

I have installed Python 3 using Anaconda and I need to install the Swampy module. Could you please advice me on how to proceed?
1
vote
1 answer

Installing Swampy for Python 2.7 Help Please

I've been trying to do this for 3 hours. I have windows. I'm using this official guide: So for step 2 for the windows installation for Python 2: it says: "To see if you have Tkinter, launch python; then at the Python prompt, type >>> import…
PythonNoobile
  • 65
  • 1
  • 1
  • 9
1
vote
2 answers

Trying to install Swampy for Python.

So I'm following the 'Think Python' PDF guide and this is my first real hurdle. I tried to follow a guide to install it but it's completely over my head. I know this is vague but if anyone could guide me through it like I'm a pensioner I'd be…
user2925800
  • 105
  • 3
  • 11
1
vote
1 answer

Trouble connecting Eclipse, tkinter, Swampy and TurtleWorld

I am trying to perform Think Python's turtle-related programs in Eclipse but I always seem to have one error bugging me. It seems like I have installed Eclipse, Python 2.6 and Python 3.3 correctly in my computer, and linked them to Eclipse via…
kikomello
  • 47
  • 1
  • 7
1
vote
3 answers

No module error when module is installed

I've been using Think Python to learn programming over the last few days. Today I got to chapter 4 when it starts talking about needing Swampy, a package (correct term?) used to teach, in this chapter, interface design. So, getting to my issue, the…
Whonut
  • 288
  • 2
  • 12
0
votes
2 answers

How do I fix “no model named ‘Gui’” error?

I'm trying to learn from Think Python, and have gotten to the point where I need TurtleWorld. Swampy has been successfully imported, but but after following the steps needed, I still cannot import TurtleWorld, getting a 'ModuleNotFoundError: No…
Resident
  • 1
  • 2
0
votes
1 answer

Installing Swampy on a Mac (OSX) using preinstalled Python version 2.6

I have the same exact problem outlined in this question: Mac Swampy (Python learning module) install But I still can't seem to finds simple enough instructions to install and run Swampy on my mac. I have absolutely no background in computer…
AJ Midha
  • 1
  • 1
0
votes
1 answer

How do I easy_install Swampy?

Following the tutorial on python.org I tried to install Swampy in the following ways: easy_install -f http://www.greenteapress.com/thinkpython/swampy/install.html easy_install…
0
votes
0 answers

How to install Swampy in Atom?

Since a week ago I am learning Python with the O'Reilly book for beginners. Sadly I am totally stuck at the beginning of chapter 4. Where I have to install the swampy package. I am using the atom text editor to code and Python 3.x. I have no idea…
HavanaClub
  • 11
  • 2
0
votes
0 answers

Python Tkinter Tclerror, circle.config()

This is exercise 19.3 from Think Python of Allen Downey. The code is suppose to get the color of the entry widget and change the background color of the circle. I have no idea why after clicking the button the code returns an error Tclerror:…
halny
  • 63
  • 6
0
votes
1 answer

ImportError: No module named Tkinter when importing swampy.TurtleWorld

I am using Python 3.4 and following along the book "Think Python: how to think like a computer scientist". I actually figured out this issue a week ago, but saved over the original code when it failed to run like it did last week. Right now I…
assutu
  • 35
  • 2
  • 7
0
votes
2 answers

I should've made an object, but when i try to control my object it lacks Attributes? Swampy

I have been following the instructions from my "think python" book (the version for 3.x), and I have done everything that the book told me, but I still get a weird error in one of the exercises? Here's the problem: I'm supposed to play around with…
1
2