rienafairefr / pynYNAB

a python client for the new YNAB
MIT License
138 stars 12 forks source link

Unable to install on Raspberry Pi Zero W #51

Closed smseidl closed 6 years ago

smseidl commented 6 years ago

Attempted to install on Raspbery Pi Zero W with both pip, and cloning repo and running 'python setup.py install' and both failed. Using setup.py the final line of output is "error: Installed distribution requests 2.4.3 conflicts with requirement requests>=2.5,<3.0a". Numerous other errors noted in output as well.

Please advise what additional debug details you need or steps to try.

rienafairefr commented 6 years ago

The other errors might be important (this conflict might be caused by a previous error). Can you install it in a virtualenv maybe ?

pynYNAB doen't seem to have a hard requirement on the version of requests, so it's probably a requested dependency that is requesting a specific requestsversion, for some reason. Can you post a full log ? pip install pynYNAB --log LOG_FILE then send LOG_FILE as attachment or a paste

smseidl commented 6 years ago

Attached you will find the log file you wanted.

On Thu, Jul 27, 2017 at 2:47 AM, rienafairefr notifications@github.com wrote:

The other errors might be important (this conflict might be caused by a previous error). Can you install it in a virtualenv maybe ?

pynYNAB doen't seem to have a hard requirement on the version of requests, so it's probably a requested dependency that is requesting a specific requestsversion, for some reason. Can you post a full log ? pip install pynYNAB --log LOG_FILE then send LOG_FILE as attachment or a paste

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rienafairefr/pynYNAB/issues/51#issuecomment-318286091, or mute the thread https://github.com/notifications/unsubscribe-auth/AWdw_LTcy2nDmF4NecE7ul72PBPzD7EQks5sSECLgaJpZM4OkxH- .

rienafairefr commented 6 years ago

The attachment didn't pass through. This might help:

https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/

On Jul 28, 2017 03:07, "smseidl" notifications@github.com wrote:

Attached you will find the log file you wanted.

On Thu, Jul 27, 2017 at 2:47 AM, rienafairefr notifications@github.com wrote:

The other errors might be important (this conflict might be caused by a previous error). Can you install it in a virtualenv maybe ?

pynYNAB doen't seem to have a hard requirement on the version of requests, so it's probably a requested dependency that is requesting a specific requestsversion, for some reason. Can you post a full log ? pip install pynYNAB --log LOG_FILE then send LOG_FILE as attachment or a paste

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub <https://github.com/rienafairefr/pynYNAB/issues/51#issuecomment-318286091 , or mute the thread https://github.com/notifications/unsubscribe-auth/AWdw_ LTcy2nDmF4NecE7ul72PBPzD7EQks5sSECLgaJpZM4OkxH- .

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/rienafairefr/pynYNAB/issues/51#issuecomment-318528294, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuS9SCv0mblGHMb_7gcPboDokg7GvSOks5sSTRKgaJpZM4OkxH- .

smseidl commented 6 years ago

Hopefully this works this time. Here is the same log file uploaded thru the website instead of attached via email.

installlog.txt

rienafairefr commented 6 years ago

In the end you have a Python.h: No such file or directory, which is usually because your system doesnt have the python-dev package, which brings the Python.h. Do a sudo apt-get install python-dev or similar.

This happens when installing the regexpackage dependency, not sure why this one needs the python-dev

smseidl commented 6 years ago

Well, python-dev alone didn't help. I also had to manually install libxml2-dev and libxslt-dev (via apt install libxml2-dev libxslt-dev), but this has led to a seemingly new issues. Now when doing the pip install, I'm stuck at the "Running setup.py install for lxml" for 10 minutes. I'm going to leave it go overnight, but don't have much faith that it's going to complete.

Install log to this point: scott@XXXXXXXXXXXXX:~ $ sudo pip install pynYNAB Requirement already satisfied (use --upgrade to upgrade): pynYNAB in /usr/local/lib/python2.7/dist-packages/pynYNAB-dev-py2.7.egg Requirement already satisfied (use --upgrade to upgrade): configargparse in /usr/local/lib/python2.7/dist-packages/ConfigArgParse-0.12.0-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): pynab in /usr/local/lib/python2.7/dist-packages/pynab-0.6.8-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsontableschema==0.10.0 in /usr/local/lib/python2.7/dist-packages/jsontableschema-0.10.0-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): unicodecsv in /usr/local/lib/python2.7/dist-packages/unicodecsv-0.14.1-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): appdirs in /usr/local/lib/python2.7/dist-packages/appdirs-1.4.3-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/dist-packages (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): aenum in /usr/local/lib/python2.7/dist-packages/aenum-2.0.8-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): sqlalchemy in /usr/local/lib/python2.7/dist-packages/SQLAlchemy-1.2.0b2-py2.7-linux-armv6l.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): toolz in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): schematics in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): dateparser in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): click>=3.3,<7.0a in /usr/local/lib/python2.7/dist-packages (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.4,<3.0a in /usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.1-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsonschema>=2.5,<3.0a in /usr/local/lib/python2.7/dist-packages/jsonschema-2.6.0-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): rfc3986>=0.4,<1.0a in /usr/local/lib/python2.7/dist-packages/rfc3986-0.4.1-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): future>=0.15,<1.0a in /usr/local/lib/python2.7/dist-packages/future-0.16.0-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): tabulator>=0.7,<1.0a in /usr/local/lib/python2.7/dist-packages/tabulator-0.15.1-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): isodate>=0.5.4,<1.0a in /usr/local/lib/python2.7/dist-packages/isodate-0.5.4-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): xlrd>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): ijson>=2.0,<3.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): cchardet>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): openpyxl>=2.4,<3.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): linear-tsv>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsonlines>=1.1,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): ezodf>=0.3,<1.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading/unpacking lxml>=3.0,<4.0a (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading lxml-3.8.0.tar.gz (3.8MB): 3.8MB downloaded Running setup.py (path:/tmp/pip-build-lhw7Yq/lxml/setup.py) egg_info for package lxml Building lxml version 3.8.0. Building without Cython. Using build configuration of libxslt 1.1.28

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

Downloading/unpacking jdcal (from openpyxl>=2.4,<3.0a->tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading jdcal-1.3.tar.gz Running setup.py (path:/tmp/pip-build-lhw7Yq/jdcal/setup.py) egg_info for package jdcal

Downloading/unpacking et-xmlfile (from openpyxl>=2.4,<3.0a->tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading et_xmlfile-1.0.1.tar.gz Running setup.py (path:/tmp/pip-build-lhw7Yq/et-xmlfile/setup.py) egg_info for package et-xmlfile

Installing collected packages: lxml, jdcal, et-xmlfile Running setup.py install for lxml Building lxml version 3.8.0. Building without Cython. Using build configuration of libxslt 1.1.28 building 'lxml.etree' extension arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-armv6l-2.7/src/lxml/lxml.etree.o -w

rienafairefr commented 6 years ago

The python-lxml apt package might solve that, might be better than installing from source. Good luck

On Jul 31, 2017 05:16, "smseidl" notifications@github.com wrote:

Well, python-dev alone didn't help. I also had to manually install libxml2-dev and libxslt-dev (via apt install libxml2-dev libxslt-dev), but this has led to a seemingly new issues. Now when doing the pip install, I'm stuck at the "Running setup.py install for lxml" for 10 minutes. I'm going to leave it go overnight, but don't have much faith that it's going to complete.

Install log to this point: scott@XXXXXXXXXXXXX:~ $ sudo pip install pynYNAB Requirement already satisfied (use --upgrade to upgrade): pynYNAB in /usr/local/lib/python2.7/dist-packages/pynYNAB-dev-py2.7.egg Requirement already satisfied (use --upgrade to upgrade): configargparse in /usr/local/lib/python2.7/dist-packages/ConfigArgParse-0.12.0-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): pynab in /usr/local/lib/python2.7/dist-packages/pynab-0.6.8-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsontableschema==0.10.0 in /usr/local/lib/python2.7/dist- packages/jsontableschema-0.10.0-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): unicodecsv in /usr/local/lib/python2.7/dist-packages/unicodecsv-0.14.1-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): appdirs in /usr/local/lib/python2.7/dist-packages/appdirs-1.4.3-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/dist-packages (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): aenum in /usr/local/lib/python2.7/dist-packages/aenum-2.0.8-py2.7.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): sqlalchemy in /usr/local/lib/python2.7/dist-packages/SQLAlchemy-1.2.0b2-py2.7-linux-armv6l.egg (from pynYNAB) Requirement already satisfied (use --upgrade to upgrade): toolz in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): schematics in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): dateparser in /usr/local/lib/python2.7/dist-packages (from pynab->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): click>=3.3,<7.0a in /usr/local/lib/python2.7/dist-packages (from jsontableschema==0.10.0-> pynYNAB) Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2.4,<3.0a in /usr/local/lib/python2.7/dist- packages/python_dateutil-2.6.1-py2.7.egg (from jsontableschema==0.10.0-> pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsonschema>=2.5,<3.0a in /usr/local/lib/python2.7/dist- packages/jsonschema-2.6.0-py2.7.egg (from jsontableschema==0.10.0-> pynYNAB) Requirement already satisfied (use --upgrade to upgrade): rfc3986>=0.4,<1.0a in /usr/local/lib/python2.7/dist- packages/rfc3986-0.4.1-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): future>=0.15,<1.0a in /usr/local/lib/python2.7/dist- packages/future-0.16.0-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): tabulator>=0.7,<1.0a in /usr/local/lib/python2.7/dist- packages/tabulator-0.15.1-py2.7.egg (from jsontableschema==0.10.0-> pynYNAB) Requirement already satisfied (use --upgrade to upgrade): isodate>=0.5.4,<1.0a in /usr/local/lib/python2.7/dist- packages/isodate-0.5.4-py2.7.egg (from jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): xlrd>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a-> jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): ijson>=2.0,<3.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a-> jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): cchardet>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): openpyxl>=2.4,<3.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): linear-tsv>=1.0,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): jsonlines>=1.1,<2.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Requirement already satisfied (use --upgrade to upgrade): ezodf>=0.3,<1.0a in /usr/local/lib/python2.7/dist-packages (from tabulator>=0.7,<1.0a-> jsontableschema==0.10.0->pynYNAB) Downloading/unpacking lxml>=3.0,<4.0a (from tabulator>=0.7,<1.0a-> jsontableschema==0.10.0->pynYNAB) Downloading lxml-3.8.0.tar.gz (3.8MB): 3.8MB downloaded Running setup.py (path:/tmp/pip-build-lhw7Yq/lxml/setup.py) egg_info for package lxml Building lxml version 3.8.0. Building without Cython. Using build configuration of libxslt 1.1.28

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

Downloading/unpacking jdcal (from openpyxl>=2.4,<3.0a-> tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading jdcal-1.3.tar.gz Running setup.py (path:/tmp/pip-build-lhw7Yq/jdcal/setup.py) egg_info for package jdcal

Downloading/unpacking et-xmlfile (from openpyxl>=2.4,<3.0a-> tabulator>=0.7,<1.0a->jsontableschema==0.10.0->pynYNAB) Downloading et_xmlfile-1.0.1.tar.gz Running setup.py (path:/tmp/pip-build-lhw7Yq/et-xmlfile/setup.py) egg_info for package et-xmlfile

Installing collected packages: lxml, jdcal, et-xmlfile Running setup.py install for lxml Building lxml version 3.8.0. Building without Cython. Using build configuration of libxslt 1.1.28 building 'lxml.etree' extension arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-armv6l-2.7/src/lxml/lxml.etree.o -w

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rienafairefr/pynYNAB/issues/51#issuecomment-318957607, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuS9TtMqrU8tP7ZB07kLzt6_zENSR_mks5sTUcLgaJpZM4OkxH- .

smseidl commented 6 years ago

It installed overnight without installing the 'python-lxml' package. I would love to see this bundled together better so that we wouldn't need to manually install the pre-reqs.

I'm not closing, but understand if you want to.