Git Product home page Git Product logo

Comments (6)

threetee avatar threetee commented on July 3, 2024

Gem versions:
amqp (0.6.7)
daemon-kit (0.1.8rc2)
eventmachine (0.12.10)

from daemon-kit.

kennethkalmer avatar kennethkalmer commented on July 3, 2024

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 !

from daemon-kit.

threetee avatar threetee commented on July 3, 2024

Renaming the generated daemon did indeed resolve this problem. Thanks for the reply!

from daemon-kit.

gcampbell avatar gcampbell commented on July 3, 2024

I got this error today after upgrading to DaemonKit 0.1.8 and generating a new daemon with the amqp installer.

from daemon-kit.

gcampbell avatar gcampbell commented on July 3, 2024

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 require 'amqp' somewhere before this line.

from daemon-kit.

kennethkalmer avatar kennethkalmer commented on July 3, 2024

Thanks for reporting, seems to only affect Ruby 1.8.7, while working fine with 1.9.1. I'm testing out a fix.

from daemon-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.