Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
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_adapter has conflict with new version of sqlite3 gem #35153

Closed
jasnow opened this issue Feb 4, 2019 · 19 comments

Comments

@jasnow
Copy link

commented Feb 4, 2019

Line 12 of activerecord-6.0.0.beta1/lib/active_record/connection_adapters/sqlite3_adapter.rb
is

gem "sqlite3", "~> 1.3.6"

and it conflicts with the new sqlite 1.4.0 gem release.

Getting these two messages:

LoadError: Error loading the 'sqlite3' Active Record adapter.
Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6),
already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.

and

Gem::LoadError: can't activate sqlite3 (~> 1.3.6), already activated
sqlite3-1.4.0. Make sure all dependencies are added to Gemfile.
@sponomarev

This comment has been minimized.

Copy link
Contributor

commented Feb 4, 2019

@jasnow You can specify gem "sqlite3", "~> 1.3.6" in your Gemfile explicitly OR wait the new rails version to be released OR use master directly.

The original issue was fixed in #35154

@y-yagi y-yagi closed this Feb 4, 2019
@no-reply

This comment has been minimized.

Copy link

commented Feb 4, 2019

@sponomarev any thoughts on what the work-around is for folks trying to test engines against existing rails versions?

My CI process generates rails apps to run the engine's suite against for a supported Ruby/Rails build matrix to. I've thought about adding a generator to adjust the Gemfile, but engine install breaks before any generator can run.

@sponomarev

This comment has been minimized.

Copy link
Contributor

commented Feb 5, 2019

@no-reply It looks that you're running some database-related code in engine_cart:generate. I guess the only solution here is to specify sqlite3 version in your newly generated Gemfile.

tegon added a commit to plataformatec/devise that referenced this issue Feb 7, 2019
It was necessary to manually set the `sqlite3` Gem version after the
release of version `1.4.0`.
See rails/rails#35153 for more info.
tegon added a commit to plataformatec/devise that referenced this issue Feb 7, 2019
It was necessary to manually set the `sqlite3` Gem version after the
release of version `1.4.0`.
See rails/rails#35153 for more info.
@femotizo

This comment has been minimized.

Copy link

commented Feb 9, 2019

@jasnow You can specify gem "sqlite3", "~> 1.3.6" in your Gemfile explicitly OR wait the new rails version to be released OR use master directly.

The original issue was fixed in #35154

@jasnow @sponomarev
This solution worked for me
https://stackoverflow.com/a/54606137/1960924

@jasnow

This comment has been minimized.

Copy link
Author

commented Feb 9, 2019

@femotizo - Thank you for confirming that this is real rails issue.

benoittgt added a commit to benoittgt/rspec-rails that referenced this issue Feb 11, 2019
benoittgt added a commit to rspec/rspec-rails that referenced this issue Feb 11, 2019
jcoyne added a commit to sul-dlss/argo that referenced this issue Feb 11, 2019
Rails 5.2.2 is incompatible with sqlite 1.4
Fixes rails/rails#35153
@jcoyne jcoyne referenced this issue Feb 11, 2019
jcoyne added a commit to sul-dlss/pre-assembly that referenced this issue Feb 11, 2019
Rails 5.2.2 is incompatible with sqlite 1.4
Refs [rails/rails#35153](rails/rails#35153)
jcoyne added a commit to sul-dlss/hydrus that referenced this issue Feb 11, 2019
Rails 5.2.2 is incompatible with sqlite 1.4
Refs [rails/rails#35153](rails/rails#35153)
bibliotechy added a commit to tulibraries/manifold that referenced this issue Feb 12, 2019
Rails sqlite_adapter does not work with the latest sqlite gem, as
per rails/rails#35153

Bump some deps based on dependabot rec's.
ruebot added a commit to archivesunleashed/warclight that referenced this issue Mar 25, 2019
- Update engine_cart to 2.2.0
- Work around add to test_app_generator for rails/rails#35153
- Update rubocop to 0.66.0
- Update TravisCI config to test 2.6.2
dashdashzako added a commit to dashdashzako/kurl that referenced this issue Mar 26, 2019
See issue rails/rails#35153
nbibler added a commit to envylabs/rapporteur that referenced this issue Mar 26, 2019
ouranos added a commit to ouranos/mno-enterprise that referenced this issue Mar 27, 2019
sqlite3 1.4 is conflicting with sqlite3_adapter which requires 1.3.x

See rails/rails#35153
ouranos added a commit to ouranos/mno-enterprise that referenced this issue Mar 27, 2019
sqlite3 1.4 is conflicting with sqlite3_adapter which requires 1.3.x

See rails/rails#35153
tacataca added a commit to tacataca/impressionist that referenced this issue Mar 27, 2019
geekq pushed a commit to geekq/workflow-activerecord that referenced this issue Apr 4, 2019
Also compare to rails/rails#35153
geekq pushed a commit to geekq/workflow-activerecord that referenced this issue Apr 4, 2019
Squashed commit of the following:

commit 9828193
Author: Vladimir Dobriakov <vladimir.dobriakov@dm.de>
Date:   Thu Apr 4 19:20:50 2019 +0200

    Try more explicit sqlite3 gem spec for Rails 4.2

commit 7294a09
Author: Vladimir Dobriakov <vladimir.dobriakov@dm.de>
Date:   Thu Apr 4 19:17:48 2019 +0200

    Try more explicit sqlite3 gem spec

commit 6c275a2
Author: Vladimir Dobriakov <vladimir.dobriakov@dm.de>
Date:   Thu Apr 4 19:04:19 2019 +0200

    Explicitly specify compatible sqlite3 version in Gemfiles

commit c1b1bee
Author: Vladimir Dobriakov <vladimir.dobriakov@dm.de>
Date:   Thu Apr 4 18:51:39 2019 +0200

    Explicitly specify compatible sqlite3 version

    Also compare to rails/rails#35153
fwolfst added a commit to ecovillage/neseri that referenced this issue Apr 30, 2019
benoittgt added a commit to benoittgt/rspec-rails that referenced this issue May 1, 2019
mracos added a commit to plataformatec/devise that referenced this issue May 4, 2019
Also bumped sqlite from 1.3.6 to 1.4 because besides conflicting with
the version that the sqlite adapter was trying to load [0], it is supported
officially since rails 6 [1].

Related:
[0] rails/rails#35153
[1] rails/rails#35844
mracos added a commit to plataformatec/devise that referenced this issue May 4, 2019
Also bumped sqlite from 1.3.6 to 1.4 because besides conflicting with
the version that the sqlite adapter was trying to load [0], it is supported
officially since rails 6 [1].

Related:
[0] rails/rails#35153
[1] rails/rails#35844
b-houghton added a commit to b-houghton/productive-api that referenced this issue May 8, 2019
Rails SQLite 3 adaptor specifies SQLite gem version 1.3.6. Rails
produces an error message if one attempts to use version 1.4.0. See
rails/rails#35153 for more information.
jtapia added a commit to jtapia/devise that referenced this issue Jun 6, 2019
Also bumped sqlite from 1.3.6 to 1.4 because besides conflicting with
the version that the sqlite adapter was trying to load [0], it is supported
officially since rails 6 [1].

Related:
[0] rails/rails#35153
[1] rails/rails#35844
murny pushed a commit to murny/acts_as_votable that referenced this issue Jul 11, 2019
murny added a commit to murny/acts_as_votable that referenced this issue Jul 11, 2019
ryanto added a commit to ryanto/acts_as_votable that referenced this issue Jul 18, 2019
unudeveloper added a commit to unudeveloper/SolarPhoneAuthentication that referenced this issue Aug 21, 2019
There is a rails bug which causes compatability issues with 1.4 of this gem:
rails/rails#35153

When new rails versions are released we can relax this requirement.
JonRowe added a commit to rspec/rspec-rails that referenced this issue Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.