How to fix "NameError: no function 'libvlc_new' when running vlc.Instance() on replit

Viewed 24

When trying to create a vlc.Instance()

    Instance = vlc.Instance()

I get the following error (in my replit console)

    Traceback (most recent call last):
       File "main.py", line 9, in <module>
          Instance = vlc.Instance()
       File "/home/runner/personal-assistant/venv/lib/python3.8/site-packages/vlc.py", line 1814, in __new__
          return libvlc_new(len(args), args)
       File "/home/runner/personal-assistant/venv/lib/python3.8/site-packages/vlc.py", line 4978, in libvlc_new
          _Cfunction('libvlc_new', ((1,), (1,),), class_result(Instance),
       File "/home/runner/personal-assistant/venv/lib/python3.8/site-packages/vlc.py", line 302, in _Cfunction
          raise NameError('no function %r' % (name,))
    NameError: no function 'libvlc_new'  

Can someone please explain to me why this is happening and how I can fix this problem? I've looked all over online for answers but I can't find any that work (for replit).

0 Answers
Related