idle3 crashed with ImportError in <module>()

Bug #336381 reported by Kazagistar
16
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I installed Python 3, I installed IDLE 3, and IDLE 3 died. I hope attached data gives more info...

ProblemType: Crash
Architecture: i386
DistroRelease: /usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated import sets Ubuntu 9.04
ExecutablePath: /usr/bin/idle3
InterpreterPath: /usr/bin/python2.6
Package: idle3 3.0.1-0ubuntu2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/idle3 -n
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/idle3', '-n']
SourcePackage: python3-defaults
Title: idle3 crashed with ImportError in <module>()
Uname: Linux 2.6.28-8-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Kazagistar (bogusemail666) wrote :
Revision history for this message
Anders Kaseorg (andersk) wrote :

/usr/bin/idle3 runs with #! /usr/bin/python, which is still Python 2.6. It needs to be changed to #! /usr/bin/python3.

Changed in python3-defaults:
status: New → Confirmed
Revision history for this message
Anders Kaseorg (andersk) wrote :

Here’s a debdiff for this bug and bug 330613.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python3-defaults - 3.0.1-0ubuntu3

---------------
python3-defaults (3.0.1-0ubuntu3) jaunty; urgency=low

  * Make idle3 run with /usr/bin/python3, not /usr/bin/python.
    (LP: #336381)
  * Remove Essential: yes from python3-minimal, and reduce the Priority of
    python3 and python3-minimal to optional. (LP: #330613)

 -- Anders Kaseorg <email address hidden> Sun, 08 Mar 2009 18:30:38 -0400

Changed in python3-defaults:
status: Confirmed → Fix Released
Revision history for this message
Hannes Fritz (hannes-fritz) wrote :

I'm using idle3 (3.0.1.0-ubuntu3) in jaunty and the issue occurs again:

hannes@romeo ~ % cat /usr/bin/idle3
#! /usr/bin/python

from idlelib.PyShell import main
if __name__ == '__main__':
    main()

Changing "#! /usr/bin/python" to "#! /usr/bin/python3" solves this.

Revision history for this message
Anders Kaseorg (andersk) wrote :

My apologies; the last debdiff modified the wrong file (idle.sh instead of idle.py). Here’s another debdiff that modifies idle.py, and removes idle.sh to avoid such confusion in the future.

Revision history for this message
Anders Kaseorg (andersk) wrote :

(fix misspelling in changelog)

Revision history for this message
Cam Cope (ccope) wrote :

Just confirming this issue still exists. Version 3.0.1-ubuntu3 is the latest in the repository, and it still has #! /usr/bin/python instead of #! /usr/bin/python3

Revision history for this message
Anders Kaseorg (andersk) wrote :

Oops, I forgot to reopen this bug when posting the new patch. The debdiff above should still be uploaded.

Changed in python3-defaults (Ubuntu):
assignee: nobody → anders-kaseorg
status: Fix Released → In Progress
Changed in python3-defaults (Ubuntu):
assignee: anders-kaseorg → andreas-wenning
Revision history for this message
Scott Kitterman (kitterman) wrote :

Ack from motu-release.

Changed in python3-defaults (Ubuntu):
assignee: andreas-wenning → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python3-defaults - 3.0.1-0ubuntu4

---------------
python3-defaults (3.0.1-0ubuntu4) jaunty; urgency=low

  * Make idle3 actually run with /usr/bin/python3. (LP: #336381)
  * Remove unused idle.sh that led to the previous confusion.

 -- Anders Kaseorg <email address hidden> Thu, 12 Mar 2009 15:37:50 -0400

Changed in python3-defaults (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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