Bug 4789 - HAL Python Wrapper: Invoking repr(hal_device) times out.
Summary: HAL Python Wrapper: Invoking repr(hal_device) times out.
Status: RESOLVED WORKSFORME
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium minor
Assignee: John (J5) Palmieri
QA Contact: Robert McQueen
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2005-10-17 06:55 UTC by Jeff Rush
Modified: 2012-05-09 07:26 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jeff Rush 2005-10-17 06:55:12 UTC
device = hal_service.get_object( 
           object_path=device_name, 
           interface="org.freedesktop.Hal.Device") 
print device 
 
The above code times out during the D-BUS call, printing 
  File "dbus_bindings.pyx", line 562, in 
dbus_bindings.Connection.send_with_reply_and_block 
dbus_bindings.DBusException: Message did not receive a reply 
 
I believe the __repr__ method of remote objects should not go over the D-BUS 
but print something reasonable locally.  Or if it must go over the bus, it 
shouldn't time out.
Comment 1 David Zeuthen (not reading bugmail) 2006-08-02 16:45:40 UTC
Looks like a D-BUS python bug.
Comment 2 Jeff Rush 2006-08-02 17:48:47 UTC
I can't tell from the details here - did the person who closed it against HAL
copy the bug report into the D-BUS bug category?  Otherwise the bug just gets
dropped, which isn't good.
Comment 3 David Zeuthen (not reading bugmail) 2006-08-02 17:58:59 UTC
OK, Sorry. Moving to D-Bus then. 
Comment 4 David Zeuthen (not reading bugmail) 2006-08-02 17:59:28 UTC
Reassigning
Comment 5 John (J5) Palmieri 2006-08-03 13:08:02 UTC
I don't understand the initial report:

"I believe the __repr__ method of remote objects should not go over the D-BUS 
but print something reasonable locally.  Or if it must go over the bus, it 
shouldn't time out."

It is timing out because nothing is replying.  What version of the D-Bus are you
using?  I believe this issue has been fixed.  It looks like you aren't using an
interface which used to cause timeouts because of a bug in the bus.  Can you
post your full source from connecting to making the call to HAL?  Thanks.

Comment 6 Benjamin Close 2008-01-11 02:38:52 UTC
Bugzilla Upgrade Mass Bug Change

NEEDSINFO state was removed in Bugzilla 3.x, reopening any bugs previously listed as NEEDSINFO.

  - benjsc
    fd.o Wrangler
Comment 7 Simon McVittie 2011-05-17 11:01:51 UTC
Does this still happen? Is this still relevant?

(The .pyx implementation was deleted long ago, btw.)
Comment 8 Simon McVittie 2012-05-09 07:26:12 UTC
In the absence of further information I'm closing this as WORKSFORME.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.