PBR : Exception "Versioning for this project requires either an sdist tarball, or access to an upstream git repository.
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...)
#Tried:
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...)
Troubleshooting:
After running FORCE=yes ./stack.sh
I receive the following traceback:
Traceback (most recent call last):
File "manage.py", line 25, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
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__
self._setup(name)
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:
openstack-dashboard
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 ...