Page 1 of 1

Can't import VLC to Python on Windows.

Posted: 16 Oct 2015 18:17
by KiDo
Hello, I'm trying to stream some videos from a website (not YouTube) using Python, everyone suggested that I use VLC to play the stream, I downloaded VLC using pip but got this error:
No module named app
:cry:

Then I tried the one from your git and now I'm getting this error:
>>> import vlc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\vlc.py", line 173, in <module>
dll, plugin_path = find_lib()
File "C:\Python27\lib\site-packages\vlc.py", line 146, in find_lib
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
:cry:

So, any idea how to fix that!? Thanks.
Windows 8, Python 2.7

Re: Can't import VLC to Python on Windows.

Posted: 24 Nov 2015 10:58
by OlivierAubert
Did you install VLC (the player) alongside the python module ? The module is just a wrapper around functions found in the libvlc library, so it depends on the presence of the libvlc.dll file.

Re: Can't import VLC to Python on Windows.

Posted: 03 Jun 2019 07:51
by sunil98
Did you install VLC (the player) alongside the python module ? The module is just a wrapper around functions found in the libvlc library, so it depends on the presence of the libvlc.dll file.
I have the same problem. I didn't get your answer. please help me.