ankane / neighbor

Nearest neighbor search for Rails
MIT License
590 stars 14 forks source link

SQLite with Rails 8 (RC) #29

Closed scottwater closed 1 month ago

scottwater commented 1 month ago

Apologies, I hit enter far too soon.

I am trying to walk through the new (experimental) SQLite support, but when installing the gems I am getting an error:

Could not find gems matching 'sqlite-vec (= 0.1.3)' valid for all resolution platforms (aarch64-linux, aarch64-linux-gnu, aarch64-linux-musl, arm-linux, arm-linux-gnu, arm-linux-musl, arm64-darwin, x86-linux, x86-linux-gnu, x86-linux-musl, x86_64-darwin, x86_64-linux, x86_64-linux-gnu, x86_64-linux-musl, arm64-darwin-23) in rubygems repository https://rubygems.org/ or installed locally.

The source contains the following gems matching 'sqlite-vec (= 0.1.3)':

Is there something I have to do to narrow the platform options? This is with Rails 8 RC, so perhaps it is too bleeding edge.

Thanks, Scott

ankane commented 1 month ago

Hi @scottwater, it sounds like your Gemfile.lock has platforms for which there isn't a published sqlite-vec gem.

You can remove platforms with bundle lock --remove-platform, but it'd probably be better to report this to sqlite-vec (as projects that publish precompiled gems typically publish a source gem for other platforms).