

This is my first ever experience with Python.
#Raspberry pi vlc player install#
I get: Traceback (most recent call last):ĪttributeError: module 'vlc' has no attribute 'MediaPlayer'įor reference I used pip3 to install python-vlc, pafy and youtube_dl modules. When the script reaches the following command: player=vlc.MediaPlayer(playurl) Running the commands one by one, I think I found the problem with the vlc module. extractor import gen_extractors, list_extractorsįile "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/_init_.py", line 9, in įile "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/extractors.py", line 732, in įile "", line 954, in _find_and_load_unlocked ImportError: No module named 'youtube_dl.extractor.lazy_extractors'ĭuring handling of the above exception, another exception occurred:įile "/usr/local/lib/python3.5/dist-packages/pafy/_init_.py", line 7, in įile "/usr/local/lib/python3.5/dist-packages/pafy/pafy.py", line 48, in įile "/usr/local/lib/python3.5/dist-packages/youtube_dl/_init_.py", line 43, in įrom. When I run this script on the raspberry pi I get nothing and when I stop it I get the following messages: Traceback (most recent call last):įile "/usr/local/lib/python3.5/dist-packages/youtube_dl/extractor/_init_.py", line 4, in The machine I plan to run this script is a raspberry pi zero W running raspbian stretch and I set it to run this python version: Python 3.5.3 (default, Sep 27 2018, 17:25:39) Now, this script works great on my work machine running manjaro and the following python version: Python 3.7.2 (default, Jan 10 2019, 23:51:51)

The script I am using is as follows: #!/usr/bin/env python I am trying to make an audio-only player using python for a small project.
