Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 errors in CI #1489

Closed
scarroll32 opened this issue Apr 27, 2024 · 2 comments
Closed

sqlite3 errors in CI #1489

scarroll32 opened this issue Apr 27, 2024 · 2 comments

Comments

@scarroll32
Copy link
Member

scarroll32 commented Apr 27, 2024

The CI is failing on a sqlite error, eg like this

Any help on this by the community would be appreciated.

LoadError:
  Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.1-x86_64-linux-gnu. Make sure all dependencies are added to Gemfile.
@scarroll32
Copy link
Member Author

Something is requiring sqlite3 at 1.4, even though it's installed as 2.0.1

    sqlite3 (2.0.1-aarch64-linux-gnu)
    sqlite3 (2.0.1-aarch64-linux-musl)
    sqlite3 (2.0.1-arm-linux-gnu)
    sqlite3 (2.0.1-arm-linux-musl)
    sqlite3 (2.0.1-arm64-darwin)
    sqlite3 (2.0.1-x86-linux-gnu)
    sqlite3 (2.0.1-x86-linux-musl)
    sqlite3 (2.0.1-x86_64-darwin)
    sqlite3 (2.0.1-x86_64-linux-gnu)
    sqlite3 (2.0.1-x86_64-linux-musl)
LoadError:
  Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? Could not find 'sqlite3' (~> 1.4) - did find: [sqlite3-2.0.1-x86_64-darwin]
  Checked in 'GEM_PATH=/Users/sean/.gem/ruby/3.2.0:/Users/sean/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0' , execute `gem env` for more information
# ./spec/support/schema.rb:25:in `<top (required)>'
# ./spec/spec_helper.rb:18:in `block in <top (required)>'
# ./spec/spec_helper.rb:18:in `each'
# ./spec/spec_helper.rb:18:in `<top (required)>'
# ./spec/ransack/search_spec.rb:1:in `<top (required)>'
# ------------------
# --- Caused by: ---
# Gem::MissingSpecVersionError:
#   Could not find 'sqlite3' (~> 1.4) - did find: [sqlite3-2.0.1-x86_64-darwin]
#   Checked in 'GEM_PATH=/Users/sean/.gem/ruby/3.2.0:/Users/sean/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0' , execute `gem env` for more information
#   ./spec/support/schema.rb:25:in `<top (required)>'

@andxyz
Copy link

andxyz commented Apr 28, 2024

@scarroll32 Looks like there is a fix in main branch of rails/rails for this
See this PR rails/rails#51592

I think you are waiting for them to cut a release since this fix is only in main for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants