These are chat archives for coala/coala-bears

18th
Jul 2018
Mor Elmaliach
@MorTD
Jul 18 2018 18:19

Hey guys. I am having a bit of a difficulty running the requirements installation for testing my changes for issue #2585. I have pip updated to the latest version 10.0.1:
morelm@clab:~/coala/coala-bears[21:16]-> sudo -H pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
Successfully installed pip-10.0.1
morelm@clab:~/coala/coala-bears[21:16]-> pip --version
pip 10.0.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)

I have then tried to run the installation as shown on the api for beginners:
morelm@clab:~/coala/coala-bears[21:16]-> sudo -H pip install -r test-requirements.txt -r requirements.txt

but after it's finishing collecting everything, I encounter this:
[in red] Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-lg47os0q/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-record-60wzbczv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-lg47os0q/lxml/
[in yellow] You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

After which, when checking the version of pip, it is again 9.0.3 instead of 10.0.1.
I have also tried logging to root in order to preform this. I feel really silly and don't understand what I'm missing.

Mor Elmaliach
@MorTD
Jul 18 2018 19:38
update: it seems to be narrowing down to "Failed building wheel for lxml". during the installation of the requirements... anyone familiar with this type of issue? I tried searching on google and SO, but nothing relevant to my case. I searched here in the group as well - it seems there were isues with installing it but I can't seem to use the solutions suggested for my case...
saksham189
@saksham189
Jul 18 2018 19:40
@MorTD we specifically use pip9 rather than version 10 because it has some issues
are you trying to run the tests? then you might be able to just use pytest -k "testName"
and make sure you run coala as well :smile:
Guangyuan (Charlie) Yang
@yzgyyang
Jul 18 2018 19:43
For lxml, I know that an older version is not compatible with Python 3.7 (not sure if they fixed it). But first things first, have you ensured that libxml2 and libxslt is installed in the system?
Mor Elmaliach
@MorTD
Jul 18 2018 19:56
I checked now, they are not. and anctartica - I figure as much, after trying to run this a few times and checking the requirements file and I saw it uses 9 one, so I reverted to 9*. I was following the instructions on the api website for beginner contributors, and it mentions installing the repository I forked this way before testing
Mor Elmaliach
@MorTD
Jul 18 2018 20:02
actually, libxml2 is installed. libxslt was installed now
Mor Elmaliach
@MorTD
Jul 18 2018 21:09
documentation website down?