Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oorel@mash2527:~$sudo pip install python-amazon-simple-product-api #157

Open
olegorel opened this issue May 14, 2019 · 1 comment
Open

Comments

@olegorel
Copy link

oorel@mash2527:$
oorel@mash2527:
$sudo pip install python-amazon-simple-product-api
Requirement already satisfied (use --upgrade to upgrade): python-amazon-simple-product-api in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): bottlenose in /usr/local/lib/python2.7/dist-packages (from python-amazon-simple-product-api)
Downloading/unpacking lxml (from python-amazon-simple-product-api)
Downloading lxml-4.3.3.tar.gz (4.4MB): 4.4MB downloaded
Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
Building lxml version 4.3.3.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt

warning: no previously-included files found matching '*.py'

Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from python-amazon-simple-product-api)
Installing collected packages: lxml
Running setup.py install for lxml
Building lxml version 4.3.3.
Building without Cython.
ERROR: /bin/sh: 1: xslt-config: not found

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
building 'lxml.etree' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/etree.c -o build/temp.linux-x86_64-2.7/src/lxml/etree.o -w
src/lxml/etree.c:97:20: fatal error: Python.h: No such file or directory
 #include "Python.h"
                    ^
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitZXlX0g.c -o tmp/xmlXPathInitZXlX0g.o
/tmp/xmlXPathInitZXlX0g.c:1:26: fatal error: libxml/xpath.h: No such file or directory
 #include "libxml/xpath.h"
                          ^
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
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-v84ZR4-record/install-record.txt --single-version-externally-managed --compile:
Building lxml version 4.3.3.

Building without Cython.

ERROR: /bin/sh: 1: xslt-config: not found

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt

running install

running build

running build_py

creating build

@olegorel
Copy link
Author

oorel@mash2527:~/Downloads$python
Python 2.7.6 (default, Nov 13 2018, 12:45:42)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from amazon.api import AmazonAPI
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/amazon/api.py", line 20, in
from lxml import objectify, etree
ImportError: No module named lxml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant