These are chat archives for coala/coala-bears

6th
Nov 2018
Prashant Sharma
@gutsytechster
Nov 06 2018 18:09
hey anyone, I was trying to execute tests. So I ran command pip install -r test-requirements.txt -r requirements.txt. But it gave error as ImportError: cannot import name 'get_installed_distributions'
I also checked if my pip version is old but it is updated
As when I do pip3 --version
I get output as pip 18.1 from /home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip (python 3.5)
Abhinav Kaushlya
@abhishalya
Nov 06 2018 18:11
To run tests, run py.test
pip is used to install dependencies
Prashant Sharma
@gutsytechster
Nov 06 2018 18:11
It still gives the error ImportError: cannot import name 'get_installed_distributions'
Abhinav Kaushlya
@abhishalya
Nov 06 2018 18:11
Yeah, install dependencies
Mischa Krüger
@Makman2
Nov 06 2018 18:12
please install pip9, pip10 and newer don't work
Abhinav Kaushlya
@abhishalya
Nov 06 2018 18:13
Even if you have upgraded version, it would downgrade you to lower version
While installing dependencies
Prashant Sharma
@gutsytechster
Nov 06 2018 18:13
But even after installing dependencies, it didn't downgrade
Mischa Krüger
@Makman2
Nov 06 2018 18:13
it doesn't sometimes, anyway he has pip 18.1 running, and this is definitely the cause
Prashant Sharma
@gutsytechster
Nov 06 2018 18:22
Well, I installed pip version 10.0 and tried to run the pip3 install -r test-requirements.txt -r requirements.txt. But in the end it gave the error
Building wheels for collected packages: coala, lxml
Exception:
Traceback (most recent call last):
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 228, in main
    status = self.run(options, args)
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 305, in run
    session=session, autobuilding=True
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/wheel.py", line 773, in build
    python_tag=python_tag,
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/wheel.py", line 633, in _build_one
    python_tag=python_tag)
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/wheel.py", line 637, in _build_one_inside_env
    if self.__build_one(req, temp_dir.path, python_tag=python_tag):
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/wheel.py", line 663, in __build_one
    base_args = self._base_setup_args(req)
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/wheel.py", line 659, in _base_setup_args
    SETUPTOOLS_SHIM % req.setup_py
  File "/home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 415, in setup_py
    assert self.source_dir, "No source dir for %s" % self
AssertionError: No source dir for coala from git+https://github.com/coala/coala#egg=coala in /home/gutsytechster/.local/share/virtualenvs/coala-TpfGrQw_/lib/python3.5/site-packages (from -r requirements.txt (line 3))
and still it isn't running the pytest giving the same error as earlier
Mischa Krüger
@Makman2
Nov 06 2018 19:26

please install pip9, pip10 and newer don't work

pip9 is not pip10 ^^