2011-02-15 56 views
0

已经下载VLC.py,并把它放在我的VLC安装目录中,其中libvlc.dll也存在VLC Python绑定 - 错误193

上键入import vlc

我收到以下错误

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内存

+0

那是一个64位的构建蟒蛇? – Velociraptors 2011-02-15 18:06:51

回答

4

转贴作为一个答案我的意见,因为它解决了这一问题:

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.