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 >>
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 :SessionBus: 0x7f45a9ed88c0 @guid=" d4acff2a02b667f a9dc5af2a4aef3e 3c", @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:Authentic ated, socket# <Socket: 0x7f45a9ed7e70, @object_ root=<DBus: :Node {}>, socket# <Socket: 0x7f45a9ed7e70, @path=" unix:abstract= /tmp/dbus- AI13XiS6cV, guid=d4acff2a02 b667fa9dc5af2a4 aef3e3c" , @transport="unix", @method_ call_replies= {}> service( "org.ruby. service" ) lib/site_ ruby/1. 8/dbus/ bus.rb: 527:in `process' lib/site_ ruby/1. 8/dbus/ bus.rb: 468:in `send_sync' lib/site_ ruby/1. 8/dbus/ bus.rb: 382:in `request_service'
>> require 'dbus'
=> true
>> bus = DBus.session_bus
=> #<DBus:
>> service = bus.request_
NoMethodError: undefined method `get_node' for nil:NilClass
from /usr/local/
from /usr/local/
from (eval):24:in `RequestName'
from /usr/local/
from (irb):3
>>