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

NameError: uninitialized constant Celluloid::Signals #35

Open
fbjork opened this issue Jun 16, 2015 · 2 comments
Open

NameError: uninitialized constant Celluloid::Signals #35

fbjork opened this issue Jun 16, 2015 · 2 comments

Comments

@fbjork
Copy link

fbjork commented Jun 16, 2015

when I try the following in irb:

p = Krakow::Producer.new(host: '127.0.0.1', port: '4150', topic: 'orders')

I get the following exception:

NameError: uninitialized constant Celluloid::Signals
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/consumer.rb:36:in `<class:Consumer>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/consumer.rb:5:in `<module:Krakow>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/consumer.rb:3:in `<top (required)>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/connection.rb:66:in `<class:Connection>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/connection.rb:6:in `<module:Krakow>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/connection.rb:3:in `<top (required)>'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/producer.rb:66:in `connect'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/krakow-0.4.2/lib/krakow/producer.rb:46:in `initialize'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/calls.rb:28:in `public_send'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/calls.rb:28:in `dispatch'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/call/sync.rb:16:in `dispatch'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/cell.rb:50:in `block in dispatch'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/cell.rb:76:in `block in task'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/actor.rb:363:in `block in task'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/task.rb:57:in `block in initialize'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/task/fibered.rb:14:in `block in create'
    from (celluloid):0:in `remote procedure call'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/call/sync.rb:45:in `value'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/proxy/sync.rb:40:in `method_missing'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid/proxy/cell.rb:20:in `_send_'
    from /Users/fredrik.bjork/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/celluloid-0.17.0.pre15/lib/celluloid.rb:198:in `new'
    from (irb):4
@mschneider82
Copy link

Hi, i got the same errors, try downgrading celluloid to 0.16.0, this will work fine.

@xoen
Copy link

xoen commented Aug 11, 2015

We just stumbled on the same problem.
Krakow's dependencies should probably be version locked to be on the safe side: https://github.com/chrisroberts/krakow/blob/master/krakow.gemspec#L13

e.g. s.add_runtime_dependency 'celluloid', '~> 0.16.0'

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

3 participants