I have not had this issue previously. I suspect it is a 2.0 problem.
For some reason it appears that during the installation statsd is requesting settings that are not configured yet.
I am using the git version now as the PyPi version was busted.
I am more than happy to try again after a fix is made.
Running setup.py develop for statsd
Running command /opt/rh/venv/bin/python -c "import setuptools; __file__='/opt/rh/venv/src/statsd/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/rh/venv/src/statsd/setup.py", line 3, in <module>
import statsd
File "statsd/__init__.py", line 23, in <module>
host = getattr(settings, 'STATSD_HOST', 'localhost')
File "/opt/rh/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 52, in __getattr__
self._setup(name)
File "/opt/rh/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 45, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting STATSD_HOST, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Complete output from command /opt/rh/venv/bin/python -c "import setuptools; __file__='/opt/rh/venv/src/statsd/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/rh/venv/src/statsd/setup.py", line 3, in <module>
import statsd
File "statsd/__init__.py", line 23, in <module>
host = getattr(settings, 'STATSD_HOST', 'localhost')
File "/opt/rh/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 52, in __getattr__
self._setup(name)
File "/opt/rh/venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 45, in _setup
% (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting STATSD_HOST, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
----------------------------------------
Command /opt/rh/venv/bin/python -c "import setuptools; __file__='/opt/rh/venv/src/statsd/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /opt/rh/venv/src/statsd
Exception information:
Traceback (most recent call last):
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/basecommand.py", line 107, in main
status = self.run(options, args)
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/commands/install.py", line 261, in run
requirement_set.install(install_options, global_options)
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 1166, in install
requirement.install(install_options, global_options)
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 562, in install
self.install_editable(install_options, global_options)
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/req.py", line 652, in install_editable
show_stdout=False)
File "/opt/rh/venv/local/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/util.py", line 612, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /opt/rh/venv/bin/python -c "import setuptools; __file__='/opt/rh/venv/src/statsd/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /opt/rh/venv/src/statsd