deejcunningham / skill-score

Deprecated Mycroft skill to report latest MLB scores
MIT License
3 stars 5 forks source link

Failed to install dependencies #20

Open ekjswim opened 6 years ago

ekjswim commented 6 years ago

While attempting to install through MSM on Mark I, I receive error: "Failed to install Python dependencies"

Was unable to pull own logs but issue was replicated by Kathy Reid who output logs here: https://gist.github.com/KathyReid/1b62b702981381d50909bf7fd1648693

She identified ERROR: b'/bin/sh: 1: xslt-config: not found\n' ** make sure the development packages of libxml2 and libxslt are installed **

and suggested

that libxml2 and libxslt need to be listed as deps in requirements.txt

deejcunningham commented 6 years ago

Thanks for investigating this!

I believe requirements.txt installs dependencies via pip, however libxml2 and libxslt are not Python packages and must be installed via apt-get (or some other method).

These two are actually dependencies of a pip package lxml which is itself a dependency of mlbgame.

Reading the lxml documentation, I believe I can install the two problem libraries with STATIC_DEPS=true sudo pip install lxml, however I do not think I can set STATIC_DEPS=true while installing via requirements.txt

I will continue to look into this, not working on the reference hardware is not good!

deejcunningham commented 5 years ago

For now I have added instructions to the README that explain the reliance on these packages. I will keep an eye out for a way to have these installed automatically. Perhaps there is another Python module that we can add to requirements.txt that will get these packages installed?