Bug#558047: dstat: Python SyntaxError during installation

2009-11-26 Thread Josh Triplett
Package: dstat
Version: 0.7.0-1
Severity: grave
Justification: renders package unusable

Setting up dstat (0.7.0-1) ...
Compiling /usr/share/dstat/dstat_mysql5_conn.py ...
  File /usr/share/dstat/dstat_mysql5_conn.py, line 39
self.set2['Threads'] = float(thread[1] / float(max[1]) 1.0 * 100)
 ^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (54)
pycentral pkginstall: error byte-compiling files (54)
dpkg: error processing dstat (--configure):
 subprocess installed post-installation script returned error exit status 1


- Josh Triplett

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dstat depends on:
ii  python2.5.4-2An interactive high-level object-o
ii  python-central0.6.13 register and build utility for Pyt

dstat recommends no packages.

dstat suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#558047: dstat: Python SyntaxError during installation

2009-11-26 Thread Dag Wieers

On Thu, 26 Nov 2009, Josh Triplett wrote:


Package: dstat
Version: 0.7.0-1
Severity: grave
Justification: renders package unusable

Setting up dstat (0.7.0-1) ...
Compiling /usr/share/dstat/dstat_mysql5_conn.py ...
 File /usr/share/dstat/dstat_mysql5_conn.py, line 39
   self.set2['Threads'] = float(thread[1] / float(max[1]) 1.0 * 100)
^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (54)
pycentral pkginstall: error byte-compiling files (54)
dpkg: error processing dstat (--configure):
subprocess installed post-installation script returned error exit status 1


I fixed this now. I wonder if there is a way to only syntax-check the 
plugins so that a make dist would automatically trigger this.


Thanks for reporting,
--
--   dag wieers,  d...@wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org