Wednesday, March 7, 2007

SPE: Call for testers!

I've been working a lot on fixing SPE and upgrading it with the latest plugins. The winpdb debugger no longer fails and wxGlade crashes are history. Is that not great? Are you eager to try it out yourself? Please do! Get it from subversion and test it for any critical bug, so I can iron it out. I have been patching a lot for Ubuntu users, who will be very pleased with this release, and I'd like to thank Jurjen a lot for his work on Mac issues. This is a definitely a release everyone should upgrade to, wether you use windows, mac or linux!

Here is an overview what has been done:

The focus in this release is bugfixing, plugin upgrades and compatibility with wxPython 2.8, but it also still works on wxPython 2.6

Upgrades:
- WinPdb to 1.0.8 (not fail in timely manner anymore)
- wxGlade to latest cvs (support for wxWindows2.8)

New features:
- Save as copy
- Clear output pane

Fixes
- output: escape html characters in tab & respect spaces
- preserve file permissions and avoid erasing file
- wxversion handling at startup
- font dialog
- recent files sorted by lowercase
- default buttons on all dialog
- mac: run terminal commands (jurjen)
- mac: pychecker
- ubuntu: switch to file
- some critical bug fixes which could have crashed SPE in the past
- much more ...

PS. Winpdb does not work well on Mac & wxpython2.8 Nir is working on an update. So when it comes out it will be included with SPE.

21 comments:

  1. Thank you Stani. I am testing already.

    One thing I have found is when closing one of multiple file tabs SPE crashes. This is on Ubuntu. I am trying to find what leads up to this because it does not always happen.

    Will post when I have more details.

    Scotsman

    ReplyDelete
  2. Hi,
    I'm using rev 192 on Ubuntu, wxPython 2.8. The default UI doesn't show any close button on the tabs. I can close tabs with Ctrl-W (i'm using windows shortcut).

    Hieu

    ReplyDelete
  3. @scotsman

    Please open first a terminal and run SPE in debugging mode (python SPE.py --debug), than I can know better what happens.

    @rooy
    I had to remove the UI with close buttons as it was not stable on Ubuntu. I tried to solve it, but it didn't seem possible. As an alternative, SPE provide to close tabs with a middle mouse click.

    ReplyDelete
  4. Great work,

    Any chance of a way to donate without having to create a paypal account? Others have managed to set that up even with paypal as a middleman.
    As I don't have an account and really believe I shouldn't need one. I for one, hold off donating until then.

    Regards,

    ReplyDelete
  5. @antonym

    No problem, if you want to donate without paypal, contact me by email spe.stani.be # gmail * com.

    ReplyDelete
  6. Problem when using treeview in Explorer (left side) in UML_Example.py. opening and closing the treeviews gets messed up. In the end the Window(Frame) tree won't close anymore. Ubuntu Edgy

    Spe is running in debugging mode with this configuration:
    - platform : linux2
    - python : 2.4.4c1
    - wxPython : 2.8.1.1
    - interface : default
    - encoding : UTF-8

    Launching application...
    Create: Framework: menu.
    Create: Framework: toolbar.
    Create: Framework: statusbar.
    Creating tabs...
    Shell
    Locals
    Session
    Output
    Find
    Browser
    Recent
    Todo
    Index
    Notes
    Donate
    Opening /home/john/_spe/examples/uml_example.py
    {... }


    Traceback (most recent call last):
    File "/home/john/_spe/tabs/Browser.py", line 146, in onFolderSelect
    recursion=self.depth.GetValue()
    File "/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 13772, in __getattr__
    raise PyDeadObjectError(self.attrStr % self._name)
    wx._core.PyDeadObjectError: The C++ part of the SpinCtrl object has been deleted, attribute access no longer allowed.

    ReplyDelete
  7. @scotsman

    I've uploaded a fix to svn. I just discovered that overriding the normal behaviour of a tree in gtk is not an option. From now on you can only use the arrows to expand a tree item in the explorer. Can you try again now to crash SPE?

    ReplyDelete
  8. Folding tree fault fixed! Thanks.

    New problem now...
    Seg Fault

    Opened file and checked the above bug was fixed. Then began to check pychecker. I made a deliberate error in the code (def to de f) and started pychecker. Nothing picked up, but that's alright. Wrote some notes in notes tab. Checked to see if they appeared on bottom notes tab. They didn't (don't know if they are supposed to?). But then I went to close the file using menu File->Close and SPE crashed with seg fault as follows. Looks like pychecker maybe?

    Opening /home/john/_spe/examples/uml_example.py
    Create: MdiSplit: class 'sm.wxp.smdi.MdiSplitChildFrame'> uml_example.py /home/john/_spe/examples/uml_example.py
    Create: Sdi: class 'sm.wxp.smdi.MdiSplitChildFrame'.tabs
    Event<: Framework: class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
    Event: Parent: class 'Parent.Panel'>.onSize
    Event>: Framework: class 'sm.wxp.smdi.MdiSplitParentFrame'>.Size
    Event<: Framework: class 'sm.wxp.smdi.MdiSplitChildFrame'>.Size


    {... }

    Event: Child: /home/john/_spe/examples/uml_example.py: class 'Child.Panel'>.onKillFocus(dead=False)
    Event: Child: /home/john/_spe/examples/uml_example.py: class 'Child.Panel'>.onKillFocus(dead=False)
    Dialog: Parent: class 'Parent.Panel'>.messageCancel
    Event>: Framework: class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(False)
    Opening /home/john/_spe/examples/uml_example.py
    Event<: Framework: class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)
    Event: Parent: class 'Parent.Panel'>.onActivate
    Event>: Framework: class 'sm.wxp.smdi.MdiSplitParentFrame'>.Activate(True)
    Traceback (most recent call last):
    File "/home/john/_spe/plugins/Pycheck.py", line 108, in OnProcessEnded
    del self.list[0]
    IndexError: list assignment index out of range
    Event: Child: class 'sm.wxp.smdi.MdiSplitChildFrame'>.Close
    Event<: Framework: class 'sm.wxp.smdi.MdiSplitChildFrame'>.Close
    Event>: Framework: class 'sm.wxp.smdi.MdiSplitChildFrame'>.Close returns True
    Segmentation fault (core dumped)

    ReplyDelete
  9. @scottsman

    The notes shouldn't appear down as you can keep notes for every file or for general activity down. It doesn't look like a pychecker bug, more with notes. Contact me by email.

    ReplyDelete
  10. Revision just downloaded an hour ago, I think 208.


    Looks good, one thing I immediately noticed is that when no files are open, clicking on a menu and browsing it (mouseOvering the different options) will cause lots of errors to appear in the shell tab at the bottom half of the screen.

    Suggestion: the donate button in the help menu could make the 'donate' tab be selected instead of opening the same thing in a web page.

    ReplyDelete
  11. @smartbei

    I will look into these errors. Normally menus which are related to open documents should be enabled when no file is open.

    About the donate tool button... on a website I can put a paypal donate button which the donate tab can only display on windows. So for windows this could be an option.

    ReplyDelete
  12. @smartbei

    The menu error should be fixed now!

    ReplyDelete
  13. SPE latest SVN, Ubunt Edgy
    I can run SPE fine with Python 2.4.
    When I 'sudo update-alternatives --config python' to switch to 2.5 and try running SPE, I get "Error: SPE requires wxPython, which doesn't seem to be installed. Get it from http://www.wxpython.org!"
    I checked the first bit of code in SPE.py and tried 'import wxversion' from the Python 2.5 shell: "ImportError: No module named wxversion". It is clearly installed (according to both apt and Python 2.4)... I don't understand what I'm doing wrong. It seems as though Python 2.5 doesn't have access to installed packages.

    ReplyDelete
  14. This comment has been removed by the author.

    ReplyDelete
  15. To ben: Since you have already installed wxPython 2.5, simply comment the "try...except..." in /usr/lib/python2.5/site-packages/_spe/SPE.py. It works for me.

    I use Ubuntu Feisty. I checked /usr/lib/python2.5/site-packages/ and found out there was no wxversion.py at all. I guess that might be a tiny bug of Ubuntu packages.

    ReplyDelete
  16. Hello

    I tried running SPE through Blender on Windows, but any script I try to send to Blender from the IDE gives me the following error:

    Traceback (most recent call last):
    File "C:\Python24\Lib\site-packages\_spe\Menu.py", line 499, in menu_reference_in_blender
    self.app.childActive.reference_in_blender()
    File "C:\Python24\Lib\site-packages\_spe\Child.py", line 612, in reference_in_blender
    import blenpy.plugins.mouse
    ImportError: No module named blenpy.plugins.mouse
    Traceback (most recent call last):
    File "C:\Python24\Lib\site-packages\_spe\Menu.py", line 495, in menu_load_in_blender
    self.app.childActive.load_in_blender()
    File "C:\Python24\Lib\site-packages\_spe\Child.py", line 606, in load_in_blender
    import blenpy.pyGui
    ImportError: No module named blenpy.pyGui

    I don't know where the "blenpy" module is supposed to come from.

    I am using:

    Windows XP Pro
    SPE 0.8.3c
    Python 2.4.3
    wxPython 2.6.1
    Blender 2.43

    ReplyDelete
  17. Hi,
    first of all I have to say that SPE is the greatest IDE I've ever seen, thanks for all the work!
    I have one problem with version 0.8.4.b, running on Windows XP.
    If I try to run a file that is located on a path with spaces, it fails:
    "C:\Python25\python.exe: can't open file 'C:\Documents': [Errno 2] No such file or directory"
    Probably the file argument is passed to python without quotes.

    Thanks again for all the good work!

    ReplyDelete
  18. One problem :

    - platform : linux2
    - python : 2.5.1
    - wxPython : 2.8.0.1.
    - interface : default
    - encoding : ISO-8859-2

    Launching application...
    Create: Framework: menu.
    Create: Framework: toolbar.
    Create: Framework: statusbar.
    Traceback (most recent call last):
    File "_spe/spe", line 3, in module
    import _spe.SPE
    File "/usr/share/python2.5/site-packages/_spe/SPE.py", line 209, in module
    style = style)
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 1278, in __init__
    wx.App.__init__(self,redirect=not debug)
    File "/usr/lib/python2.5/site-packages/wx/_core.py", line 7748, in __init__
    File "/usr/lib/python2.5/site-packages/wx/_core.py", line 7345, in _BootstrapApp
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 1298, in OnInit
    **self.attributes)
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 801, in __init__
    Parent.__init__(self,app=app,page=page,**options)
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 596, in __init__
    **options)
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 325, in __init__
    self.__statusBar__()
    File "/usr/share/python2.5/site-packages/_spe/sm/wxp/smdi.py", line 417, in __statusBar__
    self.statusBar = self.app.StatusBar(parent=self,id=wx.ID_ANY)
    File "/usr/share/python2.5/site-packages/_spe/Menu.py", line 727, in __init__
    self.throbber = Throbber(self,'throbber_still.gif')
    File "/usr/share/python2.5/site-packages/_spe/Menu.py", line 733, in __init__
    GIFAnimationCtrl.__init__(self,statusBar,-1,info.imageFile(fileName))
    File "/usr/lib/python2.5/site-packages/wx/animate.py", line 242, in __init__
    File "/usr/share/python2.5/site-packages/_spe/Menu.py", line 746, in LoadFile
    if fileName != self._fileName and not self._running:
    AttributeError: 'Throbber' object has no attribute '_fileName'

    any advice ?

    ReplyDelete
  19. ill begin testing on gentoo linux, tel you how it goes XD

    ReplyDelete
  20. Hi, great work!

    I've discovered an error (SEG FAULT) when:
    - Cut any text.
    - Paste it in an upper position.
    - Enter a new line.

    I'm working on Ubuntu Feisty Fawn and I've tried it in one more pc (also with Ubuntu FF) and the same error ocurres.

    ReplyDelete
  21. ad spe8.3 under hardy ... (pychecker problem)

    try to use sources.list from http://de.pastebin.ca/915001 it helped me.

    it seems that no all repostiories are well updated .

    Liso

    ReplyDelete

Filter by topic: spe, python, ubuntu