New Blender Python Editor now also runs on Mac

Unhappy with Blenders text editor to write Python scripts? This Python IDE can run inside and outside Blender. Open the spe.blend file and press Alt+P. Spe has a Blender browser which can show all objects and modules in hierarchical tree control. Spe runs stable under Windows and Linux. Starting from this release SPE works on Mac as well, although there might be still some small issues. Copy the blender script “spe_blender.py” to “.blender/scripts” to register spe in Blender script menu.

Spe is a stable, full-featured python IDE with auto-indentation, auto completion, call tips, syntax coloring, syntax highlighting, class explorer, source index, auto todo list, sticky notes, integrated pycrust shell, python file browser, recent file browser, drag&drop, context help, … Special is its blender support with a blender 3d object browser and its ability to run interactively inside blender. Spe ships with wxGlade (gui designer), PyChecker (source code doctor) and Kiki (regular expression console). Spe is extensible with wxGlade.

:Links:
- Homepage: http://spe.pycs.net
- Website: http://projects.blender.org/projects/spe/
- Screenshots: http://spe.pycs.net/pictures/index.html
- Forum: http://projects.blender.org/forum/?group_id=30
- RSS feed: http://spe.pycs.net/weblog/rss.xml
- Author: http://www.stani.be

I’m happy to announce the first SPE release aimed for the Mac Os X platform.
There might be still some minor issues, but if reported they might be fixed
soon. All mac feedback is welcome. This release was possible by Xavier
Nora who offered me access to his Mac through VNC. If SPE doesn’t startup
on your Mac, probably your wxPython version is too old.

Now SPE also has real built-in support for encoding, so SPE can now deal
with the most strange languages in the world. If the encoding is defined in
the file it will appear in the sidebar.

:New features:
- encoding
- toolBar for Mac OS X
- blender script spe_blender.py to register spe in Blender script menu (copy to .blender/scripts)

:Bug fixes:
- new icons

:Requirements:

  • full python 2.3+
  • wxpython 2.5.2.8+
  • optional blender 2.35

:Contributors:

:Donations (thanks!):

  • Oliver Tomic

:Batteries included:

  • Kiki:
    Regular Expression (regex) console. For more info:
    http://project5.tk
  • PyChecker:
    PyChecker is a tool for finding bugs in python source code. It
    finds problems that are typically caught by a compiler for
    less dynamic languages, like C and C++. It is similar to lint.
    For more info: http://pychecker.sourceforge.net
  • wxGlade:
    wxGlade is a GUI designer written in Python with the
    popular GUI toolkit wxPython, that helps you create
    wxWindows/wxPython user interfaces. As you can guess by the
    name, its model is Glade, the famous GTK+/GNOME GUI builder,
    with which wxGlade shares the philosophy and the look & feel
    (but not a line of code). For more info:
    http://wxglade.sourceforge.net


screenshot by Xavier Noria ( http://www.hashref.com )

I never tried SPE before, but I took the plunge today (is it just me or is the wxPython site really slow?), I must say I like what I saw really much. It’ll probably end up replacing IDLE as my editor of choice.

Thanks very much!

Martin

Hi Teeth,
Thanks for your compliments! Which platform are you using. Be sure you download the b version, because the a version was wrong. Curious how it works…
Stani

http://www.stani.be

Win XP Home.

Regarding the version, I just realised I downloaded the wrong one (darn, I need more sleep). Downloading the correct one right now.

Martin

I am desperately trying to stop Blender from becoming inert once SPE has been launched from inside it : Blender just won’t react to any event from the keyboard or the mouse.

I tried the spe.blend method, in case something in my modification of your script had gone wrong. I tried my modification and now the registred script you publish with the last version… well all kinds of things just in case the problem would be superficial.

If I close SPE, Blender behaves normally again.
Since it is a problem with inputs, I suspect that it is the OpenGL side that should be investigated : just a hunch since I know pretty little on the subject.
So I tried the most recent Drivers for my card (ATI AIW 9600Pro) to no avail.

The operation system :
Windows 2000 Pro, fully updated

I am far from being an accomplished programmer and this is my first bug report : you may have to help me if it is going to make some sense in the end.

The editor is just so much fun to use on its own, I hope that I’ll be able to use it from Blender soon.

Ask for any question/precision you wan’t I’ll be watching this thread.

Thanks for your work.

Jean M.

Unfortunately the current event model of Blender leaves no other option. I wish it could be different. There are rumours that the event model will be changed this year and than more things should be possible. Maybe also sockets might work, but I have no experience with that yet. If someone else does, please contact me…

OK, I’ve missed an essential detail somewhere. I’m running the compiler package checker.

Here’s my error:
http://mysite.verizon.net/okchoir/blender/spe_error.png

My system:
XPHome
Blender 2.35
SPE-0.6.0.b
full python 2.3.4
wxpython 2.5.2.8

Any ideas?

Does the path “C:_D_disk_USER\Blender…” exist? If yes, please send me the script so I can try pychecker on it.

Stani

http://www.stani.be

Sorry : apparently I missed that part when reading the SPE manual somehow.

:expressionless:

Jean

Maybe it’s just me, but when I start SPE through the script in spe.blend, Blender still responds to keyboard and mouse events (though SPE itself has some sort of GUI refresh problem). Really weird.

Martin

Something special about the version of Blender you run maybe ? I understand that you often compile it with special features of you own :slight_smile:

Jean

It’s pretty much just a cvs version with special transform code and a upper end frame limit. :-?

Martin

stani, the path,

C:_D_disk_USER\Blender\Scripts\members.aol.com\Geodesic Dome 1.4

exists, and the script is viewable in SPE. (Question: does pychecker not like embedded spaces in the path? Or is the path name too long?)

My PTYHONPATH is:

C:\PYTHON23;C:\PYTHON23\DLLS;C:\PYTHON23\LIB;C:\PYTHON23\LIB\LIB-TK

I got the script from

http://members.aol.com/demalion2/geodesic1-4.zip

The script runs, but has minor problems; that’s why I want to run pychecker.

Thanks.

C:_D_disk_USER\Blender\Scripts\members.aol.com\Geodesic Dome 1.4
exists, and the script is viewable in SPE. (Question: does pychecker not like embedded spaces in the path? Or is the path name too long?)

That would surprise me. Does pychecker work ok with other files or is it just with that file?

Stani
http://www.stani.be

Actually, no. Since I wrote that, it doesn’t work with any other that I have tried: same error message.

Does pychecker work ok with “geodesic-dome 1-4.py” at your machine?

If this is a path problem with python or SPE, this newbie could use suggestions.

Does pychecker work ok with “geodesic-dome 1-4.py” at your machine?

Yes, very well. Does the _spe/plugins/pychecker2/main.py exists? If yes, can you execute the command in the error dialog box just from the command line, outside SPE. Than probably you’ll get a more detailed error message. Here is the proof that it works fine with me on geodesic:

Does the _spe/plugins/pychecker2/main.py exists?

Yes.

If yes, can you execute the command in the error dialog box just from the command line, outside SPE.

I tried this:

python -u C:\Python23\Lib\site-packages_spe\plugins\pychecker2\main.py C:_D_disk_USER\Blender\Scripts\members.aol.com\Geodesic Dome 1.4\geodesic-dome 1-4.py

and the error was:

‘python’ is not recognized as an internal or external command,
operable program or batch file.

I cannot run python without including the path, like this:

C:\Python23\python -u C:\Python23\Lib\site-packages_spe\plugins\pychecker2\main.py C:_D_disk_USER\Blender\Scripts\members.aol.com\Geodesic Dome 1.4\geodesic-dome 1-4.py

and the new error was:

1-4.py:[unknown line] Unable to parse: No such file or directory

but … if I rename the directory and file to eliminate the embeded spaces, like so:

C:\Python23\python -u C:\Python23\Lib\site-packages_spe\plugins\pychecker2\main.py C:_D_disk_USER\Blender\Scripts\members.aol.com\Geodesic_Dome_1.4\geodesic-dome_1-4.py

then, yes, it runs to completion, and I get the same output as yours.

Question: Is this a python configuration issue? Any suggestions will be appreciated.

Problem solved! I needed to have “C:\Python23” included in my environment system variable, “Path”.

Thanks, stani, for your feedback.

You’re welcome!

Stani

http://spe.pycs.net
http://www.stani.be