(04-27-2019, 08:04 AM)parthabhatta Wrote: I was installing gmusicapi in Moode 5 through ssh. The process went well but stuck up at a point showing
"Running setup.py bdist_wheel for lxml...."
I thought that the system has stuckup, forcefully disconnected and rebooted Moode to try install afresh. But on retrying, the process run a few steps and then gave a screenful of message in RED probably saying all sorts of errors. Now I am stuck up as I am unable to install gmusicapi. Please tell me the steps the way to reinstall gmusicapi.
I also tried to locate /usr/local/lib/python2.7/dist-packages/gmusicapi but I couldnot find any such location.
Regards
Partha
It takes a long time to build gmusicapi, even on an RPi3B+, notably in the step you thought was "stuckup". If you run
top you can see a CPU is pegged at essentially 100% and as much as 1/3 of available RAM is being consumed. [BTW- it will fail to build on any small-memory RPi such as the RPi0-series without swap memory being enabled]
A workaround for building lxml is first to install the corresponding Raspbian package
Code:
pi@moode:~ $ sudo apt-get install python-lxml
A disadvantage of this approach is that packages are always behind the curve in the version they load. All I can say is, this approach worked for me when I tried it last winter.
After installing python-lxml, rerun the gmusicapi script. If it again fails, try once more before giving up.
Regards,
Kent
PS - This is probably not necessary with current moOde, but you could also make sure some of the pip code is up to date by running
Code:
pi@moode:~ $ sudo pip install --upgrade setuptools