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

LoadError in sample code → mechanize.rb: cannot load net/http/digest_auth #86

Open
jm3 opened this issue Apr 2, 2020 · 0 comments
Open

Comments

@jm3
Copy link

jm3 commented Apr 2, 2020

wombat.rb exactly as in README; added a require 'net/http/digest_auth' but it didn't matter because of load order.

% ruby --version
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin19]
% cat Gemfile
source "https://rubygems.org"
gem "wombat"
% bundle check
The Gemfile's dependencies are satisfied
% bundle list 
Gems included by the bundle:
  * activesupport (6.0.2.2)
  * concurrent-ruby (1.1.6)
  * connection_pool (2.2.2)
  * domain_name (0.5.20190701)
  * http-accept (1.7.0)
  * http-cookie (1.0.3)
  * i18n (1.8.2)
  * mechanize (2.7.6)
  * mime-types (3.3.1)
  * mime-types-data (3.2019.1009)
  * mini_portile2 (2.4.0)
  * minitest (5.14.0)
  * net-http-digest_auth (1.4.1)
  * net-http-persistent (3.1.0)
  * netrc (0.11.0)
  * nokogiri (1.10.9)
  * ntlm-http (0.1.1)
  * rest-client (2.1.0)
  * thread_safe (0.3.6)
  * tzinfo (1.2.6)
  * unf (0.1.4)
  * unf_ext (0.0.7.7)
  * webrobots (0.1.2)
  * wombat (2.10.0)
  * zeitwerk (2.3.0)
% bundle exec ruby wombat.rb
15: from wombat.rb:1:in `<main>'
14: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
13: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
12: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
11: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
10: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
  9: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
  8: from ruby/2.6.5/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `require'
  7: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat.rb:3:in `<top (required)>'
  6: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat.rb:3:in `require'
  5: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat/crawler.rb:4:in `<top (required)>'
  4: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat/crawler.rb:4:in `require'
  3: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat/processing/parser.rb:4:in `<top (required)>'
  2: from ruby/2.6.5/gems/wombat-2.10.0/lib/wombat/processing/parser.rb:4:in `require'
  1: from ruby/2.6.5/gems/mechanize-2.7.6/lib/mechanize.rb:5:in `<top (required)>'
    ruby/2.6.5/gems/mechanize-2.7.6/lib/mechanize.rb:5:
    in `require': cannot load such file -- net/http/digest_auth (LoadError)
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

1 participant