Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591264 - app-misc/lirc-0.9.4a-r2: lirc-setup: ImportError: No module named 'gi'
Summary: app-misc/lirc-0.9.4a-r2: lirc-setup: ImportError: No module named 'gi'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-14 18:00 UTC by John Klug
Modified: 2016-12-30 22:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Klug 2016-08-14 18:00:57 UTC
# lirc-setup
Traceback (most recent call last):
  File "/usr/bin/lirc-setup", line 10, in <module>
    import mvc_control
  File "/usr/lib64/python3.3/site-packages/lirc/mvc_control.py", line 2, in <module>
    import gi
ImportError: No module named 'gi'


From mvc_control.py:

'' Simple lirc setup tool - control part. '''
import gi
gi.require_version('Gtk', '3.0')

gi appears to be part of pygobject:

/usr/lib64/python3.4/site-packages/gi

[IP-] [  ] dev-python/pygobject-2.28.6-r55:2
[IP-] [  ] dev-python/pygobject-3.16.2:3

[IP-] [  ] x11-libs/gtk+-2.24.28-r1:2
[IP-] [  ] x11-libs/gtk+-3.16.7:3
Comment 1 John Klug 2016-08-16 03:14:50 UTC
Another issue occurs at line 12 of /usr/lib64/python3.3/site-packages/lirc/mvc_view.py:

12:gi.require_version('Vte', '2.91')


  File "/usr/lib64/python3.3/site-packages/lirc/mvc_view.py", line 12, in <module>
    gi.require_version('Vte', '2.91')
  File "/usr/lib64/python3.3/site-packages/gi/__init__.py", line 106, in require_version
    (namespace, version))
ValueError: Namespace Vte not available for version 2.91


Not sure what package this is referring.  x11-libs/vte is from 0.28 to 0.42.  Python-vte in Debian is of a similar level.
Comment 2 Craig Andrews gentoo-dev 2016-12-29 16:37:35 UTC
To make lirc-setup work, these dependencies need to be added:
x11-libs/vte[introspection]
dev-python/pygobject

I'm handling this at https://github.com/gentoo/gentoo/pull/3150#pullrequestreview-14676737
Comment 3 Craig Andrews gentoo-dev 2016-12-30 22:01:51 UTC
Fixed in 0.9.4c
Comment 4 Patrice Clement (RETIRED) gentoo-dev 2016-12-30 22:02:19 UTC
commit f6c5ac0de170ab7ad1b3701738c74e8c58c9c740 (HEAD -> master, origin/master, origin/HEAD)
Author:     Craig Andrews <candrews@integralblue.com>
AuthorDate: Sat Dec 17 21:39:47 2016 -0500
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: Fri Dec 30 22:54:51 2016 +0100

app-misc/lirc-0.9.4c: version bump.

* Clean up dependencies.
* Remove irman and iguanair use flags: these have been moved out of lirc upstream.
* Use xdg-utils.eclass to cleanup XDG_* env causing sandbox violation.
* Fix dependencies for lirc-setup.

Gentoo-Bug: https://bugs.gentoo.org/602978
Gentoo-Bug: https://bugs.gentoo.org/587770
Gentoo-Bug: https://bugs.gentoo.org/591264

Closes: https://github.com/gentoo/gentoo/pull/3150

app-misc/lirc/Manifest           |   1 +
app-misc/lirc/lirc-0.9.4c.ebuild | 150 +++++++++++++++++++++++++++++++++++++++
app-misc/lirc/metadata.xml       |   1 +
3 files changed, 152 insertions(+)
create mode 100644 app-misc/lirc/lirc-0.9.4c.ebuild

PR merged, thanks!