xdiagnose 3.4 installation failed with syntax errors

Bug #1101688 reported by John Vivirito
126
This bug affects 44 people
Affects Status Importance Assigned to Milestone
xdiagnose (Ubuntu)
Fix Released
Critical
Bryce Harrington

Bug Description

everytime i try to do updaes it keeps spitting out the same outut. I
here is the output of the commands i ran

1.

 Reading package lists... Done
Building dependency tree
Reading state information... Done
xdiagnose is already the newest version.
The following packages were automatically installed and are no longer required:
  apport-hooks-medibuntu e17-data libatk-adaptor-data libc-ares2 libecore-con1
  libecore-evas1 libecore-fb1 libecore-file1 libecore-imf1 libecore-input1
  libecore-ipc1 libecore-x1 libecore1 libedbus1 libedje-bin libedje1 libeet1
  libefreet1 libeina1 libembryo-bin libembryo1 libevas1 libevas1-engines-core
  libevas1-engines-x libgmlib0 libgmtk0 libgmtk0-data libgrail5 libkms1
  libmath-round-perl libpython3.3-dbg linux-headers-3.7.0-2
  linux-headers-3.7.0-2-generic linux-headers-3.7.0-3
  linux-headers-3.7.0-3-generic linux-headers-3.7.0-4
  linux-headers-3.7.0-4-generic linux-headers-3.7.0-6
  linux-headers-3.7.0-6-generic linux-headers-3.7.0-7
  linux-headers-3.7.0-7-generic linux-image-3.7.0-2-generic
  linux-image-3.7.0-3-generic linux-image-3.7.0-4-generic
  linux-image-3.7.0-6-generic linux-image-3.7.0-7-generic
  linux-image-extra-3.7.0-2-generic linux-image-extra-3.7.0-3-generic
  linux-image-extra-3.7.0-4-generic linux-image-extra-3.7.0-6-generic
  linux-image-extra-3.7.0-7-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up xdiagnose (3.4) ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.7/dist-packages/xdiagnose/welcome.py', 219, 32, ' "--height=480")\n'))

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 101
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)
gnomefreak@Development:~$ ubuntu-bug dpkg

(process:28846): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

Here are a few more commands.
gnomefreak@Development:~$ sudo apt-get -f install
[sudo] password for gnomefreak:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apport-hooks-medibuntu e17-data libatk-adaptor-data libc-ares2 libecore-con1
  libecore-evas1 libecore-fb1 libecore-file1 libecore-imf1 libecore-input1
  libecore-ipc1 libecore-x1 libecore1 libedbus1 libedje-bin libedje1 libeet1
  libefreet1 libeina1 libembryo-bin libembryo1 libevas1 libevas1-engines-core
  libevas1-engines-x libgmlib0 libgmtk0 libgmtk0-data libgrail5 libkms1
  libmath-round-perl libpython3.3-dbg linux-headers-3.7.0-2
  linux-headers-3.7.0-2-generic linux-headers-3.7.0-3
  linux-headers-3.7.0-3-generic linux-headers-3.7.0-4
  linux-headers-3.7.0-4-generic linux-headers-3.7.0-6
  linux-headers-3.7.0-6-generic linux-headers-3.7.0-7
  linux-headers-3.7.0-7-generic linux-image-3.7.0-2-generic
  linux-image-3.7.0-3-generic linux-image-3.7.0-4-generic
  linux-image-3.7.0-6-generic linux-image-3.7.0-7-generic
  linux-image-extra-3.7.0-2-generic linux-image-extra-3.7.0-3-generic
  linux-image-extra-3.7.0-4-generic linux-image-extra-3.7.0-6-generic
  linux-image-extra-3.7.0-7-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up xdiagnose (3.4) ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.7/dist-packages/xdiagnose/welcome.py', 219, 32, ' "--height=480")\n'))

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 101
Errors were encountered while processing:
 xdiagnose
E: Sub-process /usr/bin/dpkg returned an error code (1)
gnomefreak@Development:~$ install xdiagnose
Reading package lists... Done
Building dependency tree
Reading state information... Done
xdiagnose is already the newest version.
The following packages were automatically installed and are no longer required:
  apport-hooks-medibuntu e17-data libatk-adaptor-data libc-ares2 libecore-con1
  libecore-evas1 libecore-fb1 libecore-file1 libecore-imf1 libecore-input1
  libecore-ipc1 libecore-x1 libecore1 libedbus1 libedje-bin libedje1 libeet1
  libefreet1 libeina1 libembryo-bin libembryo1 libevas1 libevas1-engines-core
  libevas1-engines-x libgmlib0 libgmtk0 libgmtk0-data libgrail5 libkms1
  libmath-round-perl libpython3.3-dbg linux-headers-3.7.0-2
  linux-headers-3.7.0-2-generic linux-headers-3.7.0-3
  linux-headers-3.7.0-3-generic linux-headers-3.7.0-4
  linux-headers-3.7.0-4-generic linux-headers-3.7.0-6
  linux-headers-3.7.0-6-generic linux-headers-3.7.0-7
  linux-headers-3.7.0-7-generic linux-image-3.7.0-2-generic
  linux-image-3.7.0-3-generic linux-image-3.7.0-4-generic
  linux-image-3.7.0-6-generic linux-image-3.7.0-7-generic
  linux-image-extra-3.7.0-2-generic linux-image-extra-3.7.0-3-generic
  linux-image-extra-3.7.0-4-generic linux-image-extra-3.7.0-6-generic
  linux-image-extra-3.7.0-7-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up xdiagnose (3.4) ...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.7/dist-packages/xdiagnose/welcome.py', 219, 32, ' "--height=480")\n'))

dpkg: error processing xdiagnose (--configure):
 subprocess installed post-installation script returned error exit status 101
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)

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: dpkg 1.16.9ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-0.4-generic 3.8.0-rc3
Uname: Linux 3.8.0-0-generic i686
ApportVersion: 2.8-0ubuntu2
Architecture: i386
Date: Sat Jan 19 01:17:44 2013
InstallationDate: Installed on 2012-07-24 (178 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120331)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C
 SHELL=/bin/bash
SourcePackage: dpkg
UpgradeStatus: Upgraded to raring on 2012-07-24 (178 days ago)

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

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

Changed in dpkg (Ubuntu):
status: New → Confirmed
Revision history for this message
Walther (veeti-haapsamo) wrote :

Similar story; regular apt-get update && apt-get upgrade, and bam. No previous (relevant/related) issues.

affects: dpkg (Ubuntu) → xdiagnose (Ubuntu)
Walther (veeti-haapsamo)
summary: - during a regular upgrade of ht updated packages. in Raring
+ xdiagnose does not install properly during a regular update
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: xdiagnose does not install properly during a regular update

Thanks for your report.

Confirmed with xdiagnose 3.4 on raring.

There are missing closing square brackets line 219 and 229 in file /usr/lib/python2.7/dist-packages/xdiagnose/welcome.py

--- /tmp/welcome.orig.py 2013-01-19 09:44:41.194723574 +0100
+++ /usr/lib/python2.7/dist-packages/xdiagnose/welcome.py 2013-01-19 09:45:20.170724643 +0100
@@ -216,7 +216,7 @@
                  "--text-info",
                  "--filename=%s" %(filename),
                  "--width=640",
- "--height=480")
+ "--height=480"])

     def on_edit_file(self, widget, filename):
         if not os.path.exists(self.xorg_conf_path):
@@ -226,7 +226,7 @@
                  "--text-info",
                  "--filename=%s" %(self.xorg_conf_path),
                  "--width=640",
- "--height=480")
+ "--height=480"])

Changed in xdiagnose (Ubuntu):
importance: Undecided → Critical
status: Confirmed → Triaged
assignee: nobody → Bryce Harrington (bryce)
tags: added: rls-r-incoming
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Then py3compile fails too with
Setting up xdiagnose (3.4) ...
  File "/usr/lib/python3/dist-packages/xdiagnose/utils/url_io.py", line 22
    print tr
           ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/xdiagnose/utils/node.py", line 304
    print tree
             ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/xdiagnose/welcome.py", line 219
    "--height=480")
                  ^
SyntaxError: invalid syntax

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

summary: - xdiagnose does not install properly during a regular update
+ xdiagnose 3.4 installation failed with syntax errors
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 3.4.1

---------------
xdiagnose (3.4.1) raring; urgency=low

  * Fix python3 issues
    (LP: #1101688)
 -- Bryce Harrington <email address hidden> Sat, 19 Jan 2013 01:26:24 -0800

Changed in xdiagnose (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Fixed but at the reboot apport popup the same error message, telling that I've already encountered the same error.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

xdiagnose:
  Installed: 3.4.1
  Candidate: 3.4.1
  Version table:
 *** 3.4.1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Bryce Harrington (bryce) wrote :

No, it looks like the original issue is indeed fixed by 3.4.1, however there's also another error in the apport script (which is weird; it worked just fine on my system). I've split that out as #1101800 and will work on a fix for it.

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.