horizon unstable on development environment

Bug #1490087 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

I keep on getting these two errors whenever I am testing a patch:

1. Error

v.sh ./manage.py runserver 0.0.0.0:8030
Traceback (most recent call last):
  File "./manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/home/lin-hua-cheng/Documents/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/lin-hua-cheng/Documents/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    settings.INSTALLED_APPS
  File "/home/lin-hua-cheng/Documents/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 46, in __getattr__
    self._setup(name)
  File "/home/lin-hua-cheng/Documents/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/lin-hua-cheng/Documents/workspace/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 98, 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 angular_gettext

2. Error 2

UncompressableFileError at /auth/login/

'dashboard/project/project.scss' could not be found in the COMPRESS_ROOT '/home/lin-hua-cheng/Documents/workspace/horizon/static' or with staticfiles.

To workaround the issue, I have to keep rebuilding venv

Steps to reproduce:
1. Pull a patch from gerrit for testing, run the server
2. this causes an error, rebuild venv, this works fine
3. Switch back to master, run the server
4. another error will be encountered

description: updated
description: updated
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

the patch just have to be rebased

Changed in horizon:
status: New → Invalid
Revision history for this message
Frank (dyc-at-it) wrote :

I used following command in Ubuntu14 and solved this problem:
sudo pip install XStatic-Angular-Gettext

Revision history for this message
Andy Yan (yanchao3) wrote :

Rebuilding the .venv environment can solve the problem for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.