Please help! cannot start working with python-vlc

This forum is about all development around libVLC.
andreyti
New Cone
New Cone
Posts: 1
Joined: 04 May 2021 21:39

Please help! cannot start working with python-vlc

Postby andreyti » 04 May 2021 21:53

Hello
After successfully working with python-vlc and VLC player on Python 3.8 32-bit, I completely uninstalled Python and then installed new release 3.9 64-bit version (and done this almost 3 times with the same bad result at the end actually...).

Now what I have installed from scratch:
Windows 10 Pro 64-bit
Python 3.9 64-bit
python-vlc-3.0.12118
VLC Media player 3-0-12-win64

Simple python script:

import vlc
media = vlc.MediaPlayer('testmovie.mp4')
media.play()

Gets this error:
Traceback (most recent call last):
File "E:\НовыеМоиПроекты\SubtitlesQuiz\test.py", line 18, in <module>
media = vlc.MediaPlayer(movie)
File "C:\Users\Andr\AppData\Local\Programs\Python\Python39\lib\site-packages\vlc.py", line 3254, in __new__
o = instance.media_player_new()
AttributeError: 'NoneType' object has no attribute 'media_player_new'

I have lost 2 days already. PLEASE HELP!!!

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

Re: Please help! cannot start working with python-vlc

Postby mfkl » 05 May 2021 04:18

Please share your FULL code
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests