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

This forum is about all development around libVLC.
chenmyzju
New Cone
New Cone
Posts: 2
Joined: 17 Jun 2014 03:23

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

Postby chenmyzju » 17 Jun 2014 03:58

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 09 Jul 2014 03:20

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?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

karipu
New Cone
New Cone
Posts: 1
Joined: 03 Aug 2014 23:45

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

Postby karipu » 04 Aug 2014 00:00

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)?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 65 guests