Comments (6)
Gem versions:
amqp (0.6.7)
daemon-kit (0.1.8rc2)
eventmachine (0.12.10)
from daemon-kit.
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.
Renaming the generated daemon did indeed resolve this problem. Thanks for the reply!
from daemon-kit.
I got this error today after upgrading to DaemonKit 0.1.8 and generating a new daemon with the amqp installer.
from daemon-kit.
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.
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)
- Rspec2-compatible generator HOT 1
- script/destroy invokes daemon_kit/commands/generate
- Starting daemon from Capistrano occasionally is successfull HOT 6
- Vendored Thor is outdated. HOT 1
- No pidfile is generated HOT 1
- Inaccessible configuration reader for pid_file HOT 5
- Default command `help`? HOT 4
- replace syslog-logger gem? HOT 3
- overriding --version HOT 2
- License missing from gemspec HOT 2
- Depend on foreman
- Remove rubigen dependency HOT 3
- Can't be called from trap contex error from DaemonKit::AMQP blocks in Ruby 2 HOT 6
- Plans to release updated stable gem? HOT 8
- Can't launch task depending on environment HOT 4
- Don't touch IOs that you don't own HOT 6
- Update to from 2.3 to 3.1 failed HOT 5
- Unexpected config loading behaviour HOT 1
- Is this project still maintained / active? HOT 3
- Allow byebug and pry to work nicely
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daemon-kit.