Package: trash-cli Version: 0.1.10.28-2 Severity: important Hi !
Whenever I try to use trash-cli operations (list-trash or empty-trash), I get the following error: $ list-trash Traceback (most recent call last): File "/usr/bin/list-trash", line 5, in <module> for trashedfile in TrashDirectory.allTrashedFiles() : File "/var/lib/python-support/python2.5/libtrash.py", line 221, in allTrashedFiles for volume in Volume.all() : File "/var/lib/python-support/python2.5/libtrash.py", line 481, in all return [ Volume(elem) for elem in Volume.__mount_list()] File "/var/lib/python-support/python2.5/libtrash.py", line 473, in __mount_list file_sys,disc_size,disc_used,disc_avail,disc_cap_pct,mount=df_list.split() ValueError: too many values to unpack This results from the fact that my 'df' output below, is not properly parsed by /var/lib/python-support/python2.5/libtrash.py $ df Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur /dev/mapper/pomme-root 12G 8,4G 2,9G 75% / tmpfs 505M 8,0K 505M 1% /lib/init/rw udev 10M 96K 10M 1% /dev tmpfs 505M 0 505M 0% /dev/shm /dev/hda3 278M 89M 174M 34% /boot /dev/mapper/pomme-home 33G 18G 14G 56% /home I see two problems: 1) libtrash.py tries to ignore the first line by looking for "filesystem", but this string is not present in the localised output. Using LC_ALL=C helps for this issue, but I get a similar error due to the second line. 2) I am using lvm, which results in relatively long names for device names, causing some \n characters in the output. Therefore one filesystem is represented by more than one line. When libtrash.py reads the second line, it gets only one element: ValueError: need more than 1 value to unpack replacing 'df' by 'df -P' on line 472 helps, but I am not sure it is the best way. Best regards, Cédric Boutillier -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (700, 'testing'), (200, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 2.6.25-mol-ice Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages trash-cli depends on: ii python 2.5.2-2 An interactive high-level object-o ii python-support 0.8.5 automated rebuilding support for P trash-cli recommends no packages. trash-cli suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]