slrbl / human-in-the-loop-machine-learning-tool-tornado

Tornado is an open source Human-in-the-loop machine learning tool. It helps you label your dataset on the fly while training your model through a simple web user interface. It supports all data types: structured, text and image.
GNU Affero General Public License v3.0
61 stars 10 forks source link

Gem::LoadError sqlite3 #1

Open amrapalijz opened 5 years ago

amrapalijz commented 5 years ago

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. Addgem '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?

slrbl commented 5 years ago

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

amrapalijz commented 5 years ago

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?

slrbl commented 5 years ago

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

amrapalijz commented 5 years ago

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