libVLC Python giving errors on primary PC

This forum is about all development around libVLC.
blackrain197
New Cone
New Cone
Posts: 1
Joined: 25 Mar 2018 20:57

libVLC Python giving errors on primary PC

Postby blackrain197 » 25 Mar 2018 21:02

I am working on a media player for a school project, and I wanted to use the VLC library for python; however for some reason it gives me an error on my main PC. I installed it on my laptop and it works there with no issues. All my code is right now is:

import vlc
import time

player = vlc.MediaPlayer('Africa.mp4')
player.play()
time.sleep(15)

This code should just play the first 15 seconds of the video and stop. Anytime I try to use any methods associated with vlc, it gives me this same error, which you can see below:
[00000001] main libvlc debug: VLC media player - version 0.9.6 Grishenko - (c) 1996-2008 the VideoLAN team

[00000001] main libvlc debug: libvlc was configured with ./configure
'--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena

[00000001] main libvlc debug: translation test: code is "C"

[00000001] main libvlc error: no memcpy module matched "any"

[00000007] main access error: no access module matched "file"

[00000006] main input error: open of `file/xspf-open://C:\Users\Paul\AppData\Roaming\vlc\ml.xspf' failed: could not create access: no access module matched "file"

[00000010] main interface error: no interface module matched "hotkeys,none"

[00000010] main interface error: no suitable interface module

[00000001] main libvlc error: interface "hotkeys,none" initialization failed Traceback (most recent call last): File "C:/Users/Paul/PycharmProjects/FacialDetection/Test3.py", line 4, in player = vlc.MediaPlayer('Africa.mp4') File "C:\Users\Paul\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vlc.py", line 3175, in __new__\ o = instance.media_player_new() File "C:\Users\Paul\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vlc.py", line 1741, in media_player_new p._instance = self AttributeError: 'NoneType' object has no attribute '_instance'

Process finished with exit code 1
I have tried reinstalling the vlc library, reinstalling python, and reinstalling VLC media player as well as clearing its cache and history. If anyone could shed some light on what the error means and how I can remedy it, I would greatly appreciate it! Thank you in advance!

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: libVLC Python giving errors on primary PC

Postby mfkl » 16 Apr 2018 09:50

Hi,

Looks like you're missing some needed modules, but
VLC media player - version 0.9.6
Please upgrade to version 3.x and try again.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests