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

no such file to load -- mime/message #20

Closed
galetahub opened this issue May 17, 2010 · 17 comments
Closed

no such file to load -- mime/message #20

galetahub opened this issue May 17, 2010 · 17 comments

Comments

@galetahub
Copy link

In my Gemfile:
gem "ruby-gmail", '0.2.1'
In console:
require 'gmail'
no such file to load -- mime/message
gems/ruby-gmail-0.2.1/lib/gmail/message.rb:1
...

Perhaps you forget to delete line "require 'mime/message'" in message.rb.

@charly
Copy link

charly commented May 18, 2010

same here don't know if mime/message is usefull, but couldn't figure out which lib it belongs too.

@galetahub
Copy link
Author

http://github.com/dcparker/ruby-gmail/commit/b9d0f78d0d3de4461211bc0f04c067908cad80f9

Line 33: "lib/mime/message.rb" - this means that the file was once and author forgot to remove it from the require

@ak47
Copy link

ak47 commented May 18, 2010

ree-1.8.7-2010.01 > require 'gmail'
LoadError: no such file to load -- mime/message
from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /Users/andy/.rvm/gems/ree-1.8.7-2010.01/gems/ruby-gmail-0.2.1/lib/gmail/message.rb:1
from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /Users/andy/.rvm/gems/ree-1.8.7-2010.01/gems/ruby-gmail-0.2.1/lib/gmail.rb:168
from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /Users/andy/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'

removed the gemspec require but left a require in the lib? hmm...

@xxx
Copy link

xxx commented Jun 4, 2010

+1 Just removing the require 'mime/message' from gmail/message.rb require solves my case.

@tinomen
Copy link

tinomen commented Jun 8, 2010

Tests fail due to the "no such file to load -- mime/message" error. Is version 0.2.0 considered stable or does it fail there as well? I hate to fork just to switch back in a few days.

@xxx
Copy link

xxx commented Jun 8, 2010

save_to_file doesn't exist in 0.2.0, so that version is completely unusable to me.

Due to the 0.2.1 codebase not actually being on github, I imported the 0.2.1 code separately into my own fork to fix this problem due to it stopping my show otherwise (I needed a target in my bundler Gemfile.) It's up at http://github.com/xxx/ruby-gmail , but does NOT have the history due to the gem not including it. It's literally just an import of the gem, with the one require removed.

@tinomen
Copy link

tinomen commented Jun 8, 2010

Do the tests pass? I've merged your code with the 0.2.0 and most the tests fail.

@xxx
Copy link

xxx commented Jun 8, 2010

They were failing before I touched the code. I don't think they were updated for 0.2.1. I literally downloaded the gem from rubygems.org, then removed the one require for 'mime/message', and nothing more.

@tinomen
Copy link

tinomen commented Jun 8, 2010

Thanks @xxx

I got the tests passing though I'm not sure they are very complete. I've merged your 0.2.1 code with the fork @justinperkins has. http://github.com/justinperkins/ruby-gmail.

@yorickpeterse
Copy link

This issue still seems to exist when using the Gem. It can easily be fixed by installing the "mime" gem.

@browep
Copy link

browep commented Sep 12, 2010

thanks @yorickpeterse , installing the "mime" gem worked for me.

@samdelagarza
Copy link

installing the "mime" gem worked for me also.

@bb
Copy link

bb commented Nov 20, 2010

same here: installing gem mime worked - what about fixing the dependencies or pulling this change from one of the forks?

@xxx
Copy link

xxx commented Nov 21, 2010

Is the mime gem actually being used directly by ruby-gmail anymore?

@bb
Copy link

bb commented Nov 21, 2010

It is still used, at least in this fork: https://github.com/nu7hatch/gmail which is available as the "gmail" gem (while this here is "ruby-gmail")
This fork seems to be the most advanced but is a bit hidden, because it is not a regular Github fork but a knew project building on the old source.
Personally, I switched to the nu7hatch fork.
The current release of gmail contains a bug which was fixed by the maintainer in the master branch, so make sure to use the master branch or wait for the new release which is scheduled for next week.

@Yamaplos
Copy link

Same here - installing mime did it

@Yamaplos
Copy link

gem install mime
(on windoze VII)

@myobie myobie closed this as completed Dec 19, 2012
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