Spe 0.1.6.b Python Editor for Blender released

Spe is a 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 is extensible with boa.

This release normally should have been on the blender_ website.
Unfortunately this is not possible. Therefore the latest release
will be available from the link Download latest release under the
calendar of http://spe.pycs.net/index.html

The focus in the spe development for the recent time has been to
make it as stable as possible for Linux. This release should run
without (major) problems outside blender_ in Linux (see also
External bugs). Following information is relative to 0.1.5.c:

: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

:New features:
- linux wrapper script to launch spe from the console
- spe updated for python_ 2.3
- spe help manual (Help menu>Manual)
- help window resizable
- blender_ python_ API documentation added to help menu
- homepage: http://spe.pycs.net (thanks to pyds_ and pycs_)
- webbrowser used for displaying bigger help files in blenpy and spe
- keyboard shortcuts in separate configurable python file

:Requirements:
- full python_ 2.2 or 2.3
- wxpython_ 2.4.1.2
- optional blender_ 2.28a (updated!)

:Known Issues:
- Keyboard copy&paste operations in shell are stolen by editor.

:External bugs:
- the Linux blender_ binaries of blender_.org are unfortunately
not compatible with spe. blender_ still uses an old version of
the libpng (1.0.x), while spe requires a newer version.
Therefore compile blender_ from the sources with libpng 1.2.x
to make spe running in blender_. This problem doesn’t apply to
Windows users, as the windows blender_ binary ships strangely
enough already with the new version of libpng.
- View end of line marker fails (probably wxpython_ bug)

:Fixes:
- class browser fixed
- usermenu problem
- spe can now close without open documents
- sidebar updates automatically when it gets focus
- enter now doesn’t generate extra spaces with auto-complete
- blender_ 2.28a no longer crashes by exploring the Text window
- no pycrust_ warnings anymore
- todo tab: line scrolling
- about.htm is included (was missing)
- add your own menu help dialog typo
- shortcuts dialog typo
- busy cursor fix
- recent files does not display longer not existing files
- separators added between toolbar buttons
- …and some more 3 minor fixes
- explore tab: text height (Linux)
- font size text dialogs (Linux)
- 11 fixes for visibility problems (mainly Linux)
- README.txt with better instructions for Linux users.

:Contributors:
- Tina Hirsch (Linux bug fixing)
- Andrei (feedback) http://project5.tk

:Wanted:
- MacOs X tester for MacOs X screenshot
- wxpython_ programmers

i may be able to help on the osx front,
pm me

What means ‘pm me’? In the meantime I already released spe 0.1.6.c which includes the blender python api documentation. Download is available from the link Download latest release under the calendar. I hope it works on the mac osX and I can’t wait to see these cool aqua looks.
Thanks for your help,
Stani

the pm button at the bottom of his post

I’m trying to get this worked. compiling wxpython right now.
cu

oke… it works. except the interessting part, launching it from blender. I get the “module not found” error (spe). I’m not so stupid, I know how to install a module…

I got a spe.pyc at /usr/lib/python2.2/site-packages/spe. I guess that’s it.

interessting is :). I can find the module with python -> output from my console

bash-2.05b# python
Python 2.2.3 (#1, Jul 31 2003, 13:46:05)
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import spe

Starting Spe...
Importing modules...
Blender support disabled (run Spe from within Blender for Blender support)
>>>

but not in blender. straaangee :).

printout of a print sys.path from python console

['', '/usr/bin', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages', '/usr/lib/python2.2/site-packages/gtk-2.0']

printout of a print sys.path from blender console

['/usr/lib/python2.2/', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/bin', '/usr/lib/python2.2/lib']

there’s no /usr/bin even though I have add it to my .bashrc …
I dont get what I did wrong so far :)… how can I update blender’s python path? its strange… all i did was installing and adding /usr/bin to my pythonpath.

cu

Hi,
To launch the ide, you have to type:

import spe
spe.main()

Could you launch it (not just importing)?

Note: you have to be sure that the following directories are in the pythonpath:
/usr/lib/python2.2/site-packages/spe
/usr/lib/python2.2/site-packages/blenpy
/usr/lib/python2.2/site-packages/sm

and of course the wxPython directory:
/usr/lib/python2.2/site-packages/wxPython ?!
Maybe in Linux it has a different name, to check if you can load wxPython from Blender, type in a text window ‘import wx’ and press Alt+P

Tina Hirsch who ported spe from Windows to Linux did it also with Gentoo Linux. I’ll ask her to have a look at it.

Good luck,
Stani

yes I know. now i added the folders… but the print sys.path in blender tells something else :slight_smile:

python console:

>>> print sys.path
[’’, ‘/usr/lib/python2.2’, ‘/usr/lib/python2.2/plat-linux2’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/lib/python2.2/site-packages’, ‘/usr/lib/python2.2/site-packages/gtk-2.0’, ‘/usr/lib/python2.2/site-packages/wxPython’, ‘/usr/lib/python2.2/site-packages/spe’, ‘/usr/lib/python2.2/site-packages/blenpy’, ‘/usr/lib/python2.2/site-packages/sm’]

blender console:

Run Python script “Text” …
[’/usr/lib/python2.2/’, ‘/usr/lib/python2.2/plat-linux2’, ‘/usr/lib/python2.2/lib-tk’, ‘/usr/lib/python2.2/lib-dynload’, ‘/usr/bin’, ‘’, ‘/usr/lib/python2.2/lib’]

so how do I sync the blender pyton path? just doesnt work somehow :frowning:

cu

A temporary solution could be (or you could save it in a drawing)…
Type the following a the Blender Text Window:

import sys
sys.path.extend(['/usr/lib/python2.2/site-packages/wxPython',  
    '/usr/lib/python2.2/site-packages/spe', 
    '/usr/lib/python2.2/site-packages/blenpy', 
    '/usr/lib/python2.2/site-packages/sm'] )
import spe
spe.main()

But this will NOT add it to the pythonpath permanently.

Did you build Blender from the sources with libpng 1.2.x? Otherwise spe will not run inside Blender. This is a Blender bug (not spe). For your information, some text from the release information of the website http://www.pycs.net:

The Linux blender binaries of blender.org are unfortunately
not compatible with spe. blender still uses an old version of
the libpng (1.0.x), while spe requires a newer version.
Therefore compile blender from the sources with libpng 1.2.x
to make spe running in blender. This problem doesn’t apply to
Windows users, as the windows blender binary ships strangely
enough already with the new version of libpng.

stani

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

/usr/bin should be on PATH not on PYTHONPATH and is only important if you want to start spe from a shell.
Instead what’s missing (in blender) is /usr/lib/python2.2/site-packages. If you add this one in your .bashrc to the PYTHONPATH variable everything should be fine (the subdirs spe,sm,etc. aren’t needed). Though you must start blender from a bash - e.g. desktop menus usually don’t read the .bashrc and therefore blender does not know about your user defined environment variables. If you set the PYTHONPATH in /etc/profile instead of .bashrc then starting spe/blenpy from blender will work also from menus.

Hope this helps.
Tina

I launch it from a shell. The .bashrc is set at you set (with sub dirs but that should not matter.). I’ll try to do it with /etc/profile.

btw… I thought /usr/bin is strange :). but did it anyways :slight_smile:

EDIT
IT WORKS :smiley: kewl. very kewl.

Send me a screenshot! By the way spe-0.1.7.c is already out now, which includes a windows installer, but that of course is not interesting. But it has an uninstaller for Linux as well, the coolest feature a program can have :wink:
Stani

http://spe.pycs.net

I tkae it its still not working on OS X? Last time I checked, wxpython had a bunch of problems with OS X. I can help test with OS X if you want.

here’s the screeny
http://files.blender3d.ch/temporary/spe_blenpy.jpg

btw I can’t send it to idle. the path to idle.pyw is wrong…

/usr/bin/python: can't open file '/usr/lib/python2.2/tools/idle/idle.pyw

another bug I found is this… if spe is open (launched from blender) blender is blocked… I can’t work anymore.
http://files.blender3d.ch/temporary/spe_troubles.jpg

btw… now how can I setup a interface between blender and spe? I’m trying out now… if it works I’ll let ya know.

cu

EDIT
I installed 0.1.7e now. The script to start spe from blender is better (cause the path is checked). I still got the “blender-gets-blocked” bug :slight_smile:

btw I can’t send it to idle. the path to idle.pyw is wrong…

This not a bug. The locations for Linux may differ. In the spe manual it is noted that you have to change the file ‘editors.txt’ to your own configuration.

another bug I found is this… if spe is open (launched from blender) blender is blocked… I can’t work anymore.

Also this is not a bug. This is the default behaviour unfortunately, that Blender blocks when a Python script is running. I don’t even know if it is possible to do otherwise. Normally pressing F5 should update your Blender window.

Please download the new version spe-0.1.8.c which is much better at http://spe.pycs.net and don’t post anymore to this thread, but to the new one which announces the spe-0.1.8.c