Skip to content

[Bug] undefined symbol: gst_audio_format_info_fill_silence #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
Nyalowen opened this issue Apr 15, 2025 · 2 comments
Closed
3 tasks done

[Bug] undefined symbol: gst_audio_format_info_fill_silence #115

Nyalowen opened this issue Apr 15, 2025 · 2 comments
Labels
故障(bug) Something isn't working

Comments

@Nyalowen
Copy link

议题条件

  • 我确认即使在最新正式版中存在该问题。
  • 我确认已在 Issues 进行搜索并确认没有人反馈过相同的Bug。
  • 我确认已经总结议题内容并按规范设置此Issue的标题

系统环境

Kubuntu 24.10 Python 3.12.1

使用版本

v1.60.1

问题描述

我對Linux不是非常熟悉,我確保我檢查了幾遍文檔,應該是按照文檔的步驟做了,不過可能是我仍然是遺漏了某些東西,我嘗試查找了一些wiki,在Google上搜索這個錯誤,但是我似乎沒有能力自己解決它,因此想要獲得一些指點,謝謝🙏。或者這真的是一個bug?但我似乎没有见到其他人遇到这样的问题💦

这些是我对命令行做的所有事:

(base) vibe@NekoVanilla:/Bili23$ pip install -r requirements.txt
Requirement already satisfied: requests>=2.30.0 in /home/vibe/anaconda3/lib/python3.12/site-packages (from -r requirements.txt (line 1)) (2.32.3)
Requirement already satisfied: wxPython>=4.2.0 in /home/vibe/anaconda3/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (4.2.3)
Requirement already satisfied: qrcode==7.4.2 in /home/vibe/anaconda3/lib/python3.12/site-packages (from qrcode[pil]==7.4.2->-r requirements.txt (line 3)) (7.4.2)
Requirement already satisfied: typing-extensions in /home/vibe/anaconda3/lib/python3.12/site-packages (from qrcode==7.4.2->qrcode[pil]==7.4.2->-r requirements.txt (line 3)) (4.11.0)
Requirement already satisfied: pypng in /home/vibe/anaconda3/lib/python3.12/site-packages (from qrcode==7.4.2->qrcode[pil]==7.4.2->-r requirements.txt (line 3)) (0.20220715.0)
Requirement already satisfied: pillow>=9.1.0 in /home/vibe/anaconda3/lib/python3.12/site-packages (from qrcode[pil]==7.4.2->-r requirements.txt (line 3)) (10.4.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/vibe/anaconda3/lib/python3.12/site-packages (from requests>=2.30.0->-r requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/vibe/anaconda3/lib/python3.12/site-packages (from requests>=2.30.0->-r requirements.txt (line 1)) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/vibe/anaconda3/lib/python3.12/site-packages (from requests>=2.30.0->-r requirements.txt (line 1)) (1.26.20)
Requirement already satisfied: certifi>=2017.4.17 in /home/vibe/anaconda3/lib/python3.12/site-packages (from requests>=2.30.0->-r requirements.txt (line 1)) (2025.1.31)
(base) vibe@NekoVanilla:
/Bili23$ sudo apt install python3-wxgtk4.0 python3-wxgtk-webview4.0
[sudo] password for vibe:
python3-wxgtk4.0 is already the newest version (4.2.1+dfsg-4).
python3-wxgtk-webview4.0 is already the newest version (4.2.1+dfsg-4).
The following packages were automatically installed and are no longer required:
kdegames-card-data-kf5 libfreecell-solver0 libkf5networkmanagerqt6
kdegames-mahjongg-data-kf5 libkf5kmahjongglib5
Use 'sudo apt autoremove' to remove them.

Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 4
(base) vibe@NekoVanilla:/Bili23$ pip install qrcode[pil]==7.4.2 requests>=2.30.0
(base) vibe@NekoVanilla:
/Bili23$ sudo apt install ffmpeg
ffmpeg is already the newest version (7:7.0.2-3ubuntu1).
The following packages were automatically installed and are no longer required:
kdegames-card-data-kf5 libfreecell-solver0 libkf5networkmanagerqt6
kdegames-mahjongg-data-kf5 libkf5kmahjongglib5
Use 'sudo apt autoremove' to remove them.

Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 4
(base) vibe@NekoVanilla:/Bili23$ cd src
(base) vibe@NekoVanilla:
/Bili23/src$ python3 GUI.py

看起来系统认为我安装了所有文档说要安装的东西,都返回给我结果已经安装了更新或者一致的版本,在运行后,出现了下面这样的错误:

错误日志

Traceback (most recent call last):
  File "/home/vibe/Bili23/src/GUI.py", line 7, in <module>
    from gui.main import MainWindow
  File "/home/vibe/Bili23/src/gui/main.py", line 34, in <module>
    from gui.window.login import LoginWindow
  File "/home/vibe/Bili23/src/gui/window/login.py", line 14, in <module>
    from gui.dialog.captcha import CaptchaWindow
  File "/home/vibe/Bili23/src/gui/dialog/captcha.py", line 3, in <module>
    import wx.html2
  File "/home/vibe/anaconda3/lib/python3.12/site-packages/wx/html2.py", line 15, in <module>
    from ._html2 import *
ImportError: /lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0: undefined symbol: gst_audio_format_info_fill_silence

截图补充

No response

链接

No response

@Nyalowen Nyalowen added the 故障(bug) Something isn't working label Apr 15, 2025
@ScottSloan
Copy link
Owner

嗯,看起来是导入 Webview 时出错的原因,可以确定是系统 apt 源中的 python3-wxgtk4.0 软件包存在问题,可以使用 wxPython 官方编译的 wheels,位于 https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/

在终端中执行:

pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/ wxPython

应该能解决 ImportError 的问题,在虚拟环境测试一切正常。

@Nyalowen
Copy link
Author

抱歉忘了回复这个事情的后续,简单来说并没有解决这个问题,不过大概是因为我修改发行版太多导致的...
在一个群里面有好多人建议我换arch,真换了,准确来说是 EndeavourOS
然而

Traceback (most recent call last):
File "/home/vibe/othpak/Bili23-Downloader/src/GUI.py", line 1, in
import wx
ModuleNotFoundError: No module named 'wx'

尽管

[vibe@NekoVanilla src]$ sudo pacman -U /home/vibe/Downloads/python-wxpython-1_4.2.2-2-x86_64.pkg.tar.zst
正在載入軟體包…
警告:python-wxpython-1:4.2.2-2 已經為最新——重新安裝

我猜测是venv导致的,但是
Building wheels for collected packages: wxPython
Building wheel for wxPython (pyproject.toml) ...
半个小时没有一点进展...之后问了几个群没有找到方案,于是我干脆使用wine转译运行,我知道这不是一个好主意,毕竟有在linux原生运行的方式,这个程序做的肯定没有问题,只是我技术太差找不到办法来使用它🫠

btw,程序很棒,是bilidown完美的替代品

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
故障(bug) Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants