Ruby httparty Load Error

httparty arguments
httparty build request
httparty testing
httparty https
httparty public_send
httparty get example
ruby package manager

I am trying to load (require) the httparty gem into a Ruby file but keep getting an error and am unsuccessful.

Below is the error copied:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- httparty (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/neilricci/Desktop/test.rb:1:in `<main>'

Below is where the httparty gem file is located on my computer:

/Users/neilricci/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/httparty-0.13.7/lib/httparty.rb

Issue was resolved by installing httparty with sudo, which is weird because I installed httparty as the main admin.

sudo gem install httparty

`require': cannot load such file -- HTTParty (LoadError), /home/da/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/​kernel_require.rb:54:in `require': cannot load such file -- HTTParty (LoadError) from  First off I'm a Newbie in regards to Ruby, and I'm following the simple tutorial on https://www.distilled.net/resources/web-scraping-with-ruby-and-nokogiri-for


How are you requiring the HTTParty gem in your code? Sometimes an error occurs when you're including your gems with capital letters, that's to say a require "HTTParty" will be clearly different than require "httparty". It can produce a 'require': cannot load such file -- HTTParty (LoadError), what's a name difference; possible solution is to refer your gem require in complete lowercase letter.

Another possible cause could be that your ruby version isn't compatible with what the gem needs, maybe you're running your piece of code with a previous version minor than what the gem needs to work; possible solution is to check what's the Ruby version dependency of the gem that's giving you problems, at the time of writing this the last version of HTTParty is the 0.14.0 what requires a version of Ruby equal or more actual than 1.9.3 (>= 1.9.3)

If your HTTParty gem version is old you're going to receive error messages with undefined methods, here the solution is obvious, check what version do you have and uninstall it using sudo gem uninstall httparty-gem and then install the new version using sudo gem install httparty-gem (sudo is to prevent possible future errors with the propietary who has installed the gem), or if you want you can just install it and have those two or more versions of the gem.

Correct error with require HTTParty: "cannot load such file , n require': cannot load such file -- httparty (LoadError) from C:/Ruby193/lib/ruby/​gems/1.9.1/gems/backports-3.6.0/lib/backports/t ools.rb:343:in  Fixing Issues in Typhoeus and HTTParty on Windows. June 4, 2016 Recently when doing some Ruby development using the Typhoeus and HTTParty gems with a Windows machine, I’ve found there are two issues that seem to appear out of the box near enough every time.


Try installing the gem:

gem install httparty

httparty load error · Issue #329 · Shopify/dashing · GitHub, I run gem list, but I get this error when attempting to run the ruby f… require': cannot load such file – /Users/user/lib/httparty (LoadError) Declare that you wish to resend the full HTTP request across redirects, even on redirects that should logically become GET requests. A 303 redirect in HTTP signifies that the redirected url should normally retrieved using a GET request, for instance, it is the output of a previous POST. maintain_method_across_redirects respects this behavior, but you can force HTTParty to resend_on_redirect


Your code seems to be running in Ruby 2.0.0, but the gem seems to be installed for Ruby 2.2.3.

Make sure your Ruby version is properly selected through rvm or chruby or whatever you personally use to manage your Ruby versions, and make sure the HTTParty is installed for the same version your code is running in.

SOLVED - Gem path discrepancy, I was able to overcome the openssl issue (by reinstalling ruby 1.9.3). However, I still cucumber cannot load such file -- httparty (LoadError) httparty also includes the executable httparty which can be used to query web services and examine the resulting output. By default it will output the response as a pretty-printed Ruby object (useful for grokking the structure of output). This can also be overridden to output formatted XML or JSON. Execute httparty --help for all the options


In my case I had put require 'httparty' on my class but still give me an error. I tried to Install and Uninstall httparty gem without any progress. Finally I could resolve the problem by adding gem 'httparty' line to my Gemfile file followed by running bundle install from command prompt.

I am using rails 5.2.3 with ruby 2.5.1

Re: [ruby maybe?] httparty and openssl, :retrieve_url. It's one of those gotchas in Ruby ;). Reply error by require_relative. LoadError: cannot load such file -- animatedgifme/version. Hi guys, I have been trying to make get request from sample.rb file with HTTParty. httparty and json installed however when I try to star dashing with &quot;dashing start&quot; I am getting the err


Consuming an API Using HTTParty and Creating a Gem Discussion , The error means rbenv can't find the httparty gem. Since rbenv installs gems under ~/.rbenv, you shouldn't need the sudo command to install httparty. Recent Ruby started requiring a valid SSL cert by default. Not sure if the problem is on my end or yours, but HTTParty is failing hard when I try to use the DocRaptor API:


ruby - `require': cannot load such file -- HTTParty (LoadError), LoadError: cannot load such file -- httparty. This message tells you that the libary you want isn't available. HTTParty is distributed as a gem,  This post will cover the implementation of data from a JSON file to a Ruby on Rails application, demonstrating how to manipulate the data using controllers and views. We'll build an example app to walk through a simple use case implementing HTTParty.


How To Use IRB to Explore Ruby, Broken `master` due to the new HTTPArty gem v0.17.2 release (required)>' 56 from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' `require': cannot load such file -- gitlab (LoadError) 64 from  Exceptions which inherit from ResponseError contain the Net::HTTP. response object accessible via the #response method.. Direct Known Subclasses