enums.py imports non-existent module 'version' - breaks testsuite

Bug #1158290 reported by Jean-Baptiste Lallement on 2013-03-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Software Center
Status tracked in Trunk
Fix Released
Fix Released
software-center (Ubuntu)

Bug Description

softwarecenter/version.py has been removed in r3298 [1] but is still imported by softwarecenter/enums.py

The testsuite fails with errors like:
Traceback (most recent call last):
  File "./tests/test_utils.py", line 16, in <module>
    from tests.utils import (
  File "/home/ubuntu/software-center-5.5.6/tests/utils.py", line 37, in <module>
    from softwarecenter.backend.installbackend import get_install_backend
  File "/home/ubuntu/software-center-5.5.6/softwarecenter/backend/installbackend.py", line 19, in <module>
    from softwarecenter.utils import UnimplementedError
  File "/home/ubuntu/software-center-5.5.6/softwarecenter/utils.py", line 42, in <module>
    from enums import Icons, APP_INSTALL_PATH_DELIMITER
  File "/home/ubuntu/software-center-5.5.6/softwarecenter/enums.py", line 316, in <module>
    from .version import VERSION, DISTRO, RELEASE, CODENAME
ImportError: No module named version

[1] http://bazaar.launchpad.net/~ubuntuone-control-tower/software-center/trunk/revision/3298

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: software-center 5.5.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-12.21-generic 3.8.2
Uname: Linux 3.8.0-12-generic x86_64
ApportVersion: 2.9.2-0ubuntu2
Architecture: amd64
Date: Thu Mar 21 14:05:37 2013
MarkForUpload: True
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: software-center
UpgradeStatus: Upgraded to raring on 2012-01-31 (414 days ago)

Related branches

Jean-Baptiste Lallement (jibel) wrote :
dobey (dobey) on 2013-03-22
Changed in software-center (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
status: New → Triaged
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.5.6-0ubuntu2

software-center (5.5.6-0ubuntu2) raring; urgency=low

  * debian/patches/00_bzr-run-tests-setup.patch:
    - Run setup.py build before the tests get run; clean after. (LP: #1158290)
 -- Rodney Dawes <email address hidden> Fri, 22 Mar 2013 09:48:37 -0400

Changed in software-center (Ubuntu):
status: Triaged → Fix Released
Julien Funk (jaboing) on 2013-04-04
tags: added: u1-notrack
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers