ahoward / macaddr

cross platform mac address determination for ruby
Other
47 stars 41 forks source link

Macaddr 1.6.2 Systemu Issue #21

Closed rennhak closed 5 years ago

rennhak commented 10 years ago

I'm not sure if this is a systemu or macaddr issue. Ran into this trouble on a simple Ruby/Sinatra stack app.

rerun -p '**/*.{rb,js,css,scss,sass,erb,html,haml,ru,slim}' --dir routes,views,public,models,models/general,models/session,helpers,lib,config -- 'rackup config/config.ru'

13:18:10 [rerun] Src launched
/home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require': cannot load such file -- systemu (LoadError)
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/macaddr-1.6.2/lib/macaddr.rb:23:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/backports-3.6.0/lib/backports/tools.rb:343:in `require_with_backports'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/uuid-2.3.7/lib/uuid.rb:14:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
        from /home/br/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:6:in `block in <main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:in `new'
        from /home/br/companies/clothesnetwork/companies/clients/external.dev.clothesnetwork.com/ascots_website/src/config/config.ru:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rack-1.5.2/bin/rackup:4:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rackup:23:in `load'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rackup:23:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `<main>'
NoMethodError: undefined method `stop' for nil:NilClass stopping listener
/home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:74:in `sleep': execution expired (Timeout::Error)
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:74:in `block in adapter'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/watcher.rb:73:in `adapter'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/runner.rb:162:in `start'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/lib/rerun/runner.rb:9:in `keep_running'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/gems/rerun-0.8.2/bin/rerun:12:in `<top (required)>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rerun:23:in `load'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/rerun:23:in `<main>'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `eval'
        from /home/br/.rvm/gems/ruby-2.1.0@easydc_project/bin/ruby_executable_hooks:15:in `<main>'

Current workarouind for me is to pin the macaddr gem to 1.6.1 by adding

gem 'macaddr', '=1.6.1'

to gemfile. With 1.6.1 it works like a charm.

rennhak commented 10 years ago

Cross posted to https://github.com/ahoward/systemu/issues/31

hubert commented 10 years ago

@rennhak this is the same issue that's referenced in #20 and #19. systmeu was removed as dependency which in the gemspec. i have a pull request open that addresses this.

todd-richmond commented 10 years ago

this change in dependency management breaks bundle. "Bundle update" will attempt to use the 2.6 version of systemu which causes a runtime load failure for 2.5 which won't exist. The dependency should be >= 2.5 instead of -> 2.5

rennhak commented 10 years ago

@hubert Sorry for potentially double posting this, I should have checked existing issues.

mboersma commented 10 years ago

The 1.6.5 update has killed chef compatibility for us:

Bundler could not find compatible versions for gem "systemu":
  In Gemfile:
    chef (>= 0) ruby depends on
      systemu (~> 2.5.2) ruby

    systemu (2.6.2)
nofxx commented 9 years ago

systemu removed in this fork: tsilen/macaddr