cpfair / tapiriik

tapiriik keeps your fitness in sync
https://tapiriik.com
Apache License 2.0
1.71k stars 294 forks source link

Would someone mind helping me get this to work on FreeBSD? #483

Open kq6up opened 5 years ago

kq6up commented 5 years ago

I have libxml2 installed already, and I can find the missing files with locate, but the scripts seem not to work? Maybe the default install is in the wrong place for this script on FreeBSD. Any help would be appreciated.

Thanks, Chris Maness

[root@freebsd12 ~/tapiriik]# cat error.txt Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 1)) Requirement already satisfied: pymongo==3.0.1 in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from -r requirements.txt (line 3)) Collecting lxml (from -r requirements.txt (line 4)) Using cached https://files.pythonhosted.org/packages/16/4a/b085a04d6dad79aa5c00c65c9b2bbcb2c6c22e5ac341e7968e0ad2c57e2f/lxml-4.3.0.tar.gz Collecting dropbox (from -r requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/bd/20/4e55247e4e474aa741d209a533f4e490ea08a0f2cf84e7fa49cd38c3b54b/dropbox-9.3.0-py3-none-any.whl Collecting python-dateutil (from -r requirements.txt (line 6)) Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl Collecting Django==1.8.2 (from -r requirements.txt (line 7)) Using cached https://files.pythonhosted.org/packages/4e/9d/2a1835ccbf8e1f0d6755d0e938ffd855f23886d055a7a18cc00a5224a99b/Django-1.8.2-py2.py3-none-any.whl Collecting pycryptodome (from -r requirements.txt (line 8)) Using cached https://files.pythonhosted.org/packages/a5/f5/ea666524f67b6e2b29112d33ad8d948281980b2a86015c264de8424400c2/pycryptodome-3.7.2.tar.gz Collecting celery (from -r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/e8/58/2a0b1067ab2c12131b5c089dfc579467c76402475c5231095e36a43b749c/celery-4.2.1-py2.py3-none-any.whl Collecting django-pipeline==1.5.1 (from -r requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/e0/2d/58c049a7ffa79b8f2c931ccc1d5c81897885c33b3cc671ceaeaa3b89cc69/django_pipeline-1.5.1-py2.py3-none-any.whl Collecting requests_oauthlib==0.4.0 (from -r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/fe/34/f8b2d57505395cfd256f9e981186d8ff16a44ace96ddc07bab329b3be20c/requests-oauthlib-0.4.0.tar.gz Collecting redis (from -r requirements.txt (line 12)) Using cached https://files.pythonhosted.org/packages/f5/00/5253aff5e747faf10d8ceb35fb5569b848cde2fdc13685d42fcf63118bbc/redis-3.0.1-py2.py3-none-any.whl Collecting django-ipware (from -r requirements.txt (line 13)) Using cached https://files.pythonhosted.org/packages/21/b3/1683aa978adfcbcdb647909cd6943c31fb3d510a971e683561ff90e26551/django-ipware-2.1.0.tar.gz Collecting smashrun-client>=0.6.0 (from -r requirements.txt (line 14)) Using cached https://files.pythonhosted.org/packages/19/c2/5b17f4cc65662fdb1ab0f1418bb61792ef8d8b12f9cb45fc84f7e1ad3453/smashrun_client-0.6.0-py2.py3-none-any.whl Collecting beautifulsoup4 (from -r requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 1)) Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 1)) Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 1)) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests->-r requirements.txt (line 1)) Collecting six>=1.3.0 (from dropbox->-r requirements.txt (line 5)) Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Collecting billiard<3.6.0,>=3.5.0.2 (from celery->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/8b/b7/c2fe04f2522bb02d044347734eeda3ff5c7a632fa7d0401530a371ba73db/billiard-3.5.0.5.tar.gz Collecting kombu<5.0,>=4.2.0 (from celery->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/44/5d/a4162de3033be4b42e59ee5101de92b218a6b0a943de9cbe8bab5c45479a/kombu-4.2.2.post1-py2.py3-none-any.whl Collecting futures>=2.1.3 (from django-pipeline==1.5.1->-r requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/cc/26/b61e3a4eb50653e8a7339d84eeaa46d1e93b92951978873c220ae64d0733/futures-3.1.1.tar.gz Collecting oauthlib>=0.4.2 (from requests_oauthlib==0.4.0->-r requirements.txt (line 11)) Using cached https://files.pythonhosted.org/packages/b8/03/ec2be6c125f330361afe33bff48ef7549c47da8fefc658a2df2242175b4b/oauthlib-3.0.0-py2.py3-none-any.whl Collecting soupsieve>=1.2 (from beautifulsoup4->-r requirements.txt (line 15)) Using cached https://files.pythonhosted.org/packages/7d/83/0b9f367f5f3beb44ee98d783fdfceb37cde6c4e43b5d6f2a12e44285d655/soupsieve-1.7-py2.py3-none-any.whl Collecting amqp<3.0,>=2.1.4 (from kombu<5.0,>=4.2.0->celery->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/7f/cf/12d4611fc67babd4ae250c9e8249c5650ae1933395488e9e7e3562b4ff24/amqp-2.3.2-py2.py3-none-any.whl Collecting vine>=1.1.3 (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.2.0->celery->-r requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/62/dd/e30f828a39914626d67876b987d6fc47616b64de680cd0f746fc9c8aab47/vine-1.2.0-py2.py3-none-any.whl Installing collected packages: lxml, six, dropbox, python-dateutil, Django, pycryptodome, billiard, vine, amqp, kombu, celery, futures, django-pipeline, oauthlib, requests-oauthlib, redis, django-ipware, smashrun-client, soupsieve, beautifulsoup4 Running setup.py install for lxml: started Running setup.py install for lxml: finished with status 'error' Complete output from command /usr/local/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-niqfnivm/lxml/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-b_houd5x-record/install-record.txt --single-version-externally-managed --compile: Building lxml version 4.3.0. Building without Cython. ERROR: b'/bin/sh: xslt-config: not found\n' 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
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/sax.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/_elementpath.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/builder.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/ElementInclude.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/__init__.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/usedoctest.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/cssselect.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/pyclasslookup.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/doctestcompare.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/diff.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/builder.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/__init__.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/clean.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/formfill.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
copying src/lxml/html/defs.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/html
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/etree_api.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/lxml.etree.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml
copying src/lxml/includes/etreepublic.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/includes
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/rng
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl
creating build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.freebsd-12.0-RELEASE-amd64-3.6/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.freebsd-12.0-RELEASE-amd64-3.6
creating build/temp.freebsd-12.0-RELEASE-amd64-3.6/src
creating build/temp.freebsd-12.0-RELEASE-amd64-3.6/src/lxml
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/usr/local/include/python3.6m -c src/lxml/etree.c -o build/temp.freebsd-12.0-RELEASE-amd64-3.6/src/lxml/etree.o -w
In file included from src/lxml/etree.c:707:
src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Compile failed: command 'cc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit478z8e79.c -o tmp/xmlXPathInit478z8e79.o
/tmp/xmlXPathInit478z8e79.c:1:10: fatal error: 'libxml/xpath.h' file not found
#include "libxml/xpath.h"
         ^~~~~~~~~~~~~~~~
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'cc' failed with exit status 1

----------------------------------------
yuanli-cn commented 4 years ago

You need development package of libxml2 and libxslt. I'm not sure if you can find them with the package manager in your system. If not, you can try to build them on your system by following the guide in this page, http://wiki.xmlsoft.org/The_libxml2_Library libxslt is similar to libxml2