PBR : Exception "Versioning for this project requires either an sdist tarball, or access to an upstream git repository.

asked 2015-01-11 12:37:52 -0500

updated 2015-01-11 17:29:40 -0500

Trying to install openstack on Ubuntu 14.10

My initial thought was that openstack-dashboard wasn't installed properly, which led me to belive that horizon wasn't properly installed, which led me to pbr.

The only related question that I could find: https://ask.openstack.org/en/question/47118/issue-with-nova-installation-in-devstack/ (https://ask.openstack.org/en/question...)


What I have tried:

  • http://docs.openstack.org/developer/horizon/quickstart.html (http://docs.openstack.org/developer/h...)
  • installing horizon from git repo
  • sudo apt-get install openstack-dashboard
  • updating git from the git repo ( so from 2.1.0 to 2.2.0)
  • dropping openstack-dashboard django folders in every place that I could think of
  • making sure that pip install xstatic
  • which python and the above steps as well
  • still working on DJANGO_SETTINGS_MODULE to see where it gets set? See: https://github.com/openstack/horizon/blob/master/openstack_dashboard/wsgi/django.wsgi#L7-L10 (here)
  • a2enmod wsgi
  • sudo pip install -U pbr As seen: https://github.com/rackspace/pyrax/issues/450 (here)
  • Installing pbr from git repo.
  • Searching launchpad for any reference to the error: "Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?"
  • https://bugs.launchpad.net/pbr/+bug/1369179 (https://bugs.launchpad.net/pbr/+bug/1...)
  • https://bugs.launchpad.net/pbr/+bug/1374677 (https://bugs.launchpad.net/pbr/+bug/1...)
  • https://bugs.launchpad.net/pbr/+bug/1232868 (https://bugs.launchpad.net/pbr/+bug/1...)
  • https://bugs.launchpad.net/pbr/+bug/1379579 (https://bugs.launchpad.net/pbr/+bug/1...)


After running FORCE=yes ./stack.sh I receive the following traceback:

Traceback (most recent call last):
  File "manage.py", line 25, in <module>
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 132, in __init__
    % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named xstatic.main
dpkg: error processing package openstack-dashboard (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Also my version info:

bob@bob-NE722:~/devstack$ pip show horizon
Name: horizon
Version: 2015.1.dev95
Location: /opt/stack/horizon

bob@bob-NE722:~/devstack$ lsb_release -a
No ...
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-01-11 18:18:39 -0500

updated 2015-01-11 18:25:00 -0500

Since django was serving the page properly in the first place, I should have noticed this as a sign that everything was configured correctly except for where django was residing for the install.

Based on the default install instructions and this quickstart http://docs.openstack.org/developer/horizon/quickstart.html (http://docs.openstack.org/developer/h...) I had neglected to copy the local_settings file:

cd /opt/stack/horizon
cp openstack_dashboard/local/local_settings.py.example openstack_dashboard/local/local_settings.py

It was a hard start, but looks shiny and awesome, and I am very excited.

edit flag offensive delete link more


i am installing devstack juno release on ubuntu 14.04 64bit and getting similar import error but not resolved by the above solution. here is link link text

mohsin gravatar imagemohsin ( 2015-04-01 03:20:15 -0500 )edit

answered 2015-01-11 15:36:44 -0500

The traceback shoes No module named xstatic.main, means you have used it somewhere in your code but its not in the project. You need to install it where Python can see it.

edit flag offensive delete link more


thanks for the response. So would it be an issue with venv? Because when I python -c "import xstatic.main" it imports just fine?

jmunsch gravatar imagejmunsch ( 2015-01-11 16:01:28 -0500 )edit

answered 2015-10-05 03:44:37 -0500

Fayyaz ur Rehman gravatar image

I had such error while i was trying to use the jenkins-job-builder release 1.2.0.tar.gz

i solved it by extracting the tar - cd [1.2.0.tar] - git init - pip install -r requirements.txt - python setup.py install

and it worked without any trouble

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-11 12:37:52 -0500

Seen: 8,756 times

Last updated: Oct 05 '15