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 -- em/iterator #1

Closed
jpsilvashy opened this issue Jun 20, 2010 · 13 comments
Closed

no such file to load -- em/iterator #1

jpsilvashy opened this issue Jun 20, 2010 · 13 comments

Comments

@jpsilvashy
Copy link

Maybe I'm doing something wrong here but which gem contains this library?

/Users/jpsilvashy/.rvm/gems/ruby-1.9.2-head/bundler/gems/em-mysqlplus-5ceee01679dc87691ab1affbf96f7dc8f5b251f7-master/lib/active_record/connection_adapters/em_mysqlplus_adapter.rb:1:in `require': no such file to load -- em/iterator (LoadError)
@igrigorik
Copy link
Owner

em-iterator is contained in em-synchrony, which is required in the gemfile. Hmm. You're getting this when you try to load thin?

@jpsilvashy
Copy link
Author

Yes, when thin tries to start. Thanks again!

@jpsilvashy
Copy link
Author

Oops, I didn't mean to close the issue.

@igrigorik
Copy link
Owner

Any modifications to the bundler file?

@jpsilvashy
Copy link
Author

Nope that's everything as is from the repo, I'm trying to debug it now. Great work btw, I'm really excited about contributing to this.

@aemadrid
Copy link

Same problem here

@igrigorik
Copy link
Owner

Hey guys, the em/iterator is due to me using the head version of EM (as opposed to 0.12.10 which is official atm). Try adding the following require to your gemset:

gem 'eventmachine', :git => 'git://github.com/eventmachine/eventmachine.git', :require => 'eventmachine'

@aemadrid
Copy link

wouldn't it be better to change the gemset in the repo for everyone?

@igrigorik
Copy link
Owner

I did, git pull and that should do the trick. I was holding back, hoping that the new EM gem would be pushed out soon.

@aemadrid
Copy link

Thanks!

@landlessness
Copy link

thx for the awesome work on this project.

I'm trying to work through the last code example here:
http://www.igvita.com/2010/03/22/untangling-evented-code-with-ruby-fibers/

but, i'm getting

uninitialized constant EventMachine::Synchrony::Iterator

i've tried a few variations of using :git in my Gemfile, including the suggestion above, but I'm having no luck. Any ideas?

Thanks again for the awesome work on this.

@igrigorik
Copy link
Owner

Brian, which version of EventMachine are you running? Iterators only appearead in 0.12.10, so it's a conditional require: https://github.com/igrigorik/em-synchrony/blob/master/lib/em-synchrony.rb#L15

You may need to update your Gemfile to pull eventmachine from the git repo.

@landlessness
Copy link

thx for the fast response. i've been using the latest github version of eventmachine.

the eventmachine version check looked like it should be using an if instead of an unless.

i changed it and sent you a pull request.

it's working now.

This issue was closed.
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

4 participants