invalid syntax 3.0.1-0ubuntu12 except IOError, msg:

Bug #361301 reported by Micah Gersten
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python3.0 (Ubuntu)
Fix Released
Undecided
Morten Kjeldgaard

Bug Description

Binary package hint: python3.0

Got this when upgrading today:
Setting up python3.0 (3.0.1-0ubuntu12) ...
  File "/usr/lib/python3.0/distutils/command/bdist_wininst.py", line 345
    except IOError, msg:
                  ^
SyntaxError: invalid syntax

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
MediaBuild: Xubuntu 8.10 "Intrepid Ibex" - Release amd64 (20081030.3)
NonfreeKernelModules: fglrx
Package: python3.0 3.0.1-0ubuntu12
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python3.0
Uname: Linux 2.6.28-11-generic x86_64

Related branches

Revision history for this message
Micah Gersten (micahg) wrote :
Revision history for this message
Savvas Radevic (medigeek) wrote :

I can confirm this bug:
Setting up python3.0 (3.0.1-0ubuntu12) ...
  File "/usr/lib/python3.0/distutils/command/bdist_wininst.py", line 345
    except IOError, msg:
                  ^
SyntaxError: invalid syntax

$ apt-cache policy python3.0
python3.0:
  Installed: 3.0.1-0ubuntu12
  Candidate: 3.0.1-0ubuntu12
  Version table:
 *** 3.0.1-0ubuntu12 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

Changed in python3.0 (Ubuntu):
status: New → Confirmed
Morten Kjeldgaard (mok0)
Changed in python3.0 (Ubuntu):
assignee: nobody → Morten Kjeldgaard (mok0)
Revision history for this message
Savvas Radevic (medigeek) wrote :

++ except IOError, msg:
++ raise DistutilsFileError, str(msg) + ', please install the python%s-dev package' % sys.version[:3]

I think it needs an "as" in patch debian/patches/bdist-wininst-notfound.dpatch:
http://docs.python.org/3.0/reference/compound_stmts.html#except

except IOError as msg:

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

This bug was fixed in the package python3.0 - 3.0.1-0ubuntu13

---------------
python3.0 (3.0.1-0ubuntu13) jaunty; urgency=low

  * Fix syntax error in distutils/command/bdist_wininst.py. LP: #361301.
  * Always use `site-packages' as site directory name in virtualenv.
  * Don't run the `rtinstall' hooks for 3.0. LP: #354228.

 -- Matthias Klose <email address hidden> Wed, 15 Apr 2009 17:33:26 +0200

Changed in python3.0 (Ubuntu):
status: Confirmed → 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.