我试图制作游戏并使用python-vlc作为背景音乐。适用于IDLE,但在使用 PyInstaller 冻结后,它似乎无法运行。
Traceback (most recent call last):
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 149,
in __init__
File "ctypes\__init__.py", line 348, in __init__
OSError: [WinError 126] The specified module could not be found
在处理上述异常期间,发生了另一个异常:
Traceback (most recent call last):
File "test.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "c:\users\xuan\appdata\local\programs\python\python36-32\lib\site-
packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\vlc.py", line 198, in <module>
File "site-packages\vlc.py", line 169, in find_lib
File "site-packages\PyInstaller\loader\pyiboot01_bootstrap.py", line 151,
in __init__
__main__.PyInstallerImportError: Failed to load dynlib/dll 'libvlc.dll'.
Most probably this dynlib/dll was not found when the application was frozen.
[4216] Failed to execute script test
请指教。谢谢
(ps。我对编码非常陌生,所以我可能不了解更复杂的东西。很多宽容感谢)