Page 1 of 1

trouble on using python libvlc binding(vlc.py),help!

Posted: 17 Jun 2014 03:58
by chenmyzju
Hi everyone!
I've tried libvlc to get a media player on my win7 computer through python bingding(vlc.py 2.0)which download from the internet. But I've met big trouble on using the file vlc.py which really confused me a lot.
I've set up the VLC media player in my computer, and the libvlc.dll and other dlls are just in their standar path (C:\\Progamm Files\\VideoLan\\VLC),but I can run vlc.py successfully even I put the vlc .py in the same directory as the libvlc.dll, and the error as bellows.
( File "C:/Program Files/VideoLAN/VLC/vlc.py", line 143, in find_lib
dll = ctypes.CDLL(p)
File "C:\Python32\lib\ctypes\__init__.py", line 340, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127] 找不到指定的程序。)
I kown that means the system can't find the lib, but I don't think there is any problem in the path (I've taken the simplest ways and put vlc.py in the same directory as the libvlc.dll). I've used the python 32 and VLC version is 2.1.3 in my win7 computer.
I really quite confused and Thank you for help


danny

Re: trouble on using python libvlc binding(vlc.py),help!

Posted: 09 Jul 2014 03:20
by Jean-Baptiste Kempf
We don't have enough los to help you.

It menas it does not find the right point of entry of the dll. No 32bits / 64 bits mismatch?

Re: trouble on using python libvlc binding(vlc.py),help!

Posted: 04 Aug 2014 00:00
by karipu
Same problem here.
Even tho I force vlc.py on the code to get the libvlc.dll path, I got the same error.
Is ctypes.CDLL (with upper case) not a Linux command?
https://docs.python.org/2/library/ctypes.html
Is the vlc.py provided on the web site supposed to work on win7?
I have tried to generate it with the setup.py provided but I get even more errors.
Is there a way to get a vlc.py that works on win7 64bits (and python 3.4)?