我使用指南针制作精灵图像然后我面临这个错误

时间:2016-12-17 09:06:31

标签: rubygems

ArgumentError: wrong number of arguments (7 for 6)

Backtrace:
/var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/canvas/png_decoding.rb:120:in `decode_png_image_pass'
/var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/canvas/png_decoding.rb:120:in `decode_png_without_interlacing'
/var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/canvas/png_decoding.rb:99:in
     

decode_png_pixelstream' /var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/canvas/png_decoding.rb:81:in from_datastream”       /var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/image.rb:74:in   from_datastream' /var/lib/gems/2.1.0/gems/chunky_png-1.3.8/lib/chunky_png/canvas/png_decoding.rb:45:in from_file”       /var/lib/gems/2.1.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:16:in   block in construct_sprite' /var/lib/gems/2.1.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in 每个”       /var/lib/gems/2.1.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:14:in   construct_sprite' /var/lib/gems/2.1.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/sprite_methods.rb:57:in 生成”       /var/lib/gems/2.1.0/gems/compass-1.0.3/lib/compass/sass_extensions/functions/sprites.rb:179:in   sprite_url' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/script/tree/funcall.rb:143:in _执行”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/script/tree/node.rb:58:in   perform' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:397:in visit_prop”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in 阻止访问'       在/ {/ 1 /}       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in block in with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in访问'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:433:in   with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in 映射”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:433:in   block (2 levels) in visit_rule' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:433:in with_environment”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:431:in   block in visit_rule' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:181:in 访问”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in   {_ 1}}阻止在with_base中       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in visit_rule' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in with_base'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in   访问次数block in visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in阻止(2级)       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:301:in   访问次数with_frame' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in阻止了       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:181:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:301:in visit_if”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in   map' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:301:in 阻止访问'       在/ {/ 1 /}       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in with_environment' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:300:in 访问'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:304:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in 访问”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in   {_ 1}}阻止在with_base中       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in block in with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in with_base'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in   {_ 1}}访问次数with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in 阻止(2级)       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:328:in   access_import中的visit_if' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in 阻止       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:88:in block in visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in with_frame'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:88:in with_frame' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in visit_import'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:328:in 阻止访问'       在/ {/ 1 /}       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:79:in map' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:328:in 访问'       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in   block in with_import' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in映射”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in   在{visit_children'with_import' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:325:in 阻止       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:181:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in visit_children”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in   block in with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/stack.rb:115:in visit_root”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:36:in   with_base' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:160:in 访问”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:8:in   block in visit_children' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/base.rb:52:in css_tree”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb:20:in   visit_children' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:169:in 渲染”       /var/lib/gems/2.1.0/gems/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:17:in   with_environment' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:168:in with_import_scope”       /var/lib/gems/2.1.0/gems/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:16:in   block in visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:188:in update_stylesheet”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:215:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/visitors/perform.rb:159:in 每个”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:in   visit' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/tree/root_node.rb:36:in on_file_changed”       /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:331:in   render' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/engine.rb:281:in称之为”       /var/lib/gems/2.1.0/gems/sass-3.4.22/vendor/listen/lib/listen/listener.rb:252:in   初始化_adapter中的block in render' /var/lib/gems/2.1.0/gems/compass-import-once-1.0.5/lib/compass/import-once/engine.rb:29:in 阻止       /var/lib/gems/2.1.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb:254:in   render' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:494:in report_changes'       /var/lib/gems/2.1.0/gems/sass-3.4.22/vendor/listen/lib/listen/adapter.rb:323:in   start_poller中的block in update_stylesheets' /var/lib/gems/2.1.0/gems/sass-3.4.22/lib/sass/plugin/compiler.rb:209:in 阻止       * /       身体:在{之前         白空间:pre;         font-family:monospace;         content:“ArgumentError:参数个数错误(7个为6)”; }

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我可以通过将chunky_png的版本更改为1.3.6来解决它:

gem uninstall chunky_png --version 1.3.8
gem install chunky_png -v 1.3.6

此处概述了相关软件包的版本(适用于我):

  • sass(3.4.22)
  • chunky_png(1.3.6)
  • 指南针(1.0.3)

您可以使用以下方式检查您的版本:

gem list