Python ctypes bindings with non-installer VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
niboshi
New Cone
New Cone
Posts: 1
Joined: 09 Jan 2010 15:47

Python ctypes bindings with non-installer VLC

Postby niboshi » 09 Jan 2010 16:28

I have non-installer version of VLC in my Windows system.
When I tried to import vlc.py from my script, naturally it failed to
locate the libvlc.dll:

Code: Select all

... File "X:\...\vlc.py", line 72, in <module> os.chdir(detected_plugin_path) TypeError: chdir() argument 1 must be string, not None
vlc.py seems to look into only Windows registry and the default
install directory (C:\Program Files\VideoLAN\VLC\).
Is there any way to manually tell the location of the dll?

(vlc.py bulid date: Mon Nov 9 11:56:56 2009)

OlivierAubert
Developer
Developer
Posts: 93
Joined: 08 Mar 2007 15:43

Re: Python ctypes bindings with non-installer VLC

Postby OlivierAubert » 27 Jan 2010 10:17

Hello

The vlc module uses ctypes.util.find_library('libvlc.dll') to locate the DLL. This function looks for the file in the %PATH%. You should only have to add your VLC install directory into your %PATH%


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 65 guests