未初始化的常量DataShift :: SpreeHelper :: SpreeBaseLoader(NameError)

时间:2014-12-13 16:12:10

标签: ruby-on-rails ruby github spree thor

运行Spree Commerce 2.2。

我正在尝试运行名为datashift_spree的扩展程序。它安装正确,但不会执行

在我的Gemfile中:

gem'datashift',github:'autotelik / datashift'

gem'datashift_spree',github:'autotelik / datashift_spree'

跑步时 bundle exec thor datashift_spree:load:attach_images --input = / vagrant / imageimport / import.xls

我收到错误: /var/lib/gems/1.9.1/gems/datashift_spree-0.5.0/lib/loaders/spree/image_loader.rb:19:in <module:SpreeHelper>': uninitialized constant DataShift::SpreeHelper::SpreeBaseLoader (NameError) from /var/lib/gems/1.9.1/gems/datashift_spree-0.5.0/lib/loaders/spree/image_loader.rb:10:in'         from /var/lib/gems/1.9.1/gems/datashift_spree-0.5.0/lib/loaders/spree/image_loader.rb:8:in <top (required)>' from /var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require'         来自/var/lib/gems/1.9.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' from /var/lib/gems/1.9.1/gems/datashift_spree-0.5.0/lib/thor/spree/products_images.thor:77:in attach_images'         来自/var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in run' from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command'         from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in start'         from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/runner.rb:36:in method_missing' from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:29:in run'         来自/var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:126:in run' from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command'         from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in start'         来自/var/lib/gems/1.9.1/gems/thor-0.19.1/bin/thor:6:in <top (required)>' from /usr/local/bin/thor:23:in load'         来自/ usr / local / bin / thor:23:in''

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

代码错误。 可以通过应用此拉取请求中的更改来修复: https://github.com/autotelik/datashift_spree/pull/34