Ruby DBus Library Not Working

Bug #366942 reported by stungeye on 2009-04-25
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
libdbus-ruby (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: libdbus-ruby

I get an 'undefined method' error when trying to use the Ruby Dbus library (0.2.1-1) on Ubuntu 9.04.

Error message:

/usr/lib/ruby/1.8/dbus/bus.rb:520:in `process': undefined method `get_node' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/dbus/bus.rb:461:in `send_sync'
from (eval):20:in `ListNames'

I have also tried installing the library from source, but the error remains.

This error message is triggered when trying to run any of the example scripts that came with the package.

Reported to the ruby-dbus trac, but I'm not sure how active the project is:

https://trac.luon.net/ruby-dbus/ticket/29

From that ticket, a link to others affected by this bug:

http://redcar.lighthouseapp.com/projects/25090/tickets/60-cant-install-on-jaunty-undefined-method-get_node-for-nilnilclass

This happens also when installing the ruby dbus library from source at http://github.com/mvidner/ruby-dbus/downloads (ruby-dbus 0.2.10 on Ubuntu 9.04)

This is the code from http://trac.luon.net/data/ruby-dbus/tutorial/service.html

$ irb
>> require 'dbus'
=> true
>> bus = DBus.session_bus
=> #<DBus::SessionBus:0x7f45a9ed88c0 @guid="d4acff2a02b667fa9dc5af2a4aef3e3c", @proxy=nil, @unique_name=":1.62", @unix_abstract="/tmp/dbus-AI13XiS6cV", @signal_matchrules=[], @type="abstract", @method_call_msgs={}, @buffer="l\004\001\001\n\000\000\000\002\000\000\000\215\000\000\000\001\001o\000\025\000\000\000/org/freedesktop/DBus\000\000\000\002\001s\000\024\000\000\000org.freedesktop.DBus\000\000\000\000\003\001s\000\f\000\000\000NameAcquired\000\000\000\000\006\001s\000\005\000\000\000:1.62\000\000\000\b\001g\000\001s\000\000\a\001s\000\024\000\000\000org.freedesktop.DBus\000\000\000\000\005\000\000\000:1.62\000", @client=#<DBus::Client:0x7f45a9ed4fb8 @authenticator=#<DBus::External:0x7f45a9ed4c70>, auth_list[], state:Authenticated, socket#<Socket:0x7f45a9ed7e70, @object_root=<DBus::Node {}>, socket#<Socket:0x7f45a9ed7e70, @path="unix:abstract=/tmp/dbus-AI13XiS6cV,guid=d4acff2a02b667fa9dc5af2a4aef3e3c", @transport="unix", @method_call_replies={}>
>> service = bus.request_service("org.ruby.service")
NoMethodError: undefined method `get_node' for nil:NilClass
 from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:527:in `process'
 from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:468:in `send_sync'
 from (eval):24:in `RequestName'
 from /usr/local/lib/site_ruby/1.8/dbus/bus.rb:382:in `request_service'
 from (irb):3
>>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers