I can confirm this bug.

# aptitude -vV upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages have been kept back:
  fftw3 [3.0.1-14 -> 3.1.1-1]
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-serial
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-serial
#

This happened after aptitude produced the following errors:

piwakawaka:~# aptitude update
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Get:1 ftp://debian.paradise.net.nz sid Release.gpg [189B]
Get:2 ftp://debian.paradise.net.nz sid Release [38.3kB]
Get:3 http://http.us.debian.org sid Release.gpg [189B]
Get:4 http://http.us.debian.org sid Release [38.3kB]
Get:5 ftp://debian.paradise.net.nz sid/main Packages/DiffIndex [12.6kB]
Get:6 http://http.us.debian.org sid/main Packages/DiffIndex [12.6kB]
Hit ftp://debian.paradise.net.nz sid/non-free Packages/DiffIndex
Hit ftp://debian.paradise.net.nz sid/contrib Packages/DiffIndex
Get:7 2006-06-08-1341.45.pdiff [17.8kB]
Get:8 http://http.us.debian.org sid/contrib Packages/DiffIndex [12.5kB]
Get:9 2006-06-08-1341.45.pdiff [17.8kB]
Get:10 2006-06-08-1341.45.pdiff [17.8kB]
Hit http://http.us.debian.org sid/non-free Packages/DiffIndex
Get:11 http://http.us.debian.org sid/main Sources/DiffIndex [12.5kB]
Hit http://http.us.debian.org sid/contrib Sources/DiffIndex
Hit http://http.us.debian.org sid/non-free Sources/DiffIndex
Get:12 2006-06-09-1339.26.pdiff [15.8kB]
Get:13 2006-06-09-1339.26.pdiff [15.8kB]
Get:14 2006-06-09-1339.26.pdiff [320B]
Get:15 2006-06-09-1339.26.pdiff [320B]
Get:16 2006-06-09-1339.26.pdiff [9577B]
Get:17 2006-06-09-1339.26.pdiff [9577B]
Get:18 2006-06-09-1339.26.pdiff [15.8kB]
Get:19 2006-06-09-1339.26.pdiff [320B]
Get:20 2006-06-09-1339.26.pdiff [9577B]
Fetched 171kB in 10s (17.1kB/s)
Reading package lists... Done
piwakawaka:~# aptitude -vV upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages have been kept back:
  cpp [4:4.0.3-4 -> 4:4.1.1-1] fftw3 [3.0.1-14 -> 3.1.1-1] g++ [4:4.0.3-4 -> 
4:4.1.1-1] g77 [4:3.4.6-4 -> 4:3.4.6-5] gcc [4:4.0.3-4 -> 4:4.1.1-1]
  gnome-media [2.12.0-4 -> 2.14.2-1] gnome-media-common [2.12.0-4 -> 2.14.2-1] 
gnome-themes [2.14.0-1 -> 2.14.2-2] gpc [4:3.4.6-4 -> 4:3.4.6-5]
  libgnome-media0 [2.12.0-4 -> 2.14.2-1] pciutils [1:2.1.11-16 -> 1:2.2.1-1] 
python-imaging [1.1.5-4 -> 1.1.5-7]
  python-imaging-tk [1.1.5-4 -> 1.1.5-7] python-serial [2.2-1 -> 2.2-2] python-tk 
[2.3.5-5 -> 2.4.3-1] python2.3 [2.3.5-9.1 -> 2.3.5-12]
  python2.3-dev [2.3.5-9.1 -> 2.3.5-12] python2.4 [2.4.3-3 -> 2.4.3-5] 
python2.4-minimal [2.4.3-3 -> 2.4.3-5]
The following packages will be upgraded:
  apt [0.6.44.1 -> 0.6.44.1-0.1] apt-doc [0.6.44.1 -> 0.6.44.1-0.1] apt-utils 
[0.6.44.1 -> 0.6.44.1-0.1]
  avifile-divx-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1] 
avifile-mad-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1]
  avifile-mjpeg-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1] 
avifile-player [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1]
  avifile-utils [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1] 
avifile-vorbis-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1]
  avifile-win32-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1] 
avifile-xvid-plugin [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1]
  gsfonts-x11 [0.19 -> 0.19.0.1] irb1.8 [1.8.4-2 -> 1.8.4-3] libapt-pkg-dev 
[0.6.44.1 -> 0.6.44.1-0.1]
  libavifile-0.7-dev [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1] 
libavifile-0.7c2 [1:0.7.44.20051021-2 -> 1:0.7.44.20051021-2.1]
  libnm-glib0 [0.6.2-3 -> 0.6.3-1] libreadline-ruby1.8 [1.8.4-2 -> 1.8.4-3] 
libruby1.8 [1.8.4-2 -> 1.8.4-3] libsdl-image1.2 [1.2.4-1 -> 1.2.5-1]
  libtag1c2a [1.4-3 -> 1.4-4] libxml2 [2.6.24.dfsg-1 -> 2.6.26.dfsg-1] 
libxml2-utils [2.6.24.dfsg-1 -> 2.6.26.dfsg-1]
  libxmlsec1 [1.2.9-1+b1 -> 1.2.9-2] libxmlsec1-nss [1.2.9-1+b1 -> 1.2.9-2] 
libxmlsec1-openssl [1.2.9-1+b1 -> 1.2.9-2]
  libxslt1.1 [1.1.16-2 -> 1.1.17-1] python-gnome2-extras [2.12.1-2.1 -> 2.12.1-3] 
python-libxml2 [2.6.24.dfsg-1 -> 2.6.26.dfsg-1]
  python2.3-gnome2-extras [2.12.1-2.1 -> 2.12.1-3] python2.3-libxml2 [2.6.24.dfsg-1 
-> 2.6.26.dfsg-1] rdoc1.8 [1.8.4-2 -> 1.8.4-3]
  ruby1.8 [1.8.4-2 -> 1.8.4-3] xsltproc [1.1.16-2 -> 1.1.17-1]
The following packages are RECOMMENDED but will NOT be installed:
  debian-archive-keyring [2006.01.18]
34 packages upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
Need to get 8497kB of archives. After unpacking 457kB will be used.
Do you want to continue? [Y/n/?]
Get:1 http://http.us.debian.org sid/main libapt-pkg-dev 0.6.44.1-0.1 [82.1kB]
<snip>
Get:34 http://http.us.debian.org sid/main avifile-utils 1:0.7.44.20051021-2.1 
[287kB]
Fetched 8497kB in 4m43s (30.0kB/s)
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n]?
apt-listchanges: Mailing root: apt-listchanges: changelogs for piwakawaka
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Extracting templates from packages: 88%W: Couldn't stat source package list 
http://http.us.debian.org sid/non-free Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Extracting templates from packages: 100%
(Reading database ... 206947 files and directories currently installed.)
Preparing to replace libapt-pkg-dev 0.6.44.1 (using 
.../libapt-pkg-dev_0.6.44.1-0.1_i386.deb) ...

<snip>

Preparing to replace python2.3-gnome2-extras 2.12.1-2.1 (using 
.../python2.3-gnome2-extras_2.12.1-3_i386.deb) ...
Unpacking replacement python2.3-gnome2-extras ...
Preparing to replace python-gnome2-extras 2.12.1-2.1 (using 
.../python-gnome2-extras_2.12.1-3_all.deb) ...
Unpacking replacement python-gnome2-extras ...
Preparing to replace python2.3-libxml2 2.6.24.dfsg-1 (using 
.../python2.3-libxml2_2.6.26.dfsg-1_i386.deb) ...
Unpacking replacement python2.3-libxml2 ...
Preparing to replace python-libxml2 2.6.24.dfsg-1 (using 
.../python-libxml2_2.6.26.dfsg-1_all.deb) ...
Unpacking replacement python-libxml2 ...

<snip>

Setting up python2.3-gnome2-extras (2.12.1-3) ...

Setting up python-gnome2-extras (2.12.1-3) ...
Setting up python2.3-libxml2 (2.6.26.dfsg-1) ...

Setting up python-libxml2 (2.6.26.dfsg-1) ...
Setting up rdoc1.8 (1.8.4-3) ...
Setting up xsltproc (1.1.17-1) ...
Setting up avifile-player (0.7.44.20051021-2.1) ...

Setting up avifile-utils (0.7.44.20051021-2.1) ...

piwakawaka:~# aptitude -vV dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  gstreamer0.8-alsa [0.8.12-4] gstreamer0.8-artsd [0.8.12-4] 
gstreamer0.8-cdparanoia [0.8.12-4] gstreamer0.8-esd [0.8.12-4]
  libavahi-compat-howl0 [0.6.10-1] libnautilus-burn2 [2.12.3-2]
The following NEW packages will be automatically installed:
  cpp-4.1 [4.1.1-2] g++-4.1 [4.1.1-2] gcc-4.1 [4.1.1-2] 
gstreamer0.10-plugins-base [0.10.7-2] gstreamer0.10-plugins-good [0.10.3-2]
  gstreamer0.10-x [0.10.7-2] gtk2-engines [1:2.6.8-2] libpci2 [2:2.1.11-1] 
libssp0 [4.1.1-2] libssp0-dev [4.1.1-2] libstdc++6-4.1-dev [4.1.1-2]
  libvisual0.2 [0.2.0-4] libvisual0.2-plugins [0.2.0.dfsg.1-1] python-central 
[0.4.7]
The following packages will be automatically REMOVED:
  gtk2-engines-clearlooks [1:2.6.8-1] gtk2-engines-crux [1:2.6.8-1] 
gtk2-engines-lighthouseblue [1:2.6.8-1] gtk2-engines-mist [1:2.6.8-1]
  gtk2-engines-redmond95 [1:2.6.8-1] gtk2-engines-smooth [1:2.6.8-1] 
gtk2-engines-thinice [1:2.6.8-1] python2.3-imaging [1.1.5-4]
  python2.3-imaging-tk [1.1.5-4] python2.3-tk [2.3.5-9.1]
The following packages have been kept back:
  fftw3 [3.0.1-14 -> 3.1.1-1]
The following NEW packages will be installed:
  cpp-4.1 [4.1.1-2] g++-4.1 [4.1.1-2] gcc-4.1 [4.1.1-2] 
gstreamer0.10-plugins-base [0.10.7-2] gstreamer0.10-plugins-good [0.10.3-2]
  gstreamer0.10-x [0.10.7-2] gtk2-engines [1:2.6.8-2] libpci2 [2:2.1.11-1] 
libssp0 [4.1.1-2] libssp0-dev [4.1.1-2] libstdc++6-4.1-dev [4.1.1-2]
  libvisual0.2 [0.2.0-4] libvisual0.2-plugins [0.2.0.dfsg.1-1] python-central 
[0.4.7]
The following packages will be REMOVED:
  gtk2-engines-clearlooks [1:2.6.8-1] gtk2-engines-crux [1:2.6.8-1] 
gtk2-engines-lighthouseblue [1:2.6.8-1] gtk2-engines-mist [1:2.6.8-1]
  gtk2-engines-redmond95 [1:2.6.8-1] gtk2-engines-smooth [1:2.6.8-1] 
gtk2-engines-thinice [1:2.6.8-1] python2.3-imaging [1.1.5-4]
  python2.3-imaging-tk [1.1.5-4] python2.3-tk [2.3.5-9.1]
The following packages will be upgraded:
  cpp [4:4.0.3-4 -> 4:4.1.1-1] g++ [4:4.0.3-4 -> 4:4.1.1-1] g77 [4:3.4.6-4 -> 
4:3.4.6-5] gcc [4:4.0.3-4 -> 4:4.1.1-1]
  gnome-media [2.12.0-4 -> 2.14.2-1] gnome-media-common [2.12.0-4 -> 2.14.2-1] 
gnome-themes [2.14.0-1 -> 2.14.2-2] gpc [4:3.4.6-4 -> 4:3.4.6-5]
  libgnome-media0 [2.12.0-4 -> 2.14.2-1] pciutils [1:2.1.11-16 -> 1:2.2.1-1] 
python-imaging [1.1.5-4 -> 1.1.5-7]
  python-imaging-tk [1.1.5-4 -> 1.1.5-7] python-serial [2.2-1 -> 2.2-2] python-tk 
[2.3.5-5 -> 2.4.3-1] python2.3 [2.3.5-9.1 -> 2.3.5-12]
  python2.3-dev [2.3.5-9.1 -> 2.3.5-12] python2.4 [2.4.3-3 -> 2.4.3-5] 
python2.4-minimal [2.4.3-3 -> 2.4.3-5]
The following packages are SUGGESTED but will NOT be installed:
  gcc-4.1-doc [4.1.1-2] gcc-4.1-locales [4.1.1-2] lib64gcc1 [1:4.1.1-2] 
lib64ssp0 [4.1.1-2] lib64stdc++6 [4.1.1-2] libc6-dev-amd64 [2.3.6-15]
  libstdc++6-4.1-doc [4.1.1-2] stl-manual [3.30-5]
18 packages upgraded, 14 newly installed, 16 to remove and 1 not upgraded.
Need to get 21.5MB of archives. After unpacking 27.1MB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Get:1 ftp://debian.paradise.net.nz sid/main gstreamer0.10-plugins-good 0.10.3-2 
[607kB]

<snip>

Get:32 ftp://debian.paradise.net.nz sid/main python-serial 2.2-2 [36.0kB]
Fetched 21.5MB in 12m8s (29.6kB/s)
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n]?
apt-listchanges: Mailing root: apt-listchanges: changelogs for piwakawaka
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Extracting templates from packages: 93%W: Couldn't stat source package list 
http://http.us.debian.org sid/non-free Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Extracting templates from packages: 100%
(Reading database ... 206947 files and directories currently installed.)

<snip>

dpkg: python2.3-imaging-tk: dependency problems, but removing anyway as you 
request:
 python-imaging-tk depends on python2.3-imaging-tk.
 skencil depends on python2.3-imaging-tk.
Removing python2.3-imaging-tk ...
(Reading database ... 206968 files and directories currently installed.)
Preparing to replace python-imaging-tk 1.1.5-4 (using 
.../python-imaging-tk_1.1.5-7_i386.deb) ...
Unpacking replacement python-imaging-tk ...
dpkg: python2.3-tk: dependency problems, but removing anyway as you request:
 python-tk depends on python2.3-tk (>= 2.3.5-1).
(Reading database ... 206972 files and directories currently installed.)
Removing python2.3-tk ...
(Reading database ... 206952 files and directories currently installed.)
Preparing to replace python-tk 2.3.5-5 (using .../python-tk_2.4.3-1_i386.deb) 
...
Unpacking replacement python-tk ...
Selecting previously deselected package python-central.
Unpacking python-central (from .../python-central_0.4.7_all.deb) ...
Preparing to replace python2.4 2.4.3-3 (using .../python2.4_2.4.3-5_i386.deb) 
...
Unpacking replacement python2.4 ...
Preparing to replace python2.4-minimal 2.4.3-3 (using 
.../python2.4-minimal_2.4.3-5_i386.deb) ...
Unpacking replacement python2.4-minimal ...
dpkg: python2.3-imaging: dependency problems, but removing anyway as you 
request:
 python-imaging depends on python2.3-imaging.
(Reading database ... 206995 files and directories currently installed.)
Removing python2.3-imaging ...
(Reading database ... 206915 files and directories currently installed.)
Preparing to replace python-imaging 1.1.5-4 (using 
.../python-imaging_1.1.5-7_i386.deb) ...
Unpacking replacement python-imaging ...

<snip>

Preparing to replace python2.3-dev 2.3.5-9.1 (using 
.../python2.3-dev_2.3.5-12_i386.deb) ...
Unpacking replacement python2.3-dev ...
Preparing to replace python2.3 2.3.5-9.1 (using 
.../python2.3_2.3.5-12_i386.deb) ...
Unpacking replacement python2.3 ...

<snip>

Preparing to replace python-serial 2.2-1 (using 
.../python-serial_2.2-2_all.deb) ...
Unpacking replacement python-serial ...

<snip>

Setting up python-central (0.4.7) ...
Setting up python2.4-minimal (2.4.3-5) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

Setting up python2.4 (2.4.3-5) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

Setting up python-imaging (1.1.5-7) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

Setting up python-tk (2.4.3-1) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

Setting up python-imaging-tk (1.1.5-7) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

<snip>

Setting up python2.3 (2.3.5-12) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)

Setting up python2.3-dev (2.3.5-12) ...

<snip>

Setting up python-serial (2.2-2) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Setting up libstdc++6-4.1-dev (4.1.1-2) ...
Setting up g++-4.1 (4.1.1-2) ...
Setting up g++ (4.1.1-1) ...

Errors were encountered while processing:
 python-serial
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python-serial (2.2-2) ...
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
W: Couldn't stat source package list http://http.us.debian.org sid/non-free 
Packages 
(/var/lib/apt/lists/http.us.debian.org_debian_dists_sid_non-free_binary-i386_Packages)
 - stat (2 No such file or directory)
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-serial
#

However updating the package lists again disposed of the apt errors while the py_compilefiles errors remain.

Looking at /var/lib/dpkg/info/python-serial.postinst :

#!/bin/sh
set -e
# Automatically added by dh_pycentral
if which pycentral >/dev/null 2>&1; then
        pycentral pkginstall python-serial
fi
# End automatically added section

And /usr/bin/py_compilefiles :

<declarations snipped>

def main():
    """Script main program."""
    import getopt
    try:
        opts, args = getopt.getopt(sys.argv[1:], 'lfqd:x:')
    except getopt.error, msg:
        print msg
        print "usage: python compilefiles.py [-s] [-f] [-q] " \
              "[-x regexp] [file ...] [-]"
        print "-s: read files from stdin, instead from command line"
        print "-f: force rebuild even if timestamps are up-to-date"
        print "-q: quiet operation"
        print "-x regexp: skip files matching the regular expression regexp"
        print "   the regexp is search for in the full path of the file"
        sys.exit(2)
    ddir = None
    force = 0
    quiet = 0
    rx = None
    for o, a in opts:
        if o == '-d': ddir = a
        if o == '-f': force = 1
        if o == '-q': quiet = 1
        if o == '-x':
            import re
            rx = re.compile(a)
    if ddir:
        if len(args) != 1:
            print "-d destdir require exactly one directory argument"
            sys.exit(2)
    success = 1

    try:
        files = []
        for arg in args:
            if arg == '-':
                for line in sys.stdin:      [line 90]
                    files.append(line[:-1])
            else:
                files.append(arg)

        if not compile_files(files, ddir, force, rx, quiet):
            success = 0
    except KeyboardInterrupt:
        print "\n[interrupt]"
        success = 0
    return success

if __name__ == '__main__':
    exit_status = int(not main())          [line 103]
    sys.exit(exit_status)

I notice that the usage description talks about the -s option, but that there seems to be no code to handle it. The -s option is said to direct that input be taken from stdin yet the code looks for a '-' instead and this is where the error in the traceback occurs. Note that I can't read or write python to save myself from being eaten by snakes.

Taking a lead from your earlier request for more information:

# aptitude show python-parallel
Package: python-parallel
New: yes
State: partially configured
Automatically installed: no
Version: 0.2-3
Priority: optional
Section: python
Maintainer: Matthias Klose <[EMAIL PROTECTED]>
Uncompressed Size: 61.4k
Depends: python (>= 2.3), python-central
Description: Module encapsulating access for the parallel port
 This module capsulates the access for the parallel port. It provides backends 
for standard Python running on Windows, Linux, BSD (possibly any POSIX
 compilant system). The module named "parallel" automaticaly selects the 
appropriate backend.

Tags: devel::library, langdevel::python, made-of::lang:python, 
role::content:data

piwakawaka:~#

[note typo: compilant should be compliant]

So I tried installing python-parallel which only compounded the error:

# aptitude install python-parallel
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages have been kept back:
  fftw3
The following NEW packages will be installed:
  python-parallel
0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 12.2kB of archives. After unpacking 61.4kB will be used.
Writing extended state information... Done
Get:1 ftp://debian.paradise.net.nz sid/main python-parallel 0.2-3 [12.2kB]
Fetched 12.2kB in 0s (22.1kB/s)
Selecting previously deselected package python-parallel.
(Reading database ... 207670 files and directories currently installed.)
Unpacking python-parallel (from .../python-parallel_0.2-3_all.deb) ...
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-parallel (0.2-3) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-parallel (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-serial
 python-parallel
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up python-parallel (0.2-3) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-parallel (--configure):
 subprocess post-installation script returned error exit status 1
Setting up python-serial (2.2-2) ...
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 103, in ?
    exit_status = int(not main())
  File "/usr/bin/py_compilefiles", line 90, in main
    for line in sys.stdin:
TypeError: loop over non-sequence
ERROR:root:pycentral pkginstall:
dpkg: error processing python-serial (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-parallel
 python-serial
#

I'm now in over my head.

I hope this helps.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to