VLC Python 绑定——错误 193 [英] VLC Python Bindings -- Error 193
问题描述
已下载 VLC.py,并将其放在我的 VLC 安装目录中,其中 libvlc.dll 也存在
Have downloaded VLC.py, and placed it in my VLC install directory, where libvlc.dll is also present
输入import vlc
我收到以下错误
回溯(最近一次调用最后一次):
文件C:\程序文件(x86)\VideoLAN\VLC\vlc.py",第 88 行,在dll = ctypes.CDLL('libvlc.dll') 文件"C:\Python27\lib\ctypes__init__.py",第 353 行,在 init 中self._handle = _dlopen(self._name, mode) WindowsError: [错误 193] %1 是不是有效的 Win32 应用程序
Traceback (most recent call last):
File "C:\Program Files (x86)\VideoLAN\VLC\vlc.py", line 88, in dll = ctypes.CDLL('libvlc.dll') File "C:\Python27\lib\ctypes__init__.py", line 353, in init self._handle = _dlopen(self._name, mode) WindowsError: [Error 193] %1 is not a valid Win32 application
知道为什么吗?
如果需要,我的配置是:Win7 专业版 64 位4GB 内存
If needed, my config is: Win7 pro 64 bit 4GB RAM
推荐答案
重新发布我的评论作为答案,因为它解决了问题:
Reposting my comment as an answer, since it fixed the problem:
我猜想问题是试图从 64 位进程加载 32 位 DLL.您可以使用 32 位 Python 版本修复它.
I'm going to guess that the problem is trying to load a 32-bit DLL from a 64-bit process. You may be able to fix it by using a 32-bit Python build.
这篇关于VLC Python 绑定——错误 193的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!