vikstrous / pirate-get

A command line interface for The Pirate Bay
GNU Affero General Public License v3.0
337 stars 53 forks source link

install issue #81

Closed ssdr closed 8 years ago

ssdr commented 8 years ago

hey, when i just press pip3 install pirate-get, i got this error:

![Uploading image.png…]()

hope for your reply, thx~

ssdr commented 8 years ago

image

vikstrous commented 8 years ago

Sounds like you need to install libxml. Let me know if you figure out the name of the brew package you need and we'll document it.

cesarpachon commented 8 years ago

same problem here (ubuntu 15) sudo apt-get install libxml2 says already latest version

vranki commented 8 years ago

Same here on Ubuntu 16.04:

pip3 install pirate-get

Install fails due to:

    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/lxml/includes -I/usr/include/python3.5m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.5/src/lxml/lxml.etree.o -w
    In file included from src/lxml/lxml.etree.c:320:0:
    src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
    compilation terminated.
    Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitorbkzi3b.c -o tmp/xmlXPathInitorbkzi3b.o
    /tmp/xmlXPathInitorbkzi3b.c:1:26: fatal error: libxml/xpath.h: No such file or directory
    compilation terminated.
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
$ sudo apt install libxml2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libxml2 is already the newest version (2.9.3+dfsg1-1ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
vranki commented 8 years ago

Installing libxml2-dev changes the error:

    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/lxml/includes -I/usr/include/python3.5m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.5/src/lxml/lxml.etree.o -w
    In file included from src/lxml/lxml.etree.c:320:0:
    src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
    compilation terminated.
rnhmjoj commented 8 years ago

@vikstrous libxml is a dependency of pyquery, right? Can't we switch to something not requiring a C library? All the recent issues were about this.

vikstrous commented 8 years ago

Yeah, I'm okay with switching. PRs welcome.

On June 23, 2016 6:41:13 AM PDT, Michele Guerini Rocco notifications@github.com wrote:

@vikstrous libxml is a dependency of pyquery, right? Can't we switch to something not requiring a C library? All the recent issues were about this.


You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/vikstrous/pirate-get/issues/81#issuecomment-228053234

Sent from my Android device with K-9 Mail. Please excuse my brevity.

vikstrous commented 8 years ago

Looks like we would have to switch to beautiful soup because pyquery depends on lxml.

rnhmjoj commented 8 years ago

That's seems that best option. I'll work on it.

rnhmjoj commented 8 years ago

Fixed in 41b3d56721d6ae3e16ae97aa8bc066a5b6c5e77e