Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8495027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:27:26+00:00 2026-06-10T23:27:26+00:00

Earlier , I asked about autoload in the gmail gem not being able to

  • 0

Earlier, I asked about autoload in the gmail gem not being able to find the files it wanted to load. In building a minimal script, I found the gmail gem loaded it’s files when I didn’t include the parse_resource gem.

The gmail gem lets you access your emails, labels, and inboxes from gmail. The parse_resource gem wraps the parse.com api in an ActiveRecord pattern.

If I include the parse_resource gem before the gmail gem, ruby throws a LoadError.

These are the permutations of the minimal script I wrote, organized by error.

LoadError

require 'rubygems'
require 'parse_resource' 
require 'gmail'

Gmail.new('yourEmail@gmail.com', 'password')

Works Fine

require 'rubygems'
#require 'parse_resource'
require 'gmail'

Gmail.new('yourEmail@gmail.com', 'password')

Autoload Error

require 'rubygems'
require 'gmail'
require 'parse_resource' 

Gmail.new('yourEmail@gmail.com', 'password')

/Library/Ruby/Gems/1.8/gems/gmail-0.4.0/lib/gmail.rb:50:in 'new': no such file to load -- gmail/client (LoadError)
from emailError.rb:6

How do I include both the parse_resource and gmail gems into my programs?

-Nick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:27:27+00:00Added an answer on June 10, 2026 at 11:27 pm

    I had installed the gems with bundler.

    To fix the issue with loading both libraries, I installed the gems with the gem command:
    sudo gem install gmail parse_resource

    With this done, I was able to require the libraries in any order, and to connect to gmail and parse without issue.

    -Nick

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is related to this question I asked earlier about syntax highlighting user-defined blocks
Ok, I asked about this very error earlier this week and had some very
Earlier today, I asked a question about the way Python handles certain kinds of
I asked a question earlier about why left joins in Linq can't use defined
I asked a question earlier about keyhooks in vb.net. My current issue is such:
I asked a question earlier about ESBs written in Erlang or Java, and there
I earlier asked a question about arrays in scheme (turns out they're called vectors
i had asked earlier about the same kind of question but that was in
I've asked about this earlier but the question itself and all the information in
I asked an earlier question which was definitely helpful and let me know about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.