quantal update 15 June xdiagnose install failure code 1

Bug #1013911 reported by jerrylamos
252
This bug affects 35 people
Affects Status Importance Assigned to Milestone
xdiagnose (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Setting up xdiagnose (2.7) ...
  File "/usr/lib/python3/dist-packages/xdiagnose/assistant.py", line 72
    print 'sixa action setup part1'
                                  ^
SyntaxError: invalid syntax

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 1

Tried re-install with synaptic, same error.

Jerry

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: xdiagnose 2.7
ProcVersionSignature: Ubuntu 3.4.0-5.11-generic 3.4.0
Uname: Linux 3.4.0-5-generic i686
.tmp.unity.support.test.0:

ApportVersion: 2.2.3-0ubuntu3
Architecture: i386
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
Date: Fri Jun 15 19:48:06 2012
DistUpgraded: Fresh install
DistroCodename: quantal
DistroVariant: ubuntu
GraphicsCard:
 Intel Corporation N10 Family Integrated Graphics Controller [8086:a011] (prog-if 00 [VGA controller])
   Subsystem: Acer Incorporated [ALI] Device [1025:0349]
   Subsystem: Acer Incorporated [ALI] Device [1025:0349]
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120606.2)
MachineType: Acer AOD255E
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.4.0-5-generic root=UUID=7a6ea97c-c672-4b88-813f-b177877a5ab3 ro quiet splash vt.handoff=7
SourcePackage: xdiagnose
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/16/2010
dmi.bios.vendor: Acer
dmi.bios.version: V3.12(DDR3)
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: JE02_PT
dmi.board.vendor: Acer
dmi.board.version: V3.12(DDR3)
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: V3.12(DDR3)
dmi.modalias: dmi:bvnAcer:bvrV3.12(DDR3):bd12/16/2010:svnAcer:pnAOD255E:pvrV3.12(DDR3):rvnAcer:rnJE02_PT:rvrV3.12(DDR3):cvnAcer:ct10:cvrV3.12(DDR3):
dmi.product.name: AOD255E
dmi.product.version: V3.12(DDR3)
dmi.sys.vendor: Acer
version.compiz: compiz 1:0.9.7.8-0ubuntu3
version.libdrm2: libdrm2 2.4.33-1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.2-0ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.2-0ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu11
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.0-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.19.0-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20120322+ab7291d-1

Related branches

Revision history for this message
jerrylamos (jerrylamos) wrote :
Revision history for this message
Guy Stone (stoneguy3) wrote :

Someone forgot to convert /usr/lib/python3/dist-packages/xdiagnose/assistant.py from Python2 to Python3. Fix is to edit that file and change the print statements to use new syntax.

Anyone in a DIY mood that isn't a Python person, that means wrapping each argument in parens. Then do aptitude safe-upgrade to push through what didn't complete.

See changes starting around line 72 of attachment.

Guy

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdiagnose (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 2.8

---------------
xdiagnose (2.8) quantal; urgency=low

  * Drop out-of-tree python2 module
    (LP: #1013911)
 -- Bryce Harrington <email address hidden> Fri, 15 Jun 2012 19:29:56 -0700

Changed in xdiagnose (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

The upgrade failed!
i had to remove 2.7 and install 2.8 manually

$ apt-cache policy xdiagnose
xdiagnose:
  Installed: 2.7
  Candidate: 2.8
  Version table:
     2.8 0
        500 http://mirrors.fe.up.pt/pub/ubuntu/ quantal/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
 *** 2.7 0
        100 /var/lib/dpkg/status

$ sudo apt-get install xdiagnose
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  xdiagnose
1 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
Need to get 0 B/84,6 kB of archives.
After this operation, 5120 B disk space will be freed.
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 237, in <module>
    main()
  File "/usr/bin/apt-listchanges", line 48, in main
    debs = apt_listchanges.read_apt_pipeline(config)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in read_apt_pipeline
    return map(lambda pkg: filenames[pkg], order)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in <lambda>
    return map(lambda pkg: filenames[pkg], order)
KeyError: 'xdiagnose'
Setting up xdiagnose (2.7) ...
  File "/usr/lib/python3/dist-packages/xdiagnose/assistant.py", line 72
    print 'sixa action setup part1'
                                  ^
SyntaxError: invalid syntax

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 xdiagnose
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
userdce (userdce) wrote :

just to verify that removing and reinstalling xdiagnose works

Revision history for this message
Piotr Tarsa (piotr-tarsa) wrote :

Adding parentheses like Guy Stone suggested worked for me. Although it seems somewhat weird to me that I needed to run update twice (from update manager).

Revision history for this message
Susan Cragin (susancragin) wrote :

Setting up xdiagnose (2.7) ...
  File "/usr/lib/python3/dist-packages/xdiagnose/assistant.py", line 72
    print 'sixa action setup part1'
                                  ^
SyntaxError: invalid syntax

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Setting up whoopsie (0.2.0) ...
whoopsie start/running, process 8187
Errors were encountered while processing:
 xdiagnose
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
jerrylamos (jerrylamos) wrote :

As in comment #6,
sudo apt-get remove xdiagnose && sudo apt-get install xdiagnose
no errors occurred....

Jerry

To post a comment you must log in.