mopidy / mopidy-gmusic

DEPRECATED (Mopidy extension for playing music from Google Play Music)
https://mopidy.com
Apache License 2.0
214 stars 60 forks source link

Failed building wheel for lxml #208

Closed dony71 closed 5 years ago

dony71 commented 6 years ago

get this error while installing "pip install mopidy-gmusic" ............... arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EEvVvy/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/etree.c -o build/temp.linux-armv7l-2.7/src/lxml/etree.o -w arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EEvVvy/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-EEvVvy/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/src/lxml/etree.o -lxslt -lexslt -lxml2 -lrt -lz -lm -o build/lib.linux-armv7l-2.7/lxml/etree.so /usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for lxml Running setup.py clean for lxml Failed to build lxml ..................

any idea?

jodal commented 6 years ago

You probably need to install the libxml development files. If you're on Debian/Ubuntu/Raspbian, run sudo apt install libxml-dev and then retry.

garrettn commented 5 years ago

I'm running into the same problem. There is no libxml-dev package. I did install libxml2-dev and libxslt1-dev, but the mopidy-gmusic installation is still failing at the lxml step.

This is on DietPi with Debian 9.6.

mbrownnycnyc commented 5 years ago

try: apt-get install python-lxml

guythnick commented 5 years ago

I was able to get this to compile by installing these packages. I tried just python-lxml at first, so I am not sure what exactly fixed it: sudo apt-get install libxml2-dev libxslt1-dev python-lxml

garrettn commented 5 years ago

I will try that when I get a chance. Thanks, everyone!

garrettn commented 5 years ago

That seemed to work for me. mopidy-gmusic installed after @guythnick's suggestion. Thank you!

belak commented 5 years ago

Glad you got this resolved!