Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398647 - media-sound/pulseaudio-1.1-r1[equalizer]: No module named dbus.mainloop.qt
Summary: media-sound/pulseaudio-1.1-r1[equalizer]: No module named dbus.mainloop.qt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arun Raghavan (RETIRED)
URL:
Whiteboard:
Keywords:
: 416939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-12 10:52 UTC by Pacho Ramos
Modified: 2012-06-13 11:59 UTC (History)
3 users (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 Pacho Ramos gentoo-dev 2012-01-12 10:52:59 UTC
I get:

$ qpaeq 
There was an error importing need libraries
Make sure you haveqt4 and dbus forthon installed
The error that occured was:
	No module named dbus.mainloop.qt


I have on my system:

[ebuild   R    ] dev-python/dbus-python-0.84.0  USE="test -doc -examples" 0 kB
[ebuild   R    ] dev-python/PyQt4-4.8.4  USE="X dbus opengl svg -assistant -debug -declarative -doc -examples* -kde -multimedia -phonon -sql -webkit -xmlpatterns" 0 kB


Reproducible: Always
Comment 1 Arun Raghavan (RETIRED) gentoo-dev 2012-01-12 11:23:50 UTC
Could you try running python-updater and then rerunning qpaeq?
Comment 2 Pacho Ramos gentoo-dev 2012-01-12 12:33:13 UTC
It's exactly the same :(
Comment 3 Pacho Ramos gentoo-dev 2012-01-12 12:34:01 UTC
It's because I am using python3 as main interpreter. But switching to python2 gives a different failure:

$ qpaeq 
Traceback (most recent call last):
  File "/usr/bin/qpaeq", line 557, in <module>
    main()
  File "/usr/bin/qpaeq", line 552, in main
    qpaeq_main=QPaeq()
  File "/usr/bin/qpaeq", line 79, in __init__
    self.set_connection()
  File "/usr/bin/qpaeq", line 231, in set_connection
    self.sinks=manager_props.Get(self.manager_iface,'EqualizedSinks')
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 143, in __call__
    **keywords)
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
Comment 4 Arun Raghavan (RETIRED) gentoo-dev 2012-01-12 12:36:02 UTC
Okay, so it appears that PyQt4 and dbus-python aren't available for Python3.

The Python2 error is because you've not got module-equalizer-sink loaded. You can do this manually with pactl load-module module-equalizer-sink or adding "load-module module-equalizer-sink" to default.pa (can be in ~/.pulse or /etc/pulse/).
Comment 5 Pacho Ramos gentoo-dev 2012-01-12 13:07:20 UTC
(In reply to comment #4)
> Okay, so it appears that PyQt4 and dbus-python aren't available for Python3.
> 

Then, probably RDEPEND should be fixed:
- Looks like it's only RDEPENDing on sci-libs/fftw:3.0 while it also needs PyQt4 and dbus-python
- It should use python eclass to convert shebangs and use python2 always

> The Python2 error is because you've not got module-equalizer-sink loaded. You
> can do this manually with pactl load-module module-equalizer-sink or adding
> "load-module module-equalizer-sink" to default.pa (can be in ~/.pulse or
> /etc/pulse/).

Shouldn't this be modified by ebuild itself when building with equalizer USE flag? I haven't touched any config file and I am using provided one

Thanks :)
Comment 6 Pacho Ramos gentoo-dev 2012-02-16 10:02:02 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Okay, so it appears that PyQt4 and dbus-python aren't available for Python3.
> > 
> 
> Then, probably RDEPEND should be fixed:
> - Looks like it's only RDEPENDing on sci-libs/fftw:3.0 while it also needs
> PyQt4 and dbus-python
> - It should use python eclass to convert shebangs and use python2 always
> 

I can try to fix this myself if you want

> > The Python2 error is because you've not got module-equalizer-sink loaded. You
> > can do this manually with pactl load-module module-equalizer-sink or adding
> > "load-module module-equalizer-sink" to default.pa (can be in ~/.pulse or
> > /etc/pulse/).
> 
> Shouldn't this be modified by ebuild itself when building with equalizer USE
> flag? I haven't touched any config file and I am using provided one
> 

But I don't know how to do this with the most "cleanly" way :/
Comment 7 Pacho Ramos gentoo-dev 2012-02-16 10:04:19 UTC
Also would be interesting to let it install a menu entry to easily access equalizer ;)
Comment 8 amette 2012-03-07 09:50:54 UTC
Not sure, if I should open up a new bug... but this one is "close enough" and already mentions my problem...

I'm voting for adding PyQt4 to RDEPEND when emerging with the equalizer USE-flag as otherwise the equalizer simply can't be started.
Comment 9 Arun Raghavan (RETIRED) gentoo-dev 2012-06-13 11:57:14 UTC
Fixed in 2.0-r1.
Comment 10 Arun Raghavan (RETIRED) gentoo-dev 2012-06-13 11:59:33 UTC
*** Bug 416939 has been marked as a duplicate of this bug. ***