Coder Social home page Coder Social logo

VLC Import Error about python-vlc HOT 6 CLOSED

oaubert avatar oaubert commented on July 28, 2024
VLC Import Error

from python-vlc.

Comments (6)

joeisme1 avatar joeisme1 commented on July 28, 2024 3

I am running into this same issue, yet I have vlc installed, and it is the 64-bit version. I have done everything, and I still can't seem to solve it.

from python-vlc.

oaubert avatar oaubert commented on July 28, 2024 1

It looks like you did not install VLC itself. The python bindings only provide an interface to the libvlc.dll library, so you should install VLC to get the library.

from python-vlc.

musindmitriy avatar musindmitriy commented on July 28, 2024

@oaubert Running into this same issue with VLC 3.0.8x64 and python 3.7 from Windows 10 Store

Traceback (most recent call last):
  File "bot.py", line 5, in <module>
    from player import Player
  File "C:\Users\Дмитрий\SnakeBot\snakebot\player.py", line 5, in <module>
    import vlc
  File "C:\Users\Дмитрий\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\vlc.py", line 207, in <module>
    dll, plugin_path  = find_lib()
  File "C:\Users\Дмитрий\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\vlc.py", line 163, in find_lib
    dll = ctypes.CDLL(libname)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2032.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Не найден указанный модуль

from python-vlc.

aryabhatta000 avatar aryabhatta000 commented on July 28, 2024

Solution credit stackoverflow : python-vlc-install-problems

  • [WinError 126] resolved with adding folder where libvlc.dll (i.e. your VLC player) is located to system environment - path variable
  • [WinError 193] surfaces - resolved by uninstalling and reinstalling VLC 64bit for Windows
  • [VLC_NetworkStreaming_BUG] VLC/lua/playlist/youtube.luac requires to be replaced with youtube.lua file

from python-vlc.

SawonBhattacharya avatar SawonBhattacharya commented on July 28, 2024

installed python-vlc
currently working on Windows 10 64 bit machine with python 3.7
Also installed VLC for 64 bit machine
But whenever I am trying to import the vlc package it's showing error as following:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\SAWON\anaconda3\lib\site-packages\vlc.py", line 210, in <module> dll, plugin_path = find_lib() File "C:\Users\SAWON\anaconda3\lib\site-packages\vlc.py", line 170, in find_lib dll = ctypes.CDLL('.\\' + libname) File "C:\Users\SAWON\anaconda3\lib\ctypes\__init__.py", line 364, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found

I have tried to add libvlc.dll file in the DLLs folder and then added the path of the DLLs folder; but it couldn't help much.
Please help me to debug this

from python-vlc.

mrJean1 avatar mrJean1 commented on July 28, 2024

Check line 170 in your vlc.py file, that point is reached when the plugin-path can not be found, despite looking in half a dozen places before that, starting at line 140. The plugin-path needs to point to a directory containing plugin optional modules needed by the libvlc.dll library.

Try to get around the problem by setting environment variable PYTHON_VLC_MODULE_PATH to the plugin-path directory, see line 114.

Also, make sure to use vlc.py version 3.+ along with the corresponding or a compatible VLC 3.+ version.

from python-vlc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.