注意:这个问题与我正在经历的dbus问题无关,如下所述。
安装后,我尝试运行qpaeq。它要求dbus。其他帖子说要安装python-dbus。没什么用。也没有dbus-python,这正是qpaeq所要求的。该怎么办呢?谈话全文如下:
$ sudo apt-get install pulseaudio-equalizer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-dbus.mainloop.pyqt5
The following NEW packages will be installed:
pulseaudio-equalizer python3-dbus.mainloop.pyqt5
0 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 50.7 kB of archives.
After this operation, 281 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python3-dbus.mainloop.pyqt5 amd64 5.14.1+dfsg-3build1 [16.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 pulseaudio-equalizer amd64 1:13.99.1-1ubuntu3.7 [34.0 kB]
Fetched 50.7 kB in 0s (281 kB/s)
Selecting previously unselected package python3-dbus.mainloop.pyqt5.
(Reading database ... 475713 files and directories currently installed.)
Preparing to unpack .../python3-dbus.mainloop.pyqt5_5.14.1+dfsg-3build1_amd64.deb ...
Unpacking python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Selecting previously unselected package pulseaudio-equalizer.
Preparing to unpack .../pulseaudio-equalizer_1%3a13.99.1-1ubuntu3.7_amd64.deb ...
Unpacking pulseaudio-equalizer (1:13.99.1-1ubuntu3.7) ...
Setting up python3-dbus.mainloop.pyqt5 (5.14.1+dfsg-3build1) ...
Setting up pulseaudio-equalizer (1:13.99.1-1ubuntu3.7) ...
$ qpaeq
There was an error importing needed libraries
Make sure you have qt5 and dbus-python installed
The error that occurred was:
No module named 'dbus'
$ sudo apt-get install python-dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dbus is already the newest version (1.2.16-1build1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
$ qpaeq
There was an error importing needed libraries
Make sure you have qt5 and dbus-python installed
The error that occurred was:
No module named 'dbus'
$ sudo apt-get install dbus-python
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dbus-python发布于 2020-12-02 04:16:20
如果您得到这个错误,您可能需要几个模块,如上面的注释中所指出的。如果希望更改是永久性的,则需要从/etc/pulse/default.pa加载模块。将下列行添加到文件的底部:
load-module module-equalizer-sink
load-module module-dbus-protocol您可以触发更改,以便在pulseaudio -k中立即生效。
发布于 2021-03-05 16:30:07
我也遇到了同样的问题。
对我来说,这是由本地安装的pyqt5版本造成的,该版本可能不是最新的(或者缺少了系统包提供的某个内容)。
您可以通过这样做来检查这一点:
$ python
Python 3.9.2 (default, Feb 20 2021, 18:40:11)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus.mainloop; print(dbus.mainloop)如果[PATH]的值指向您的主目录(例如。(从/home/...开始)然后在本地安装了pyqt5,它可能是删除它的好主意,而<#>只剩下一个包管理器。
通过发出<#>without(使用 sudo)删除它(它将询问并显示您从何处删除包,[PATH]应该与此匹配)。
https://askubuntu.com/questions/1292040
复制相似问题