1.9.2 - Exception while running operation 'localizations': ''

Forums: 

In 1.9.2 I see there are two localizations. The one under Links 2 for LInux, not sure what this one is all about, or a mistake in the GUI, but if I check it and run the scan I get this output at the terminal;

Traceback (most recent call last):
File "/usr/share/bleachbit/Worker.py", line 330, in run_operations
for dummy in self.clean_operation(operation):
File "/usr/share/bleachbit/Worker.py", line 127, in clean_operation
assert(isinstance(operation_options, list))
AssertionError

And in the GUI listed in red at the bottom of the screen it shows;

RED ---> Exception while running operation 'localizations': ''

Disk space to be recovered: 18.7MB
Files to be deleted: 460
Special operations: 9
RED ---> Errors: 1

Which version of Linux?

It sounds like this is not the Localizations checkbox in the System section like shown here in this old screenshot (BleachBit 0.6), so perhaps you could take a screenshot and post the URL here. One useful service for posting is http://snag.gy/

Alternativel you could open a bug ticket at https://bugs.launchpad.net/bleachbit/ and attach the screenshot as a PNG

---
Andrew, lead developer

I'm running Slackware 14.1 x86_64 and I have two localizations sections, one under Links 2 besides the Systems one...

Here's a screen shot;

http://i.imgur.com/nwAUP8R.jpg

BBUser, did you install from source using the standard process of unpackaging the tarball and then running make install? If not, I wonder whether something in your install script needs updated.

I filed this as issue GH110

---
Andrew, lead developer

I installed from source.

And here is my entire build script;

#!/bin/sh
#
# SlackBuild script for bleachbit.

PRGNAM=bleachbit
VERSION=${VERSION:-1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_foo}

ARCH=noarch

CWD=$(pwd)
TMP=${TMP:-/tmp/sar}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

# Exclude the Windows-only cleaners from the source per author's instructions.
grep -l os=.windows. cleaners/*xml | xargs rm -f

make
make install DESTDIR=$PKG prefix=/usr

rm -rf $PKG/usr/share/locale

mkdir -p $PKG/usr/share/gnome
cat $PKG/usr/share/bleachbit/__init__.py > $PKG/usr/share/gnome/__init__.py

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

I still see the 'localizations' in 1.9.3 under 'Links 2'...

BleachBit version 1.9.3 beta does not have any fixes for this. After your message yesterday I figured out how to reproduce it: I disabled the option "hide irrelevant cleaners." Is that disabled on your system too?

I will look into fixing it, but it may not be before version 1.10. The error is harmless and doesn't indicate a loss of functionality.

---
Andrew, lead developer

"hide irrelevant cleaners" still works here...

I recently wrote a fix for the next release after 1.9.3. This makes localizations not appear at the top level, even when hide irrelevant cleaners is disabled.

---
Andrew, lead developer

There is now a fix released in BleachBit 1.9.4 beta

---
Andrew, lead developer

I don't see two localizations now in 1.9.4, looks good... :)