SPE fails to run any scripts after upgrade to jaunty

Bug #377044 reported by gaurdro
32
This bug affects 2 people
Affects Status Importance Assigned to Milestone
spe (Debian)
Fix Released
Unknown
spe (Ubuntu)
Fix Released
Undecided
Morten Kjeldgaard
Jaunty
Won't Fix
Undecided
Unassigned

Bug Description

SRU request (can be started after patch is released for Karmic):
1) When both python-wxgtk2.6 and python-wxgtk2.8 are installed, Jaunty uses python-wxgtk2.6 by default, while Intrepid used python-wxgtk2.8 by default. The current version of spe (0.8.4.h-1) only works properly with python-wxgtk2.8 SPE will start, but will fail to run any script. This is a severe regression as it makes SPE partly unusable since Jaunty.

2) Therefore I (stani) propose a fix, which changes two lines:
- _spe/SPE.py: it forces spe to select python-wxgtk2.6
- debian/control: it changes the dependency to python-wxgtk2.8 only, instead of python-wxgtk2.6 or python-wxgtk2.8
This fix has been already prepared for the current development branch (karmic). Version prepared is 0.8.4.h-1ubuntu1 and the debdiff used can be found at this link:
http://launchpadlibrarian.net/27096263/spe_0.8.4.h-1ubuntu1.debdiff

3) A debdiff (0.8.4.h-1ubuntu0.9.04) for jaunty-proposed has been already prepared and can be found at
http://launchpadlibrarian.net/27096386/spe_0.8.4.h-1ubuntu0.9.04.debdiff

4) TEST CASE: to reproduce the bug, just follow this small steps:
4.a install spe: sudo apt-get install spe
4.b type "hello world" as a new script and save the script
4.c run the script (Ctrl+R)
4.d the execution of the script will be blocked, the statusbar will display "running script" for ever and "hello world" won't get printed

Original bug report:
Binary package hint: spe

distro: (X)ubuntu 9.04 jaunty jackalope upgraded from hardy heron

spe loads just fine, as far as i can tell pychecker works, all editing features seem to work, just spe won't run any scripts. I've even written a short "print 'hello world'" script and nothing. i get the bar saying that it's running the script but no output and sign that the script has finished.

the only error that it puts out is:
Exception TypeError: "'NoneType' object is not callable" in <wx.lib.pubsub._NodeCallback instance at 0xa6363cc> ignored

which has been there since hardy heron.

Revision history for this message
Ben (klinerdraken) wrote :

I am experiencing the same issue, I ran this command (ben@UbuntuHome:/usr/share/spe/_spe$ python SPE.py --debug > /home/ben/debug.txt 2>&1) and noticed the following error message repeated in the debug.txt file... see attached.

Traceback (most recent call last):
  File "/usr/share/spe/_spe/tabs/Output.py", line 121, in OnIdle
    if self.inputstream.CanRead():
AttributeError: 'Panel' object has no attribute 'inputstream'

As a work around you can run scripts in the debugger.

Revision history for this message
gaurdro (gaurdro) wrote :

i realize I forgot to add mine. this bug persists with a fresh install as well.

Revision history for this message
Stani (stani) wrote :

This bug does not happen if SPE is run with wxPython 2.8, so it is related to wxpython 2.6. There are four issues which need to be tackled:

1) SPE seems to depend on wxPython 2.6 because of kiki. I'll try to change that. This is because of Debian

2) Unfortunately when both wxpython 2.6 and 2.8 are installed, Ubuntu gives the preference to 2.6
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.VERSION
(2, 6, 3, 2, '')

3) SPE should choose to use wxPython 2.8

4) SPE should still be able to use wxPython 2.6 for debian, unless debian has now full support for wxpython 2.8

Changed in spe (Ubuntu):
assignee: nobody → stani (stani)
status: New → Confirmed
Revision history for this message
Stani (stani) wrote :

The minimal patch is only changing one line:
sudo gedit /usr/bin/spe

Change this line:
MIN_WX_VERSION = '2.5.4.1'

into:
MIN_WX_VERSION = '2.8'

After that you can run your scripts happily again. I'll prepare an official patch and attach it to this bug.

Changed in spe (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Stani (stani) wrote :

This a debdiff patch for Karmic. I'll prepare one for Jaunty too.

Revision history for this message
Stani (stani) wrote :

This is a debdiff patch for Jaunty. In my previous comment I forgot to mark my attachment as a patch.

Changed in spe (Ubuntu):
assignee: stani (stani) → nobody
status: In Progress → Confirmed
Changed in spe (Debian):
status: Unknown → New
Stani (stani)
description: updated
Morten Kjeldgaard (mok0)
Changed in spe (Ubuntu Jaunty):
status: New → Confirmed
Changed in spe (Ubuntu):
assignee: nobody → Morten Kjeldgaard (mok0)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package spe - 0.8.4.h-1ubuntu1

---------------
spe (0.8.4.h-1ubuntu1) karmic; urgency=low

  * _spe/SPE.py: force SPE to use wx 2.8 (Closes LP: #377044)
  * debian/control: force dependency on wx 2.8 only

 -- Stani M <email address hidden> Sat, 23 May 2009 20:21:51 +0200

Changed in spe (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Morten Kjeldgaard (mok0) wrote :

This is a simple fix to resolve the wx dependency problem (2.6 vs. 2.8) where the application itself queries for version 2.8 before importing the module.

Please consider an SRU for jaunty (which has wx version 2.8 as a standard). The problem with spe arises when a user has both version 2.6 and 2.8 installed; in such a case python will choose wx version 2.6 (because of a packaging error in wxwidgets, see bug #379573).

The SRU we propose is 0.8.4.h-1ubuntu1 (karmic) -> 0.8.4.h-1ubuntu1~jaunty1

Morten Kjeldgaard (mok0)
Changed in spe (Ubuntu Jaunty):
status: Confirmed → New
Revision history for this message
Martin Pitt (pitti) wrote :

Uploaded.

tags: added: regression-release
Changed in spe (Ubuntu Jaunty):
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted spe into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in spe (Ubuntu Jaunty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Neil Wallace (rowinggolfer) wrote :

To confirm Stani's fix works (altering /usr/bin/spe to MIN_WX_VERSION=2.8)
However, enabling the proposed repo did not work for me.

Revision history for this message
Martin Pitt (pitti) wrote :

I removed the spe package from jaunty-proposed, it failed to build (http://launchpadlibrarian.net/27521255/buildlog_ubuntu-jaunty-i386.spe_0.8.4.h-1ubuntu0.9.04_FAILEDTOBUILD.txt.gz)

2009-09-09 10:19:06 INFO Removing candidates:
2009-09-09 10:19:06 INFO spe 0.8.4.h-1ubuntu0.9.04 in jaunty
2009-09-09 10:19:06 INFO Removed-by: Martin Pitt
2009-09-09 10:19:06 INFO Comment: unverified/failed SRU
2009-09-09 10:19:06 INFO 1 package successfully removed.
2009-09-09 10:19:06 INFO Transaction committed.

tags: added: verification-failedd
removed: verification-needed
Changed in spe (Ubuntu Jaunty):
status: Fix Committed → Triaged
tags: removed: verification-failedd
Revision history for this message
Morten Kjeldgaard (mok0) wrote :

Setting "Wont Fix" status, since jaunty is no longer supported.

Changed in spe (Ubuntu Jaunty):
status: Triaged → Won't Fix
Changed in spe (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.