python traceback on start

Bug #1574081 reported by hda_launchpad
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Onboard
Fix Released
Undecided
Unassigned
onboard (Ubuntu)
Fix Released
High
Unassigned

Bug Description

1. Ubuntu 16.04
2. 1.2.0-0ubuntu5
3. Onboard to start.
4. Traceback (most recent call last):
  File "/usr/bin/onboard", line 35, in <module>
    from Onboard.OnboardGtk import OnboardGtk as Onboard
  File "/usr/lib/python3/dist-packages/Onboard/OnboardGtk.py", line 35, in <module>
    require_gi_versions()
  File "/usr/lib/python3/dist-packages/Onboard/Version.py", line 30, in require_gi_versions
    gi.require_version('AppIndicator3', '0.1')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 102, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

Possible Fix: Add gir1.2-appindicator3-0.1 from recommends to dependencies
onboard working if gir1.2-appindicator3-0.1 is installed.

hda_launchpad (hda-me)
tags: added: packaging
description: updated
Revision history for this message
marmuta (marmuta) wrote :

Thanks, I had fixed that in trunk already.
https://bazaar.launchpad.net/~onboard/onboard/trunk/revision/2113

AppIndicator is meant to be optional, that's why it is only a recommends dependency.

Changed in onboard:
status: New → Fix Committed
Changed in onboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

If you are still experiencing this bug, please set status back to "confirmed".

Changed in onboard (Ubuntu):
importance: Undecided → High
Changed in onboard:
status: Fix Committed → Fix Released
Changed in onboard (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
marmuta (marmuta) wrote :

@pon tech, this is a regression with Onboard 1.2.0, unfortunately. There are a couple of options:

- Try to install AppIndicator3 and its typelib. On Ubuntu this would be gir1.2-appindicator3, however http://packages.linuxmint.com doesn't seem to know it. Perhaps it can't be easily installed then, but I'm not too familiar with Mint.

- Update Onboard to a later revision. You can get a development snapshot from our PPA at
https://launchpad.net/~onboard/+archive/ubuntu/snapshots.
Untested on Mint, but I believe this would work for you, as Sarah is based on Ubuntu 16.04.

- Remove the offending line yourself:
$ sudo nano /usr/lib/python3/dist-packages/Onboard/Version.py
and remove or comment out with '#' line 30, containing:
gi.require_version('AppIndicator3', '0.1')
Ctrl-X, Yes, Return
This change will be reverted when a new Onboard package is installed, but chances are the new one will have the bug already fixed.

Revision history for this message
pon tech (pon-tech) wrote :

Fixed my problem by installing:

https://launchpad.net/~onboard/+archive/ubuntu/snapshots/+build/9819091/+files/gnome-shell-extension-onboard_1.2.0+2152-0ppa1~xenial_all.deb

I then reinstalled Onboard. Voilà! Working fine. I used it to compose this comment.

Thank you very much.

Revision history for this message
marmuta (marmuta) wrote :

@Duncan Simpson, please try to upgrade to Onboard 1.3.0. There's a good chance the Xenial packages will work on Mint 18. You can get them from our stable PPA at
https://launchpad.net/~onboard/+archive/ubuntu/stable

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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