Install OpenStack: ImportError: Could not import settings 'openstack_dashboard.settings' (***?): No module named angular_fileupload
<p>I was trying to build openstack (stack.sh), tried many times, still can't figure out the reason, below is the logs:</p>

<pre><code>2016-09-08 05:36:48.424 | Warning: Could not import Horizon dependencies. This is normal during installation.
2016-09-08 05:36:48.425 | WARNING:root:No local_settings file found.
2016-09-08 05:36:48.426 | Traceback (most recent call last):
2016-09-08 05:36:48.426 |   File "/opt/stack/horizon/manage.py", line 23, in &lt;module&gt;
2016-09-08 05:36:48.426 |     execute_from_command_line(sys.argv)
2016-09-08 05:36:48.426 |   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
2016-09-08 05:36:48.426 |     utility.execute()
2016-09-08 05:36:48.426 |   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
2016-09-08 05:36:48.426 |     settings.INSTALLED_APPS
2016-09-08 05:36:48.426 |   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
2016-09-08 05:36:48.426 |     self._setup(name)
2016-09-08 05:36:48.426 |   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2016-09-08 05:36:48.426 |     self._wrapped = Settings(settings_module)
2016-09-08 05:36:48.426 |   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 98, in __init__
2016-09-08 05:36:48.426 |     % (self.SETTINGS_MODULE, e)
2016-09-08 05:36:48.426 | 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 angular_fileupload
2016-09-08 05:36:48.450 | + exit_trap
</code></pre>

<p>First of all you need to make sure you have <code>pip</code> installed, if you've bootstrapped using Ubuntu <code>sudo apt-get install python-pip -y</code> where the -y flag is simply to accept any packages and prepare them for installation.</p>

<p>If you are using CentOS or any other Redhat based system <code>yum install -y python-pip</code></p>

<p>Once this is done you need to go to <code>cd horizon/</code> where horizon is the folder you've just downloaded using git.</p>

<p>Should look like this:</p>

<pre><code>fueladmin@nodename:~/horizon$ ls
AUTHORS             LICENSE              run_tests.sh
babel-django.cfg    Makefile             setup.cfg
babel-djangojs.cfg  manage.py            setup.py
build               MANIFEST.in          static
ChangeLog           node_modules         test-requirements.txt
CONTRIBUTING.rst    openstack_dashboard  test-shim.js
doc                 package.json         tools
HACKING.rst         README.rst           tox.ini
horizon             releasenotes
horizon.egg-info    requirements.txt
</code></pre>

<p>If you are familiar with node package management, composer or ruby gems you'll soon understand that requirements.txt is the python equivalent to something like package.json or composer.json i.e. it's where all the packages that needs to be installed are located.</p>

<p>Run this command <code>pip install -r requirements.txt</code> in the horizon/ folder and it should install. You may need to run it as sudo.</p>

<p>Once this is done you can proceed, firing up the server, configuration etc.</p>

python openstack