Ruby DBus Library Not Working
Bug #366942 reported by
stungeye
This bug report is a duplicate of:
Bug #628316: Please bump libdbus-ruby version to 0.7.2.
Edit
Remove
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libdbus-ruby (Ubuntu) |
New
|
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/
from /usr/lib/
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:/
From that ticket, a link to others affected by this bug:
To post a comment you must log in.
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
>>