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

Setup configuration fails (debian) #4

Open
PeterGhimself opened this issue Nov 3, 2018 · 0 comments
Open

Setup configuration fails (debian) #4

PeterGhimself opened this issue Nov 3, 2018 · 0 comments

Comments

@PeterGhimself
Copy link

First hurdle encountered after initially running: sudo python ./setup.py install

output:

[...]
Installed /usr/local/lib/python2.7/dist-packages/sjcam-1.0-py2.7.egg
Processing dependencies for sjcam==1.0
Searching for lxml
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 4.2.5
Downloading https://files.pythonhosted.org/packages/4b/20/ddf5eb3bd5c57582d2b4652b4bbcf8da301bdfe5d805cb94e805f4d7464d/lxml-4.2.5.tar.gz#sha256=36720698c29e7a9626a0dc802ef8885f8f0239bfd1689628ecd459a061f2807f
Processing lxml-4.2.5.tar.gz
Writing /tmp/easy_install-cACsIA/lxml-4.2.5/setup.cfg
Running lxml-4.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-cACsIA/lxml-4.2.5/egg-dist-tmp-yVehX0
Building lxml version 4.2.5.
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 
In file included from src/lxml/etree.c:662: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
/tmp/easy_install-cACsIA/lxml-4.2.5/temp/xmlXPathInitHw2meW.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main (int argc, char **argv) {
 ^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

The following installation solved this issue:
sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev

However, after the setup script is done setting up, I tried running some of the commands to test the API functionality but get the following errors:

(venv) peter@boop-Latitude-E6420:~/Documents/Programming/sjcam$ sjcam config
/home/peter/.local/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.23) or chardet (2.3.0) doesn't match a supported version!
  RequestsDependencyWarning)
/home/peter/.local/lib/python2.7/site-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)

  Camera config:
    Failed! Couldn't read config!

I tried deactivating the virtual environment but still got the same error messages.

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