2011-02-15 179 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.