新安装的WireCloud上的压缩命令失败

时间:2016-06-30 08:44:06

标签: fiware fiware-wirecloud

我无法再设置基本的wirecloud实例。我试图像这样创建一个最小的Wirecloud实例:

virtualenv venv
source venv/bin/activate
pip install wirecloud
wirecloud-admin startproject prj
cd prj/
python manage.py collectstatic
python manage.py compress --force

在调用压缩静态文件时会抛出错误:

CommandError: An error occurred during rendering /opt/wc/venv/local/lib/python2.7/site-packages/wirecloud/defaulttheme/templates/wirecloud/views/base_plain.html: Error parsing expression at 30:
    none if($important, !important)
                                  ^

on line 2 of theme/wirecloud.defaulttheme/css/base/z-depth.scss
Traceback:
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/calculator.py", line 167, in parse_expression
    ast = getattr(parser, target)()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 110, in goal
    expr_lst = self.expr_lst()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 199, in expr_lst
    expr_slst = self.expr_slst()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 211, in expr_slst
    or_expr = self.or_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 216, in or_expr
    and_expr = self.and_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 225, in and_expr
    not_expr = self.not_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 236, in not_expr
    comparison = self.comparison()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 244, in comparison
    a_expr = self.a_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 275, in a_expr
    m_expr = self.m_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 290, in m_expr
    u_expr = self.u_expr()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 319, in u_expr
    atom = self.atom()
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/grammar/expression.py", line 359, in atom
    return TernaryOp(expr_lst)
  File "/opt/wc/venv/local/lib/python2.7/site-packages/scss/ast.py", line 558, in __init__
    raise SyntaxError("if() must have exactly 3 arguments")
SyntaxError: if() must have exactly 3 arguments

这是什么问题?我只是设置了最基本的Wirecloud实例。如果我不压缩它,则会在浏览器中抛出相同的错误。最新发布的wirecloud是否已损坏?还是别的什么?

我需要做些什么才能再次获得正在运行的版本?由于docker镜像似乎无法重新启动,并且其他数据库等配置因此不易设置,因此非常感谢帮助...

2 个答案:

答案 0 :(得分:1)

使用刚刚发布的version 0.9.2 of WireCloud:)

有关详细信息,请参阅此github ticket

我们还更新了泊坞窗图片,但如果您继续使用它,请在StackOverflow上创建Github ticket或创建新问题,并附上详细信息。

答案 1 :(得分:0)

Wirecloud似乎还没有为pyscss 1.3.5版做好准备。 通过'apt install -I pyscss == 1.3.4`进行降级可以解决问题。