Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503368 - dev-python/skype4py should depend on dev-python/pygobject
Summary: dev-python/skype4py should depend on dev-python/pygobject
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 00:28 UTC by W. Trevor King
Modified: 2014-11-25 00:51 UTC (History)
0 users

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 W. Trevor King 2014-03-04 00:28:32 UTC
I'm trying to launch BitlBee's skyped, but it crashes when skype4py fails to import goobject.


Reproducible: Always

Steps to Reproduce:
1. emerge -pv =dev-python/skype4py-1.0.35
2. python2.7 -c 'import Skype4Py.api.posix_dbus'

Actual Results:  
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/Skype4Py/api/posix_dbus.py", line 48, in <module>
    import gobject
ImportError: No module named gobject


Expected Results:  
No output

Same emerge --info as for #503360 [1].  The 'gobject' module is provided by dev-python/pygobject, which should be available if the dbus API is used.  I'd just add it to RDEPEND, but if we want more flexibility, we could add a dbus USE flag and only RDEPEND on dev-python/pygobject and dev-python/dbus-python if dbus was enabled.  Similarly for an X USE flag and the existing 
x11-libs/libX11 dependency.

[1]: https://bugs.gentoo.org/show_bug.cgi?id=503360
Comment 1 W. Trevor King 2014-03-04 00:56:13 UTC
It appears that dev-python/pygobject-3.8.3 installs pygtkcompat and gi modules, but no longer installs a gobject module.  We probably want <dev-python/pygobject-3.  Skype v4.2.0.13 is linked against gobject v2:

  $ ldd /opt/bin/skype | grep gobject
          libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf2c08000)

so a dependency on pygobject v2.x seems reasonable.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-03-19 14:41:28 UTC
that would make for;

RDEPEND="net-im/skype
        dev-python/pygobject:2[${PYTHON_USEDEP}]
        || ( dev-python/dbus-python[${PYTHON_USEDEP}] x11-libs/libX11 )"

a full diff -u patch seems overkill
Comment 3 Tim Harder gentoo-dev 2014-11-25 00:51:40 UTC
Fixed in 1.0.35-r1.