Please Release "Bleachbit" System Cleaner For Tumbleweed...

Hi,

Been using openSUSE Tumbleweed KDE 64Bit for about a week.
My only complaint is “BleachBit” system cleaner is not available for Tumbleweed.
Will it be released soon?

Jesse

Search for the ‘Experimental’ package (Utilities repo)…
https://software.opensuse.org/package/bleachbit

Hi
It needs to be python3 ready… ask the maintainers to look at updating and submitting…

Hi,

Anyone here use BleachBit on Tumbleweed?
I’ve used BleachBit for many years on *ubuntu distro’s with no issues.
Just a little worried it would break my system.
Let me know, thanks!

Jesse

Tried BleachBit on Tumbleweed:
It installs fine, but when I run it in Start menu nothing happens?

Running in Konsole show the following:

SortaFastDesktop:/home/jlp # bleachbit
scandir is not available, so falling back to slower os.walk()

(process:19901): Gdk-CRITICAL **: 13:25:25.490: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/share/bleachbit/GUI.py", line 294, in do_activate
    application=self, title=APP_NAME, auto_exit=self._auto_exit)
  File "/usr/share/bleachbit/GUI.py", line 475, in __init__
    self.populate_window()
  File "/usr/share/bleachbit/GUI.py", line 1020, in populate_window
    operations = self.create_operations_box()
  File "/usr/share/bleachbit/GUI.py", line 726, in create_operations_box
    self.tree_store = TreeInfoModel()
  File "/usr/share/bleachbit/GUI.py", line 310, in __init__
    GObject.TYPE_STRING, GObject.TYPE_BOOLEAN, GObject.TYPE_PYOBJECT, GObject.TYPE_STRING)
TypeError: GObject.__init__() takes exactly 0 arguments (4 given)

Any ideas?

Jesse

Which one did you install?

I use the one from the user ‘deltafox’, it has been build against python3 already and works fine with my Tumbleweed installation.
https://build.opensuse.org/package/show/home%3Adeltafox/bleachbit

Question remains: Do you really need it? I only use it to get rid of all those unnecessary language packages and leave everything else untouched.

Hi
Language packages go via;


rpm -qa *-lang --qf "%{name}
" |xargs zypper rm -u

zypper al *-lang

Thank You.

Hi,

i used the “deltafox” one too…
It installed fine, just does not run?

Jesse

Hi
Again, on Tumbleweed, if python2 dependent it is going, going and will be gone.

Hi,

As previous post stated, the BleachBit I tried to use is built against python3.
Any ideas why this is not working?
Thanks!

Jesse

Full output when run in Konsole:

jlp@SortaFastDesktop:~> su
Password: 
SortaFastDesktop:/home/jlp # bleachbit
scandir is not available, so falling back to slower os.walk()

(process:530): Gdk-CRITICAL **: 17:47:10.378: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
  File "/usr/share/bleachbit/GUI.py", line 294, in do_activate
    application=self, title=APP_NAME, auto_exit=self._auto_exit)
  File "/usr/share/bleachbit/GUI.py", line 475, in __init__
    self.populate_window()
  File "/usr/share/bleachbit/GUI.py", line 1020, in populate_window
    operations = self.create_operations_box()
  File "/usr/share/bleachbit/GUI.py", line 726, in create_operations_box
    self.tree_store = TreeInfoModel()
  File "/usr/share/bleachbit/GUI.py", line 310, in __init__
    GObject.TYPE_STRING, GObject.TYPE_BOOLEAN, GObject.TYPE_PYOBJECT, GObject.TYPE_STRING)
TypeError: GObject.__init__() takes exactly 0 arguments (4 given)
^CTraceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/gi/_ossighelper.py", line 106, in signal_notify
    def signal_notify(source, condition):
  File "/usr/lib64/python3.7/site-packages/gi/_ossighelper.py", line 243, in sigint_handler
    _callback_stack.pop()()
  File "/usr/share/bleachbit/GUI.py", line 259, in quit
    self._window.destroy()
AttributeError: 'NoneType' object has no attribute 'destroy'

Hi
So where did the package come from? Is python3-scandir installed?

Hi,

Installed: “python3-scandir”, but BleachBit is still refusing to run on Tumbleweed?
Any other ideas?

I downloaded BleachBit from below:
https://build.opensuse.org/package/show/home%3Adeltafox/bleachbit

Jesse

Hi
Edit these three files (the packagers should fix this) and make sure the whole shebang is #!/usr/bin/python3


   50s] bleachbit.noarch: E: env-script-interpreter (Badness: 9) /usr/bin/bleachbit /usr/bin/env python3
   50s] bleachbit.noarch: E: env-script-interpreter (Badness: 9) /usr/share/bleachbit/CLI.py /usr/bin/env python
   50s] bleachbit.noarch: E: env-script-interpreter (Badness: 9) /usr/share/bleachbit/GUI.py /usr/bin/env python3

See if that helps, the packagers also need to run the service as there have been further updates to the source which may or may not help.

Version 2.2 still works and installs:

karl@erlangen:~> bleachbit --version

BleachBit version 2.2
Copyright (C) 2008-2019 Andrew Ziem.  All rights reserved.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
karl@erlangen:~> 

erlangen:~ # zypper in bleachbit
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 7 NEW packages are going to be installed:
  bleachbit libglade-2_0-0 python python-gobject2 python-gtk python-xml python2-pycairo

7 new packages to install.
Overall download size: 2.0 MiB. Already cached: 0 B. After the operation, additional 9.0 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
....
Checking for file conflicts: ......[done]
... [done]
erlangen:~ # 

I have built the current version 3.2 with python3:
https://build.opensuse.org/package/show/home:Herbster0815/bleachbit

There is one minor issue at the moment: The menu-entry for “bleachbit as Administrator” is not shown, no idea why… But the tool itself is working.

Btw, the mentioned package https://build.opensuse.org/package/show/home%3Adeltafox/bleachbit is a link to my project but broken at the moment

Hi
Could be the warning about the whole shebang… this is what I use to clean up in %prep section


find . -name "*.py" -exec sed -i 's|#!%{_bindir}/env python|#%{_bindir}/python3|' {} ";"
find . -name "*.py" -exec sed -i 's|#!%{_bindir}/env python3|#%{_bindir}/python3|' {} ";"

Hi Malcolm,

thx for the hint. I implemented your lines and rebuild the package. Will check at home if both menu entries are shown now.

Best regards