Can't import VLC to Python on Windows.

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
KiDo
New Cone
New Cone
Posts: 1
Joined: 16 Oct 2015 18:08
Operating System: Windows
Location: Ankara

Can't import VLC to Python on Windows.

Postby KiDo » 16 Oct 2015 18:17

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

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

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

Postby OlivierAubert » 24 Nov 2015 10:58

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.

sunil98
New Cone
New Cone
Posts: 1
Joined: 03 Jun 2019 07:49

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

Postby sunil98 » 03 Jun 2019 07:51

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 42 guests