-
Notifications
You must be signed in to change notification settings - Fork 63
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
Uninitialized constant MQ::Exchange::AMQP #22
Comments
Gem versions: |
This happens because the generated daemon has a 'lib/amqp.rb' file generated, and the amqp initialization code requires that file instead of the amqp.rb file in the rubygem. The project name must not conflict with the names of any libraries installed via rubygems or this will happen. Thanks for reporting ! |
Renaming the generated daemon did indeed resolve this problem. Thanks for the reply! |
I got this error today after upgrading to DaemonKit 0.1.8 and generating a new daemon with the amqp installer. |
The issue appears to be in boot.rb. GemBoot#load_initializer requires 'daemon_kit/initializer', which adds lib/daemon_kit to the load path. Later on, when 'amqp' is required, it requires lib/daemon_kit/amqp, which requires 'mq', which throws the error. I was able to work around this by throwing in a |
Thanks for reporting, seems to only affect Ruby 1.8.7, while working fine with 1.9.1. I'm testing out a fix. |
On CentOS 5.4 with RubyEE 1.8.7, the amqp template generated by daemon-kit 0.1.8rc2 won't start. This also occurs on Mac OS X 10.6.3 with Ruby 1.8.7.
The text was updated successfully, but these errors were encountered: