human-in-the-loop-machine-learning-tool-tornado icon indicating copy to clipboard operation
human-in-the-loop-machine-learning-tool-tornado copied to clipboard

Gem::LoadError sqlite3

Open amrapalijz opened this issue 5 years ago • 4 comments

When I execute the rake db:migrate command I get:

Amrapalis-MBP:tornado-active-learning amrapaliz$ rake db:migrate rake aborted! Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

The Gemfile already has sqlite3. Which version should we add?

amrapalijz avatar Feb 21 '19 21:02 amrapalijz

Try the following: rm Gemfile.lock add gem 'sqlite3' to Gemfile bundle install

slrbl avatar Feb 21 '19 21:02 slrbl

That didn't work. This is the Gemfile I should edit, right: https://github.com/slrbl/tornado-active-learning/blob/master/Gemfile ? It already contains gem 'sqlite3'. Does it need a version?

amrapalijz avatar Feb 21 '19 22:02 amrapalijz

Yes, I think that you need to verify your active record version and find the suitable version of sqlite3.

slrbl avatar Feb 22 '19 11:02 slrbl

Ah ok I updated my Gemfile to gem 'sqlite3', '~> 1.3.6' and now it works.

amrapalijz avatar Feb 22 '19 11:02 amrapalijz