Mongoid审核要求':无法加载此类文件-kaminari(LoadError)

时间:2019-01-05 17:08:16

标签: ruby-on-rails-5

在运行Rails服务器时,出现以下错误。我正在用mongodb设置Rails 5。我尝试了捆绑软件更新,并且更新或捆绑软件安装都没有问题。

仅当我运行Rails服务器时,它才会发出错误消息。

from fastai import *
learn = load_learner(path)

这是我的Gemfile。感谢您的帮助

/Users/apple/.rvm/gems/ruby-2.4.1/gems/mongoid-audit-1.4.0/lib/mongoid-audit.rb:4:in `require': cannot load such file -- kaminari (LoadError)
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/mongoid-audit-1.4.0/lib/mongoid-audit.rb:4:in `<top (required)>'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `require'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
from /Users/apple/dev/rails_apps/learn/mong/config/application.rb:18:in `<top (required)>'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:145:in `require'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:145:in `block in perform'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:142:in `tap'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands/server/server_command.rb:142:in `perform'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/command/base.rb:65:in `perform'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/command.rb:46:in `invoke'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/railties-5.2.2/lib/rails/commands.rb:18:in `<top (required)>'
from /Users/apple/dev/rails_apps/learn/mong/bin/rails:9:in `require'
from /Users/apple/dev/rails_apps/learn/mong/bin/rails:9:in `<top (required)>'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
from /Users/apple/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
from /Users/apple/dev/rails_apps/learn/mong/bin/spring:15:in `require'
from /Users/apple/dev/rails_apps/learn/mong/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'

0 个答案:

没有答案