[openstack-dev] 答复:horizon failed due to django compressor
gong_ys2004
gong_ys2004 at aliyun.com
Fri Nov 14 08:33:49 UTC 2014
ok, the reason seems to be pyscss version conflict problem:gongysh at localhost:/opt/stack/horizon$ python manage.py shell
Python 2.7.5 (default, Nov 3 2014, 14:26:24)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django_pyscss.scss import DjangoScss
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/django_pyscss-1.0.6-py2.7.egg/django_pyscss/scss.py", line 9, in <module>
from scss import (
ImportError: cannot import name dequote
we should use pyscss lower than 1.3:gongysh at localhost:/opt/stack/neutron$ sudo pip freeze | grep -i pyscss
django-pyscss==1.0.6
pyScss==1.2.1
------------------------------------------------------------------发件人:gong_ys2004 <gong_ys2004 at aliyun.com>发送时间:2014年11月14日(星期五) 09:13收件人:OpenStack Development Mailing List <openstack-dev at lists.openstack.org>主 题:horizon failed due to django compressor
Hi, I installed the devstack on my fedora 20 system, the process seems good because I have seen
the normal output of the stack.sh:
Horizon is now available at http://192.168.88.225/
Keystone is serving at http://192.168.88.225:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: admin
This is your host ip: 192.168.88.225
2014-11-14 00:03:05.159 | stack.sh completed in 249 seconds
but when I tried to access the horizon by http://192.168.88.225/
it always said the following:FilterError at //bin/sh: django_pyscss.compressor.DjangoScssFilter: command not found
Request Method:GETRequest URL:http://localhost/Django Version:1.6.7Exception Type:FilterErrorException Value:/bin/sh: django_pyscss.compressor.DjangoScssFilter: command not found
Exception Location:/usr/lib/python2.7/site-packages/compressor/filters/base.py in input, line 173Python Executable:/usr/bin/pythonPython Version:2.7.5Python Path:['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
'/usr/lib/python2.7/site-packages/XStatic_Spin-1.2.5.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Rickshaw-1.5.0.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_QUnit-1.14.0.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_JSEncrypt-2.0.0.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_jquery_ui-1.11.0.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_JQuery.TableSorter-2.14.5.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_JQuery.quicksearch-2.0.3.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_JQuery_Migrate-1.2.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_jQuery-1.10.2.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Jasmine-1.3.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Font_Awesome-4.1.0.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Hogan-2.0.0.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_D3-3.1.6.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Bootstrap_SCSS-3.2.0.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Bootstrap_Datepicker-1.3.1.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Angular_Mock-1.2.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Angular_Cookies-1.2.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic_Angular-1.2.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/XStatic-1.0.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_swiftclient-2.3.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_novaclient-2.20.0-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_heatclient-0.2.12-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_glanceclient-0.14.2-py2.7.egg',
'/usr/lib/python2.7/site-packages/python_cinderclient-1.1.1-py2.7.egg',
'/usr/lib/python2.7/site-packages/pyScss-1.3.0.a1-py2.7-linux-x86_64.egg',
'/usr/lib/python2.7/site-packages/django_pyscss-1.0.6-py2.7.egg',
'/usr/lib/python2.7/site-packages/enum34-1.0.3-py2.7.egg',
'/opt/stack/keystone',
'/opt/stack/glance_store',
'/opt/stack/glance',
'/opt/stack/neutron',
'/opt/stack/nova',
'/opt/stack/horizon',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
'/opt/stack/horizon/openstack_dashboard']
I appreciate any help, thanks
Yong sheng gong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141114/49e57dee/attachment.html>
More information about the OpenStack-dev
mailing list