Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python traceback on CLI execution #42

Open
dougglenn opened this issue Jun 15, 2020 · 0 comments
Open

Python traceback on CLI execution #42

dougglenn opened this issue Jun 15, 2020 · 0 comments

Comments

@dougglenn
Copy link

FWIW, I'm using Kubuntu 20.04 LTS

~/tmp$ sudo ubuntu-cleaner
/usr/lib/python3/dist-packages/ubuntucleaner/settings/debug.py:7: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
from gi.repository import Gdk, Gtk, Notify
/usr/bin/ubuntu-cleaner:70: DeprecationWarning: Gdk.threads_init is deprecated
Gdk.threads_init()
/usr/bin/ubuntu-cleaner:71: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
GObject.threads_init()
[utils.icon][WARNING] gtk-icon-theme-error-quark: Icon 'computerjanitor' not present in theme Yaru (0) (icon.py:33)
[utils.icon][WARNING] gtk-icon-theme-error-quark: Icon 'gnome-app-install' not present in theme Yaru (0) (icon.py:33)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 447, in on_janitor_check_button_toggled
self._auto_scan_cruft(iter, checked)
File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 538, in _auto_scan_cruft
self.do_scan_task()
File "/usr/lib/python3/dist-packages/ubuntucleaner/janitor/init.py", line 544, in do_scan_task
plugin.set_property('scan_finished', False)
AttributeError: 'NoneType' object has no attribute 'set_property'

$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:gerardpuig/ppa
$ sudo apt update #Note: This is redundant from 18.04 update. Adding a repository does it >automatically now
$ sudo apt install ubuntu-cleaner

(cruft removed)
Selecting previously unselected package gir1.2-vte-2.91:amd64.
(Reading database ... 389408 files and directories currently installed.)
Preparing to unpack .../0-gir1.2-vte-2.91_0.60.1-1ubuntu1_amd64.deb ...
Unpacking gir1.2-vte-2.91:amd64 (0.60.1-1ubuntu1) ...
Selecting previously unselected package aptdaemon.
Preparing to unpack .../1-aptdaemon_1.1.1+bzr982-0ubuntu32.1_all.deb ...
Unpacking aptdaemon (1.1.1+bzr982-0ubuntu32.1) ...
Selecting previously unselected package python3-defer.
Preparing to unpack .../2-python3-defer_1.0.6-2.1_all.deb ...
Unpacking python3-defer (1.0.6-2.1) ...
Selecting previously unselected package python3-aptdaemon.
Preparing to unpack .../3-python3-aptdaemon_1.1.1+bzr982-0ubuntu32.1_all.deb ...
Unpacking python3-aptdaemon (1.1.1+bzr982-0ubuntu32.1) ...
Selecting previously unselected package aptdaemon-data.
Preparing to unpack .../4-aptdaemon-data_1.1.1+bzr982-0ubuntu32.1_all.deb ...
Unpacking aptdaemon-data (1.1.1+bzr982-0ubuntu32.1) ...
Selecting previously unselected package python3-aptdaemon.gtk3widgets.
Preparing to unpack .../5-python3-aptdaemon.gtk3widgets_1.1.1+bzr982-0ubuntu32.1_all.deb ...
Unpacking python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu32.1) ...
Selecting previously unselected package ubuntu-cleaner.
Preparing to unpack .../6-ubuntu-cleaner_1.1.3-1_all.deb ...
Unpacking ubuntu-cleaner (1.1.3-1) ...
Setting up python3-defer (1.0.6-2.1) ...
Setting up aptdaemon-data (1.1.1+bzr982-0ubuntu32.1) ...
Setting up gir1.2-vte-2.91:amd64 (0.60.1-1ubuntu1) ...
Setting up aptdaemon (1.1.1+bzr982-0ubuntu32.1) ...
Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu32.1) ...
Setting up python3-aptdaemon.gtk3widgets (1.1.1+bzr982-0ubuntu32.1) ...
Setting up ubuntu-cleaner (1.1.3-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant