Chomper Stomping
jQuery/JavaScript/CSS 3/HTML 5, Java/PHP/Python/ActionScript, Git, Chrome/Firefox Extensions, Wordpress/Game/iPhone App Development and other random techie tidbits I've collected



Software

September 15, 2008

SPE (Python IDE) for Windows

More articles by »
Written by: Christopher McCulloh
Tags: , , , , ,


I’ve been playing with Python this weekend. Currently I’m rebuilding “Clink” in Python instead of finishing it in Flash (It really needs AS 3.0 to do properly, and I only have access to 2.0).

The book I am reading (Game Programming: The L Line, The Express Line to Learning) recommeds the SPE (Stani’s Python Editor) IDE for creating Python programs. However, the book doesn’t really say how to get the program. Stani (the IDE’s author) doesn’t appear to have a web page with a “download” link and instructions; so here’s a download link with instructions from me instead (this is for installing on Windows):

 

Step 1: Download & Install wxPython (NOT wxWidgets!!!!)

The book states that you should download and install wxWidgets. It turns out, you need wxPython instead, which you can get here:

http://www.wxpython.org/download.php

Scroll down and get the version that matches your version of Python. Just double click the downloaded file, and it basically installs itself. I won’t give you any advice on what boxes to check at the end of the install, because I don’t remember what they said, and to be honest, I arbitrarily made my choices having no clue as to why I was choosing what I chose (I unchecked the top one, and left the bottom two checked).

Step 2: Download and Install SPE

Go to http://developer.berlios.de/project/showfiles.php?group_id=4161

Get this file: SPE-0.8.4.c-wx2.6.1.0-no_setup.zip

Unzip it to somewhere you will remember (I put mine in Program Files) but don’t rename the folder anything other than “_spe”.

Go inside the _spe directory you just created and double click SPE.py

At this point your shiny new Python IDE should start up. If not, sorry… I don’t know why it didn’t work. Make a shortcut to the editor on your desktop for easy opening (or start menu, or quicklaunch toolbar).

Have fun!



About the Author

Christopher McCulloh
E-Commerce developer at Finish Line Co-Author of HTML, XHTML and CSS All-in-one Desk Reference for Dummies Graduated from IU with a Bachelors of Media Arts and Science and a Certificate in Applied Computer Science. Tech Editor for Building Facebook Applications for Dummies and Building Websites All-in-one for Dummies 2nd Edition. Creator and maintainer of the Status-bar Calculator Firefox Extension Three years professional experience in Java E-Commerce Development and four years professional experience with PHP for a combined total of seven years professional JavaScript/HTML/CSS experience




 
 

 
mysqlerror

WP phpBB Bridge: Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given

Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in wp-content/plugins/wp-phpbb-bridge/inc/widgets/wpbb_topics_widget.php on line 149 This is an error caused by the fact that the WP phpBB Bridge pl...
by Christopher McCulloh
0

 
 
 

Events Calendar Pro Nav Formatting Messed up on Empty Calendar

The Events Calendar Pro (from http://tri.be/) has a few problems. If you are trying to figure out why a calendar with no events in that month has completely screwed up header navigation, just put this line of code inside of tab...
by Christopher McCulloh
3

 
 
blue-xl

WordPress Settings API – Adding Options to Existing Page

Adding new options to an existing page in the dashboard in wordpress can be maddening. I’ve literally spent 15+ hours dealing with this horrible API at this point. To the point where I wrote two different wrappers for it....
by Christopher McCulloh
0

 

 
octocat

Introducing GitScripts

GitScripts is a project that attempts to make Git user friendly. I have been working on it for almost a year now. When we implemented Git in my office, we were having a really hard time using it. We loved the flexibility of the...
by Christopher McCulloh
1

 
 
sshlogo

Using two different identity files with ssh for rsa remote authentication keys

I have two different servers I need to connect to, each requiring two different types of remote authentication keys. One requires rsa, the other dss. So I had to make and use two different remote authentication keys, but was un...
by Christopher McCulloh
0

 




13 Comments


  1. You only need to install wxpython, wxwidgets is not required.


  2. Great, thanks for the heads up Stani! I’ve edited the post to reflect this…


  3. [...] Good info about the SPE download and install process: http://blog.chomperstomp.com/?p=165 Tags: IDE, Python, SPE This entry was posted on Sunday, November 30th, 2008 at 5:16 pm and is [...]


  4. Yes, you are correct. I’ve made that correction for the next edition, but the book has not sold as well as my other works, so I don’t know when the new version will be available. Please do let me know if you find any other issues.

    I enjoy your blog…

    -Andy (Author – Game Programming L Line)


  5. Andy, thanks for the kind remarks!

    I’ll be sure to let you know if I see anything else like this.

    I look forward to picking up the updated copy whenever it does come out…


  6. dutch

    Cant get SPE running on windows xp
    all I want is an editor to use while learning python (I know there is IDLE, but I hear people generally use something more complete like SPE, so Im just starting off that way).

    so installing and getting it to run…Some trick? I let python and spe go where they wanted to. I did not mess with it.

    First, I downloaded python:
    Python 2.6.2 Windows installer (Windows binary — does not include source)
    From: http://www.python.org/download/

    Then I (finally) found SPE for windows. I say ‘finally’ because the download link is in a really sucky place; way down on the right side where most people expect to find ads. It SHOULD be right at the top.

    Download Archive
    where I found and downloaded:
    SPE-0.8.3.c-wx2.6.1.0-py24.exe 1293196 111475 i386 .exe (32-bit Windows)

    After finding some sort of help (here) I had to do a search for a _spe directory, where I double clicked SPE.py…….AND NOTHING HAPPENED.

    Help.

    ~david


  7. Prasad

    Thanks a lot.You have no idea how much this blog helped me.
    have you posted any other useful blogs like this?


  8. This is rad. Great work!


  9. Surabhi

    Thnx fr d tutorial ….
    phew !!! finally gt spe wrkin ..


  10. chripsy

    can anyone give me free pdf version of this book…i cant find it here in albania ?


  11. troy

    Don’t forget to mention the need to first install python… at this point in time, not v3.
    Troy.
    #


  12. anonymous

    SPE wont start up… when i double click it it stars a sort of initialization process and then does nothing plz help…


  13. Robert

    Thank you Christopher for your little helpfully guide. I had also the effect, that SPE would not start. So i opened the console, move into the SPE-directory and typed the following command:
    python SPE.py --debug > debug.txt 2>&1
    Then i opened the debug.txt and could read:
    SPE path error: the folder of SPE.py should be called '_spe'!
    (Maybe you renamed it to 'spe', please rename it back to '_spe'.)

    So i rename the folder back to _spe and SPE runs.



Leave a Reply

Your email address will not be published. Required fields are marked *

*


× 6 = forty two

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>