Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Errors when I try to install gplaymusicapi in Moode 4.1
#7
(06-02-2018, 01:59 AM)ps2daddy Wrote:
(06-02-2018, 01:00 AM)ps2daddy Wrote:
(06-01-2018, 02:25 PM)TheOldPresbyope Wrote:
(06-01-2018, 04:45 AM)ps2daddy Wrote:
(05-31-2018, 04:38 PM)TheOldPresbyope Wrote: @ps2daddy

I haven't tried recently but back in February (when we were at r4.0) building gmusicapi on an RPi0 was known to fail due to OOM (out of memory) problems. You can temporarily set up Linux to swap to a file to get through the gmusicapi build (Tim disables swap in the moOde OS Builder to save disk space). I'm away from my desk and notes, but several other readers of this forum can tell you how.

This probably should be a FAQ.

Regards,
Kent

Thanks Ill see what I can find out Smile

I've started a build on an RPi0W to repro your issue. Twiddling my thumbs while I wait for it to abend so I can try turning swap back on.

UPDATE:

As I expected, 

Code:
pi@moode:~ $ sudo pip install gmusicapi
...
Running setup.py bdist_wheel for lxml
...

virtual memory exhausted: Cannot allocate memory
...
Failed building wheel for lxml
...

I then set up a swapfile and tried the pip install again.

Code:
pi@moode:~ $ sudo /sbin/dphys-swapfile setup
want /var/swap=100MByte, generating swapfile ... of 100MBytes
pi@moode:~ $ sudo /sbin/dphys-swapfile swapon
pi@moode:~ $ sudo pip install gmusicapi
 
This time I got the same failure and error message you got, I suppose because of the retry. Aha. Google is our friend. Turns out updating the pip setuptools fixes this

Code:
pi@moode:~ $ sudo pip install --upgrade setuptools
...responds with info about what's done...
pi@moode:~ $ sudo pip install gmusicapi

Good news, with a 100MB swapfile enabled and with up-to-date setuptools, installing the gmusicapi now proceeds to completion.

NOTE: compiling on a single-cpu RPI0 with swap in use is a very very slow process but it gets the job done.

Regards,
Kent
I appreciate it sir I'll give it a go this evening and report back tonight or tomorrow   Cool

Now I get these errors

Failed building wheel for lxml
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
 
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nhhHtu/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4Z1lbd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nhhHtu/lxml/



It also has this

Successfully built gmusicapi mutagen proboscis gpsoauth future httplib2 pycryptodomex
Failed to build lxml
Installing collected packages: validictory, decorator, mutagen, python-dateutil, proboscis, protobuf, rsa, httplib2, pyasn1-modules, oauth2client, funcsigs, pbr, mock, appdirs, pycryptodomex, gpsoauth, beautifulsoup4, lxml, MechanicalSoup, future, gmusicapi
  Running setup.py install for lxml ... \Failed building wheel for lxml
Failed building wheel for lxml
 Failed building wheel for lxml Failed building wheel for lxerror


I reinstalled again following instructions exactly and it worked  Smile
Reply


Messages In This Thread
RE: Errors when I try to install gplaymusicapi in Moode 4.1 - by ps2daddy - 06-02-2018, 03:13 AM

Forum Jump: