Please help! cannot start working with python-vlc
Posted: 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!!!
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!!!