[Bug 366942] Re: Ruby DBus Library Not Working
Paolo Montrasio
paolo at paolomontrasio.com
Mon Nov 2 21:30:11 UTC 2009
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
>>
--
Ruby DBus Library Not Working
https://bugs.launchpad.net/bugs/366942
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list