#1463·hanami

Hanami 2.1.1 fails out of the box on Windows

Author: pcopissaCreated Oct 28, 2024Updated Jan 30, 2025
  1. Ruby 3.2.0 on MSYS2 on Windows 10 with some older versions of Hanami installed (2.0.x)
  2. install Hanami (2.1.1) as per documentation:

gem install hanami 2) try to create a new app as per documentation: hanami new test This ends in error:

[7932, #<Thread:0x00000132a541a040 run>, #<NoMethodError: undefined method `ignored?' for #<Gem::Specification:0x00000132ac0efc88 @extension_dir=nil, @full_gem_path=nil, @gem_dir=nil, @ignored=nil, @bin_dir=nil, @cache_dir=nil, @cache_file=nil, @doc_dir=nil, @ri_dir=nil, @spec_dir=nil, @spec_file=nil, @gems_dir="C:/Users/pcopissa/.gem/ruby/3.2.0/gems", @base_dir="C:/Users/pcopissa/.gem/ruby/3.2.0", @loaded=false, @activated=false, @loaded_from="C:/Users/pcopissa/.gem/ruby/3.2.0/specifications/dry-logger-1.0.4.gemspec", @original_platform=nil, @installed_by_version=#<Gem::Version "3.4.6">, @autorequire=nil, @date=2024-05-10 00:00:00 UTC, @description="Logging for Ruby", @email=["[email protected]", "[email protected]"], @homepage="https://dry-rb.org/gems/dry-logger", @name="dry-logger", @post_install_message=nil, @signing_key=nil, @summary="Logging for Ruby", @version=#<Gem::Version "1.0.4">, @authors=["Luca Guidi", "Peter Solnica"], @bindir="bin", @cert_chain=[], @dependencies=[<Gem::Dependency type=:development name="rspec" requirements=">= 0">], @executables=[], @extensions=[], @extra_rdoc_files=[], @files=[], @licenses=["MIT"], @metadata={"allowed_push_host"=>"https://rubygems.org", "bug_tracker_uri"=>"https://github.com/dry-rb/dry-logger/issues", "changelog_uri"=>"https://github.com/dry-rb/dry-logger/blob/main/CHANGELOG.md", "source_code_uri"=>"https://github.com/dry-rb/dry-logger"}, @platform="ruby", @rdoc_options=[], @require_paths=["lib"], @required_ruby_version=#<Gem::Requirement:0x00000132abf9fef0 @requirements=[[">=", #<Gem::Version "3.0">]]>, @required_rubygems_version=#<Gem::Requirement:0x00000132ab740728 @requirements=[[">=", #<Gem::Version "0">]]>, @requirements=[], @rubygems_version="3.4.6", @specification_version=4, @test_files=[], @new_platform="ruby", @full_name="dry-logger-1.0.4" dry-logger-1.0.4>>, ["c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:2162:in `method_missing'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:273:in `reject'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:273:in `matching_specs'", "c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/dependency.rb:306:in `to_specs'", "c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `block in unresolved_specs'", "c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `map'", "c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `unresolved_specs'", "c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1058:in `find_in_unresolved'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:104:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:298:in `<module:Gem>'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:25:in `<top (required)>'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `require_relative'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `<top (required)>'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'"]]
[7932, #<Thread:0x00000132a541a040 run>, #<RuntimeError: CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true>, ["<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `ensure in require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:298:in `<module:Gem>'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:25:in `<top (required)>'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `require_relative'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `<top (required)>'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'"]]
[7932, #<Thread:0x00000132a541a040 run>, #<RuntimeError: CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true>, ["<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `ensure in require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'", "C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'", "C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'"]]
<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'
<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'
<internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `ensure in require': CRITICAL: RUBYGEMS_ACTIVATION_MONITOR.owned?: before false -> after true (RuntimeError)
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:170:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:298:in `<module:Gem>'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:25:in `<top (required)>'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `require_relative'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `<top (required)>'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'
c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:2162:in `method_missing': undefined method `ignored?' for #<Gem::Specification:0x00000132ac0efc88 @extension_dir=nil, @full_gem_path=nil, @gem_dir=nil, @ignored=nil, @bin_dir=nil, @cache_dir=nil, @cache_file=nil, @doc_dir=nil, @ri_dir=nil, @spec_dir=nil, @spec_file=nil, @gems_dir="C:/Users/pcopissa/.gem/ruby/3.2.0/gems", @base_dir="C:/Users/pcopissa/.gem/ruby/3.2.0", @loaded=false, @activated=false, @loaded_from="C:/Users/pcopissa/.gem/ruby/3.2.0/specifications/dry-logger-1.0.4.gemspec", @original_platform=nil, @installed_by_version=#<Gem::Version "3.4.6">, @autorequire=nil, @date=2024-05-10 00:00:00 UTC, @description="Logging for Ruby", @email=["[email protected]", "[email protected]"], @homepage="https://dry-rb.org/gems/dry-logger", @name="dry-logger", @post_install_message=nil, @signing_key=nil, @summary="Logging for Ruby", @version=#<Gem::Version "1.0.4">, @authors=["Luca Guidi", "Peter Solnica"], @bindir="bin", @cert_chain=[], @dependencies=[<Gem::Dependency type=:development name="rspec" requirements=">= 0">], @executables=[], @extensions=[], @extra_rdoc_files=[], @files=[], @licenses=["MIT"], @metadata={"allowed_push_host"=>"https://rubygems.org", "bug_tracker_uri"=>"https://github.com/dry-rb/dry-logger/issues", "changelog_uri"=>"https://github.com/dry-rb/dry-logger/blob/main/CHANGELOG.md", "source_code_uri"=>"https://github.com/dry-rb/dry-logger"}, @platform="ruby", @rdoc_options=[], @require_paths=["lib"], @required_ruby_version=#<Gem::Requirement:0x00000132abf9fef0 @requirements=[[">=", #<Gem::Version "3.0">]]>, @required_rubygems_version=#<Gem::Requirement:0x00000132ab740728 @requirements=[[">=", #<Gem::Version "0">]]>, @requirements=[], @rubygems_version="3.4.6", @specification_version=4, @test_files=[], @new_platform="ruby", @full_name="dry-logger-1.0.4" dry-logger-1.0.4> (NoMethodError)
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:273:in `reject'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:273:in `matching_specs'
        from c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/dependency.rb:306:in `to_specs'
        from c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `block in unresolved_specs'
        from c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `map'
        from c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1080:in `unresolved_specs'
        from c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/specification.rb:1058:in `find_in_unresolved'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:104:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:298:in `<module:Gem>'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler/rubygems_ext.rb:25:in `<top (required)>'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `require_relative'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/bundler-2.5.22/lib/bundler.rb:10:in `<top (required)>'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:99:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/lib/hanami/cli/bundler.rb:3:in `<top (required)>'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from <internal:c:/WAMP/Ruby32-x64/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:151:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
        from C:/Users/pcopissa/.gem/ruby/3.2.0/gems/hanami-cli-2.1.1/exe/hanami:8:in `<top (required)>'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `load'
        from C:/Users/pcopissa/AppData/Local/Microsoft/WindowsApps/hanami:32:in `<main>'