Cannot install nailgun deps using dev-requirements.txt

Bug #1263640 reported by Aleksey Kasatkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ivan Kolodyazhny

Bug Description

Ubuntu 12.04, 13.04

$ sudo apt-get install python-dev python-pip
$ sudo pip install -r dev-requirements.txt

Double requirement given: decorator==3.4.0 (from -r test-requirements.txt (line 6)) (already in decorator==3.4.0 (from -r requirements.txt (line 8)), name='decorator')
Storing complete log in /home/test/.pip/pip.log

/home/test/.pip/pip.log:

Double requirement given: decorator==3.4.0 (from -r test-requirements.txt (line 6)) (already in decorator==3.4.0 (from -r requirements.txt (line 8)), name='decorator')

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 221, in run
    requirement_set.add_requirement(req)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 893, in add_requirement
    % (install_req, self.get_requirement(name), name))
InstallationError: Double requirement given: decorator==3.4.0 (from -r test-requirements.txt (line 6)) (already in decorator==3.4.0 (from -r requirements.txt (line 8)), name='decorator')

Changed in fuel:
milestone: none → 4.0
assignee: nobody → Fuel Python Team (fuel-python)
Revision history for this message
Evgeniy L (rustyrobot) wrote :

Yes, we really have a duplication
https://github.com/stackforge/fuel-web/blob/master/nailgun/requirements.txt#L8

We need to try to remove it from test-requirements
https://github.com/stackforge/fuel-web/blob/master/nailgun/test-requirements.txt#L6

It's sad, that pip couldn't handle such simple cases :(

Changed in fuel:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Triaged
tags: added: low-hanging-fruit nailgun
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Another problem: cannot install psycopg2. Both 12.04 and 13.04. Logs:
...
  Using version 2.4.6 (newest of versions: 2.4.6, 2.4.6)
  Downloading from URL https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.6.tar.gz#md5=79d7f05e67bf70a0ecc6e9103ccece5f (from https://pypi.python.org/si
mple/psycopg2/)
  Running setup.py egg_info for package psycopg2
    running egg_info
    creating pip-egg-info/psycopg2.egg-info
    writing pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    Error: pg_config executable not found.

    Please add the directory containing pg_config to the PATH
    or specify the full executable path with the option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.
    Complete output from command python setup.py egg_info:
    running egg_info

creating pip-egg-info/psycopg2.egg-info

writing pip-egg-info/psycopg2.egg-info/PKG-INFO

writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt

writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt

writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

warning: manifest_maker: standard file '-c' not found

Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH

or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 980, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 216, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1

Ivan Kolodyazhny (e0ne)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Ivan Kolodyazhny (e0ne)
Revision history for this message
Nikolay Markov (nmarkov) wrote :

postgresql-dev package should be installed, I guess

Mike Scherbakov (mihgen)
Changed in fuel:
importance: Medium → High
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

You are right. It goes well with postgresql.

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Next thing:

Downloading/unpacking rst2pdf==0.93 (from -r test-requirements.txt (line 8))
  Downloading rst2pdf-0.93.tar.gz (1.3Mb): 1.3Mb downloaded
  Running setup.py egg_info for package rst2pdf

  Source in ./build/rst2pdf has the version 0.93.dev, which does not match the requirement rst2pdf==0.93 (from -r test-requirements.txt (line 8))
Source in ./build/rst2pdf has version 0.93.dev that conflicts with rst2pdf==0.93 (from -r test-requirements.txt (line 8))
Storing complete log in /home/griz_ctrl/.pip/pip.log

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

The last thing is for 12.04 only. It's all OK with 13.04.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

Fix proposed to branch: master
Review: https://review.openstack.org/63704

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/63704
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=2c24560fc1ed999adecd40ef8242506df961f7a4
Submitter: Jenkins
Branch: master

commit 2c24560fc1ed999adecd40ef8242506df961f7a4
Author: Ivan Kolodyazhny <email address hidden>
Date: Mon Dec 23 12:36:04 2013 +0200

    Update development requirements

    Closes bug: 1263640

    Change-Id: Ia7c374cfacc0e68cdb4968d7b8abb40ec2a65cc3

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.