Kallithea issues archive

Issue #287: Installation Issue

Reported by: BGW
State: resolved
Created on: 2017-07-18 01:06
Updated on: 2018-01-20 20:35

Description

Trying to install Kallithea on Lubuntu 16.04.2, 32 bit. Machine with 1 GB RAM, Pentium 4 processor. Get the following error after command

php install -e .

Error:

  Found existing installation: setuptools 36.2.0
    Uninstalling setuptools-36.2.0:
      Successfully uninstalled setuptools-36.2.0
  Rolling back uninstall of setuptools
Exception:
Traceback (most recent call last):
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/wheel.py", line 247, in move_wheel_files
    prefix=prefix,
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/pip/locations.py", line 140, in distutils_scheme
    d = Distribution(dist_args)
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 365, in __init__
    self._finalize_requires()
  File "/home/scm/kallithea-venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 372, in _finalize_requires
    if not self.install_requires:
AttributeError: Distribution instance has no attribute 'install_requires'

I know nothing about Python so none of this make sense to me. Please advise on how to fix, or update documentation so that Kallithea is easy to install for us ignorant of your development environment.

Attachments

Comments

Comment by Mads Kiilerich, on 2017-07-18 08:20

What version of Kallithea are you installing? How did you get it?

Which instructions are you following and what steps did you do before this?

Comment by BGW, on 2017-07-19 01:41

The install is of your latest stable version, which I believe is 0.3.2. It is being installed on a completely fresh Lubuntu machine. The machine will be dedicated to SCM. Before and during the install I used sudo apt-get install to get the following packages:

apache2 mercurial virtualenv python-pip python-pastescript sqlite

I know a bit about Apache2 and Mercurial but nothing about the rest of them. If they need further customization before being employed by Kallithea I would need further instructions on how to do that.

I was following the instructions on this web page: http://kallithea.readthedocs.io/en/latest/installation.html. The instructions are:

hg clone https://kallithea-scm.org/repos/kallithea -u stable
cd kallithea
virtualenv ../kallithea-venv
source ../kallithea-venv/bin/activate
pip install --upgrade pip "setuptools<34"
pip install -e .
python2 setup.py compile_catalog   # for translation of the UI

Things stopped working on the second last step.

If we get this working I'll try the updated instructions on a VM running a fresh install of Lubuntu to make sure things are correct. Possibly instructions are needed to take a fresh machine to Kallithea SCM server for the complete newbie.

One thing I have noticed is when I bring the instructions up on Lubuntu in Firefox 54 (32 bit) the instruction line pip install --upgrade pip "setuptools<34" (Which is what I see on my Macintosh) comes up as pip install --upgrade pip "setuptools" on Lubuntu. I'd check that out as my install now works with the new instruction.

I'll continue the install and report back to you.

Comment by BGW, on 2017-07-19 01:44

Looking deeper... I think I found it. You have two websites...

http://kallithea.readthedocs.io/en/latest/installation.html

and

http://pythonhosted.org/Kallithea/installation.html

The one on pythonhosted.org is out of date!

Comment by Mads Kiilerich, on 2017-07-19 07:31

The documentation on pythonhosted was correct and uptodate when 0.3.2 was released ... but something in our dependency chain released a new version and broke. We will soon release a new version on pypi and pythonhosted.

Comment by BGW, on 2017-07-19 13:37

Now that I'm a bit further in I did part of the set up. When I entered the serve command I got this:

scm@scm:~/kallithea$ paster serve my.ini
Traceback (most recent call last):
  File "/usr/bin/paster", line 4, in <module>
    command.run()
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 93, in run
    commands = get_commands()
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 135, in get_commands
    plugins = pluginlib.resolve_plugins(plugins)
  File "/usr/lib/python2.7/dist-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
    pkg_resources.require(plugin)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: <exception str() failed>
scm@scm:~/kallithea$

So again, I'm a bit lost.

Comment by Mads Kiilerich, on 2017-07-19 13:52

I guess you installed in a virtualenv but is running paster outside it?

Comment by BGW, on 2017-09-10 16:25

I got everything working! And things were going great until today when I updated my machine. See issue 298.

Comment by Thomas De Schampheleire, on 2018-01-20 20:35

Closing as issue is resolved now.

The fact that pythonhosted.org is out of date is known, see issue #293.