← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1363813] Re: Error while running tox

 

Since you are using run_tests.sh with the -N flag, you are responsible
for ensuring that all requirements are present on your system, since it
will not be using the virtual environment. The error indicates that you
have not installed 'angular' on your system.

** Changed in: horizon
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1363813

Title:
  Error while running tox

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  When i am running tox on lasted horion code, the tests are failing.

  py27dj15 runtests: commands[1] | /bin/bash run_tests.sh -N --no-pep8
  Running Horizon application tests
  Traceback (most recent call last):
    File "/root/horizon/manage.py", line 23, in <module>
      execute_from_command_line(sys.argv)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
      utility.execute()
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 263, in fetch_command
      app_name = get_commands()[subcommand]
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 109, in get_commands
      apps = settings.INSTALLED_APPS
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
      self._setup(name)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in _setup
      self._wrapped = Settings(settings_module)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 134, in __init__
      raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
  ImportError: Could not import settings 'horizon.test.settings' (Is it on sys.path?): No module named angular
  Running openstack_dashboard tests
  Traceback (most recent call last):
    File "/root/horizon/manage.py", line 23, in <module>
      execute_from_command_line(sys.argv)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
      utility.execute()
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 263, in fetch_command
      app_name = get_commands()[subcommand]
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 109, in get_commands
      apps = settings.INSTALLED_APPS
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
      self._setup(name)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in _setup
      self._wrapped = Settings(settings_module)
    File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/django/conf/__init__.py", line 134, in __init__
      raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
  ImportError: Could not import settings 'openstack_dashboard.test.settings' (Is it on sys.path?): No module named angular
  Tests failed.

  ___________________________________________________________________ summary ___________________________________________________________________
  ERROR:   py26: InterpreterNotFound: python2.6
  ERROR:   py27: commands failed
  ERROR:   py27dj14: commands failed
  ERROR:   py27dj15: commands failed
    pep8: commands succeeded
  ERROR:   py33: InterpreterNotFound: python3.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1363813/+subscriptions


References