Skip to content

Unfortunately, an unexpected error occurred, and Bundler cannot continue #7182

@snarayana27

Description

@snarayana27

(base) san@SANTHOSHs-MacBook-Pro airbnb-clone % bundle install
Ignoring nio4r-2.6.1 because its extensions are not built. Try: gem pristine nio4r --version 2.6.1
Ignoring pg-1.5.4 because its extensions are not built. Try: gem pristine pg --version 1.5.4
Ignoring strscan-3.0.7 because its extensions are not built. Try: gem pristine strscan --version 3.0.7
Bundler 2.4.22 is running, but your lockfile was generated with 2.3.14. Installing Bundler 2.3.14 and restarting using that version.
--- ERROR REPORT TEMPLATE -------------------------------------------------------

LoadError: incompatible library version - /Users/san/.gem/gems/strscan-3.0.7/lib/strscan.bundle
  <internal:/Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
  <internal:/Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/scalar_scanner.rb:2:in `<top (required)>'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/nodes/node.rb:4:in `require_relative'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/nodes/node.rb:4:in `<top (required)>'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/nodes.rb:2:in `require_relative'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych/nodes.rb:2:in `<top (required)>'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych.rb:15:in `require_relative'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/psych.rb:15:in `<top (required)>'
  <internal:/Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
  <internal:/Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems.rb:609:in `load_yaml'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/config_file.rb:346:in `load_file'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems/config_file.rb:189:in `initialize'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems.rb:331:in `new'
  /Users/san/.rbenv/versions/3.1.1/lib/ruby/3.1.0/rubygems.rb:331:in `configuration'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/fetcher.rb:255:in `connection'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/fetcher.rb:101:in `initialize'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:259:in `new'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:259:in `block in fetchers'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:257:in `map'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:257:in `fetchers'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:402:in `block in remote_specs'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/index.rb:9:in `build'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:401:in `remote_specs'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/source/rubygems.rb:134:in `specs'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/self_manager.rb:117:in `remote_specs'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/self_manager.rb:125:in `find_latest_matching_spec'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/self_manager.rb:44:in `install_and_restart_with'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/self_manager.rb:22:in `install_locked_bundler_and_restart_with_it_if_needed'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/cli/install.rb:15:in `run'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/cli.rb:261:in `block in install'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/settings.rb:142:in `temporary'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/cli.rb:260:in `install'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/cli.rb:34:in `dispatch'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/cli.rb:28:in `start'
  /Users/san/.gem/gems/bundler-2.4.22/exe/bundle:37:in `block in <top (required)>'
  /Users/san/.gem/gems/bundler-2.4.22/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  /Users/san/.gem/gems/bundler-2.4.22/exe/bundle:29:in `<top (required)>'
  /Users/san/.rbenv/versions/3.1.1/bin/bundle:25:in `load'
  /Users/san/.rbenv/versions/3.1.1/bin/bundle:25:in `<main>'

Environment

Bundler       2.4.22
  Platforms   ruby, x86_64-darwin-22
Ruby          3.1.1p18 (2022-02-18 revision 53f5fc4236a754ddf94b20dbb70ab63bd5109b18) [x86_64-darwin-22]
  Full Path   /Users/san/.rbenv/versions/3.1.1/bin/ruby
  Config Dir  /Users/san/.rbenv/versions/3.1.1/etc
RubyGems      3.3.7
  Gem Home    /Users/san/.gem
  Gem Path    /Users/san/.gem/ruby/3.1.0:/Users/san/.rbenv/versions/3.1.1/lib/ruby/gems/3.1.0:/Users/san/.gem
  User Home   /Users/san
  User Path   /Users/san/.gem/ruby/3.1.0
  Bin Dir     /Users/san/.gem/bin
OpenSSL       
  Compiled    OpenSSL 3.1.4 24 Oct 2023
  Loaded      OpenSSL 3.1.4 24 Oct 2023
  Cert File   /usr/local/etc/openssl@3/cert.pem
  Cert Dir    /usr/local/etc/openssl@3/certs
Tools         
  Git         2.43.0
  RVM         not installed
  rbenv       rbenv 1.2.0
  chruby      not installed

Bundler Build Metadata

Built At          2023-11-09
Git SHA           ec2089640
Released Version  true

Bundler settings

build.pg
  Set for the current user (/Users/san/.bundle/config): "--with-pg-config=/usr/local/Cellar/postgresql@14/14.10/bin/pg_config"

Gemfile

Gemfile

source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.1.1"

gem "bootsnap", require: false # Reduces boot times through caching; required in config/boot.rb
gem "country_select", "~> 6.0"
gem "devise"
gem "geocoder"
gem "jbuilder"
gem "jsonapi-serializer"
gem "image_processing", "~> 1.2" # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
gem "importmap-rails"
gem "money-rails", "~>1.12"
gem "pg", "~> 1.1"
gem "puma", "~> 5.0"
gem "pundit"
gem "rails", "~> 7.0.3"
gem "redis", "~> 4.0"
gem "sassc-rails" # Use Sass to process CSS
gem "sprockets-rails"
gem "stimulus-rails"
gem "stripe-rails"
gem "tailwindcss-rails"
gem "turbo-rails"
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Windows does not include zoneinfo files, so bundle the tzinfo-data gem

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[ mri mingw x64_mingw ]
  gem "dotenv-rails"
  gem "factory_bot_rails"
  gem "faker", git: "https://github.com/faker-ruby/faker.git", branch: "master"
  gem "pry-rails"
  gem "rspec-rails", "~> 5.1", ">= 5.1.2"
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"
end

group :test do
  gem "shoulda-matchers", "~> 5.0"
end

Gemfile.lock

GIT
  remote: https://github.com/faker-ruby/faker.git
  revision: 425581295d59839e1c4c19a0f4482886d1e9f373
  branch: master
  specs:
    faker (2.21.0)
      i18n (>= 1.8.11, < 2)

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (7.0.3)
      actionpack (= 7.0.3)
      activesupport (= 7.0.3)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (7.0.3)
      actionpack (= 7.0.3)
      activejob (= 7.0.3)
      activerecord (= 7.0.3)
      activestorage (= 7.0.3)
      activesupport (= 7.0.3)
      mail (>= 2.7.1)
      net-imap
      net-pop
      net-smtp
    actionmailer (7.0.3)
      actionpack (= 7.0.3)
      actionview (= 7.0.3)
      activejob (= 7.0.3)
      activesupport (= 7.0.3)
      mail (~> 2.5, >= 2.5.4)
      net-imap
      net-pop
      net-smtp
      rails-dom-testing (~> 2.0)
    actionpack (7.0.3)
      actionview (= 7.0.3)
      activesupport (= 7.0.3)
      rack (~> 2.0, >= 2.2.0)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.2.0)
    actiontext (7.0.3)
      actionpack (= 7.0.3)
      activerecord (= 7.0.3)
      activestorage (= 7.0.3)
      activesupport (= 7.0.3)
      globalid (>= 0.6.0)
      nokogiri (>= 1.8.5)
    actionview (7.0.3)
      activesupport (= 7.0.3)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1, >= 1.2.0)
    activejob (7.0.3)
      activesupport (= 7.0.3)
      globalid (>= 0.3.6)
    activemodel (7.0.3)
      activesupport (= 7.0.3)
    activerecord (7.0.3)
      activemodel (= 7.0.3)
      activesupport (= 7.0.3)
    activestorage (7.0.3)
      actionpack (= 7.0.3)
      activejob (= 7.0.3)
      activerecord (= 7.0.3)
      activesupport (= 7.0.3)
      marcel (~> 1.0)
      mini_mime (>= 1.1.0)
    activesupport (7.0.3)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
    bcrypt (3.1.18)
    bindex (0.8.1)
    bootsnap (1.12.0)
      msgpack (~> 1.2)
    builder (3.2.4)
    coderay (1.1.3)
    concurrent-ruby (1.1.10)
    countries (4.2.3)
      i18n_data (~> 0.16.0)
      sixarm_ruby_unaccent (~> 1.1)
    country_select (6.1.1)
      countries (~> 4.2)
      sort_alphabetical (~> 1.1)
    crass (1.0.6)
    debug (1.5.0)
      irb (>= 1.3.6)
      reline (>= 0.2.7)
    devise (4.8.1)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0)
      responders
      warden (~> 1.2.3)
    diff-lcs (1.5.0)
    digest (3.1.0)
    dotenv (2.7.6)
    dotenv-rails (2.7.6)
      dotenv (= 2.7.6)
      railties (>= 3.2)
    erubi (1.10.0)
    factory_bot (6.2.1)
      activesupport (>= 5.0.0)
    factory_bot_rails (6.2.0)
      factory_bot (~> 6.2.0)
      railties (>= 5.0.0)
    ffi (1.15.5)
    geocoder (1.8.0)
    globalid (1.0.0)
      activesupport (>= 5.0)
    i18n (1.10.0)
      concurrent-ruby (~> 1.0)
    i18n_data (0.16.0)
      simple_po_parser (~> 1.1)
    image_processing (1.12.2)
      mini_magick (>= 4.9.5, < 5)
      ruby-vips (>= 2.0.17, < 3)
    importmap-rails (1.1.0)
      actionpack (>= 6.0.0)
      railties (>= 6.0.0)
    io-console (0.5.11)
    irb (1.4.1)
      reline (>= 0.3.0)
    jbuilder (2.11.5)
      actionview (>= 5.0.0)
      activesupport (>= 5.0.0)
    jsonapi-serializer (2.2.0)
      activesupport (>= 4.2)
    loofah (2.18.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.7.1)
      mini_mime (>= 0.1.1)
    marcel (1.0.2)
    method_source (1.0.0)
    mini_magick (4.11.0)
    mini_mime (1.1.2)
    minitest (5.15.0)
    monetize (1.12.0)
      money (~> 6.12)
    money (6.16.0)
      i18n (>= 0.6.4, <= 2)
    money-rails (1.15.0)
      activesupport (>= 3.0)
      monetize (~> 1.9)
      money (~> 6.13)
      railties (>= 3.0)
    msgpack (1.5.2)
    net-imap (0.2.3)
      digest
      net-protocol
      strscan
    net-pop (0.1.1)
      digest
      net-protocol
      timeout
    net-protocol (0.1.3)
      timeout
    net-smtp (0.3.1)
      digest
      net-protocol
      timeout
    nio4r (2.5.8)
    nokogiri (1.13.6-x86_64-darwin)
      racc (~> 1.4)
    orm_adapter (0.5.0)
    pg (1.3.5)
    pry (0.14.1)
      coderay (~> 1.1)
      method_source (~> 1.0)
    pry-rails (0.3.9)
      pry (>= 0.10.4)
    puma (5.6.4)
      nio4r (~> 2.0)
    pundit (2.2.0)
      activesupport (>= 3.0.0)
    racc (1.6.0)
    rack (2.2.3.1)
    rack-test (1.1.0)
      rack (>= 1.0, < 3)
    rails (7.0.3)
      actioncable (= 7.0.3)
      actionmailbox (= 7.0.3)
      actionmailer (= 7.0.3)
      actionpack (= 7.0.3)
      actiontext (= 7.0.3)
      actionview (= 7.0.3)
      activejob (= 7.0.3)
      activemodel (= 7.0.3)
      activerecord (= 7.0.3)
      activestorage (= 7.0.3)
      activesupport (= 7.0.3)
      bundler (>= 1.15.0)
      railties (= 7.0.3)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.4.2)
      loofah (~> 2.3)
    railties (7.0.3)
      actionpack (= 7.0.3)
      activesupport (= 7.0.3)
      method_source
      rake (>= 12.2)
      thor (~> 1.0)
      zeitwerk (~> 2.5)
    rake (13.0.6)
    redis (4.6.0)
    reline (0.3.1)
      io-console (~> 0.5)
    responders (3.0.1)
      actionpack (>= 5.0)
      railties (>= 5.0)
    rspec-core (3.11.0)
      rspec-support (~> 3.11.0)
    rspec-expectations (3.11.0)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.11.0)
    rspec-mocks (3.11.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.11.0)
    rspec-rails (5.1.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      railties (>= 5.2)
      rspec-core (~> 3.10)
      rspec-expectations (~> 3.10)
      rspec-mocks (~> 3.10)
      rspec-support (~> 3.10)
    rspec-support (3.11.0)
    ruby-vips (2.1.4)
      ffi (~> 1.12)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    shoulda-matchers (5.1.0)
      activesupport (>= 5.2.0)
    simple_po_parser (1.1.6)
    sixarm_ruby_unaccent (1.2.0)
    sort_alphabetical (1.1.0)
      unicode_utils (>= 1.2.2)
    sprockets (4.0.3)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.4.2)
      actionpack (>= 5.2)
      activesupport (>= 5.2)
      sprockets (>= 3.0.0)
    stimulus-rails (1.0.4)
      railties (>= 6.0.0)
    stripe (6.5.0)
    stripe-rails (2.3.4)
      rails (>= 5.1)
      responders
      stripe (>= 3.15.0)
    strscan (3.0.3)
    tailwindcss-rails (2.0.8-x86_64-darwin)
      railties (>= 6.0.0)
    thor (1.2.1)
    tilt (2.0.10)
    timeout (0.3.0)
    turbo-rails (1.1.1)
      actionpack (>= 6.0.0)
      activejob (>= 6.0.0)
      railties (>= 6.0.0)
    tzinfo (2.0.4)
      concurrent-ruby (~> 1.0)
    unicode_utils (1.4.0)
    warden (1.2.9)
      rack (>= 2.0.9)
    web-console (4.2.0)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    websocket-driver (0.7.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    zeitwerk (2.5.4)

PLATFORMS
  x86_64-darwin-21

DEPENDENCIES
  bootsnap
  country_select (~> 6.0)
  debug
  devise
  dotenv-rails
  factory_bot_rails
  faker!
  geocoder
  image_processing (~> 1.2)
  importmap-rails
  jbuilder
  jsonapi-serializer
  money-rails (~> 1.12)
  pg (~> 1.1)
  pry-rails
  puma (~> 5.0)
  pundit
  rails (~> 7.0.3)
  redis (~> 4.0)
  rspec-rails (~> 5.1, >= 5.1.2)
  sassc-rails
  shoulda-matchers (~> 5.0)
  sprockets-rails
  stimulus-rails
  stripe-rails
  tailwindcss-rails
  turbo-rails
  tzinfo-data
  web-console

RUBY VERSION
   ruby 3.1.1p18

BUNDLED WITH
   2.3.14

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=incompatible+library+version+-+%2FUsers%2Fsan%2F.gem%2Fgems%2Fstrscan-3.0.7%2Flib%2Fstrscan.bundle&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.

Describe the problem as clearly as you can

Did you try upgrading rubygems & bundler?

Post steps to reproduce the problem

Which command did you run?

What were you expecting to happen?

What actually happened?

If not included with the output of your command, run bundle env and paste the output below

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions