dependencies missing when installing

Bug #1631526 reported by Cale Rath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Incomplete
Undecided
Unassigned

Bug Description

When doing a pip install (sudo pip install python-openstackclient), not in a virtualenv, I receive the following error:

  Running setup.py install for positional
    ERROR:root:Error parsing
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 111, in pbr
        attrs = util.cfg_to_args(path, dist.script_args)
      File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 264, in cfg_to_args
        wrap_commands(kwargs)
      File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 573, in wrap_commands
        cmdclass = ep.load(False)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
        entry = __import__(self.module_name, globals(),globals(), ['__name__'])
      File "/usr/local/lib/python2.7/dist-packages/babel/messages/__init__.py", line 12, in <module>
        from babel.messages.catalog import *
      File "/usr/local/lib/python2.7/dist-packages/babel/messages/catalog.py", line 23, in <module>
        from babel.dates import format_datetime
      File "/usr/local/lib/python2.7/dist-packages/babel/dates.py", line 23, in <module>
        import pytz as _pytz
    ImportError: No module named pytz
    error in setup command: Error parsing /tmp/pip_build_root/positional/setup.cfg: ImportError: No module named pytz
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/positional/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RfNJw5-record/install-record.txt --single-version-externally-managed --compile:
    ERROR:root:Error parsing

Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 111, in pbr

    attrs = util.cfg_to_args(path, dist.script_args)

  File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 264, in cfg_to_args

    wrap_commands(kwargs)

  File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 573, in wrap_commands

    cmdclass = ep.load(False)

  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load

    entry = __import__(self.module_name, globals(),globals(), ['__name__'])

  File "/usr/local/lib/python2.7/dist-packages/babel/messages/__init__.py", line 12, in <module>

    from babel.messages.catalog import *

  File "/usr/local/lib/python2.7/dist-packages/babel/messages/catalog.py", line 23, in <module>

    from babel.dates import format_datetime

  File "/usr/local/lib/python2.7/dist-packages/babel/dates.py", line 23, in <module>

    import pytz as _pytz

ImportError: No module named pytz

error in setup command: Error parsing /tmp/pip_build_root/positional/setup.cfg: ImportError: No module named pytz

---

I then need to do the following manual installs for the openstackclient to work:

sudo pip install pytz
sudo pip install positional
sudo pip install iso8601
sudo pip install requestsexceptions
sudo pip install appdirs
sudo pip install debtcollector
sudo pip install oslo.config
sudo pip install monotonic
sudo pip install oslo.serialization
sudo pip install python-novaclient
sudo pip install netifaces
sudo pip install python-csv

Revision history for this message
Steve Martinelli (stevemar) wrote :

Is the environment clean?

Running pip with sudo is definitely going to cause issues down the line, using a virtualenv is highly recommended. But if you're going to stick with sudo, does using --upgrade help?

$ sudo pip install --upgrade python-openstackclient

Revision history for this message
Cale Rath (ctrath) wrote :

stevemar,

This was run on a completely fresh Ubuntu Trusty install. I will try --upgrade on my next deploy and post results.

Revision history for this message
Praveen N (praveenn) wrote :

@ctrath, Have you tried --upgrade and check ?

Changed in python-openstackclient:
status: New → Incomplete
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.