gerardpuig / ubuntu-cleaner

Ubuntu Cleaner is a tool that makes it easy to clean your ubuntu system.
GNU General Public License v3.0
225 stars 21 forks source link

Fails to launch #33

Closed RaspberryKitty1 closed 4 years ago

RaspberryKitty1 commented 4 years ago

I am on lubuntu 18.04.4 and its fully up to date but ubuntu cleaner fails to launch when I try to launch it from term there is a error

  from gi.repository import GObject, Gdk, Gtk, Gio
/usr/bin/ubuntu-cleaner:11: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gdk, Gtk, Gio
Traceback (most recent call last):
  File "/usr/bin/ubuntu-cleaner", line 15, in <module>
    from ubuntucleaner.settings.debug import enable_debugging
  File "/usr/lib/python2.7/dist-packages/ubuntucleaner/settings/debug.py", line 6, in <module>
    from gi.repository import Gtk, Gdk, Notify
ImportError: cannot import name Notify

yes I tried sudo -H pip install notify and it still not fix the issue

historyb1 commented 4 years ago

I have the same error also /usr/bin/ubuntu-cleaner:11: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import GObject, Gdk, Gtk, Gio /usr/bin/ubuntu-cleaner:11: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import GObject, Gdk, Gtk, Gio Traceback (most recent call last): File "/usr/bin/ubuntu-cleaner", line 15, in <module> from ubuntucleaner.settings.debug import enable_debugging File "/usr/lib/python2.7/dist-packages/ubuntucleaner/settings/debug.py", line 6, in <module> from gi.repository import Gtk, Gdk, Notify ImportError: cannot import name Notify

I am using Elementary OS 5

gerardpuig commented 4 years ago

Hi @RaspberryKitty1 @historyb1 I've migrated the project to python3, the latest version is 1.1.2 which is built for Ubuntu 19.10 (Eoan) and 20.04 (Focal), however you can always install it directly from https://launchpad.net/~gerardpuig/+archive/ubuntu/ppa/+files/ubuntu-cleaner_1.1.2-1_all.deb it should work fine also on 18.04.

RaspberryKitty1 commented 4 years ago

Thanks for updating it.