0

I have installed python-vlc

D:\Programing\Python\Python 3.6>python -m pip install python-vlc Requirement already satisfied: python-vlc in d:\programing\python\python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg

When I import the module in idle I get this error

>>> import vlc
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
  import vlc
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
File "D:\Programing\Python\Python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg\vlc.py", line 181, in <module>
dll, plugin_path  = find_lib()
File "D:\Programing\Python\Python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg\vlc.py", line 156, in find_lib
dll = ctypes.CDLL(libname)
File "D:\Programing\Python\Python 3.6\lib\ctypes\__init__.py", line 344, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

I am running Python 3.6.0 in windows 10 64x

Eztain
  • 35
  • 1
  • 9

2 Answers2

2

If you have 64bit python, you need 64bit vlc player. If you have 32bit python, you need 32bit vlc version.

Shadow430
  • 36
  • 5
0

Try the command "pip install vlc" in the CMD. If that doesn't work, then try "pip install python-vlc"

Shadow430
  • 36
  • 5
  • I get this error: ` Could not find a version that satisfies the requirement vlc (from versions: ) No matching distribution found for vlc` – Eztain Feb 08 '17 at 05:37
  • If you have 64bit python, you need 64bit vlc player. If you have 32bit python, you need 32bit vlc player. – Shadow430 Feb 08 '17 at 05:55
  • That fixed it thanks, I was running the 32 bit version of vlc on my 64 bit machine. I uninstalled it and installed the 64 bit version. – Eztain Feb 08 '17 at 06:06
  • Glad to help :) – Shadow430 Feb 08 '17 at 06:07
  • I'm going to post the answer as a new answer so people with the same problem can find it easier. Please mark it as fixing your problem. – Shadow430 Feb 08 '17 at 06:09