Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - unable to import vlc module

Tags:

python

vlc

libvlc

I just installed python-vlc via pip and when I try

import vlc

The follow error message shows up:

... ...
File "c:\Program Files\Python34\Lib\site-packages\vlc.py", line 173, in <module>
  dll, plugin_path = find_lib()
File "c:\Program Files\Python34\Lib\site-packages\vlc.py", line 150, in find_lib
  dll = ctypes.CDLL('libvlc.dll')
File "c:\Program Files\Python34\Lib\ctypes\__init__.py", line 351, in __init__
  self._handle = _dlopen(self._name, mode)

builtins.OSError: [WinError 126] The specified module could not be found

I am unfamiliar with the ctypes module. What is causing the problem?

like image 434
Victor. L Avatar asked Dec 06 '25 17:12

Victor. L


1 Answers

The problem has been solved. I was using 64 bit python and 32 bit VLC. Installing a 64 bit VLC program fixed the problem.

like image 151
Victor. L Avatar answered Dec 09 '25 15:12

Victor. L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!