VLC Python Bindings — Error 193

ぐ巨炮叔叔 提交于 2019-12-08 12:46:15

问题


Have downloaded VLC.py, and placed it in my VLC install directory, where libvlc.dll is also present

On typing import vlc

I get the following error

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

Any ideas why?

If needed, my config is: Win7 pro 64 bit 4GB RAM


回答1:


Reposting my comment as an answer, since it fixed the problem:

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.



来源:https://stackoverflow.com/questions/5007455/vlc-python-bindings-error-193

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!