Get it working under Ubuntu 16.04 LTS

Bug #1700952 reported by Konsti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EasyShutdown
New
Undecided
Unassigned

Bug Description

There are several requirements to get it running on Ubuntu 16.04:
    sudo apt-get install python-notify consolekit

I tried to fix it by doing the following (tracking down the errors thrown by python:

Adding the following to /usr/bin/easyshutdown.py before Unity is imported (following a warning message):
    import gi
    gi.require_version('Unity', '7.0')
    gi.require_version('Notify', '0.7')

And also replaced the following import rules:
    -import pynotify
    +from gi.repository import Notify as pynotify

    -import gobject
    +from gi.repository import GObject

But it still throws:
> Traceback (most recent call last):
> File "/usr/bin/easyshutdown.py", line 292, in <module>
> EasyShutdown()
> File "/usr/bin/easyshutdown.py", line 219, in __init__
> window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 64, in __getattr__
> raise AttributeError(_static_binding_error)
> AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

Maybe we can revive this project again...

Konsti (konsti-2)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.