* [Bluez-users] Issue with discover_devices() in PyGTK GUI
@ 2008-09-16 11:46 Frédéric
2008-09-16 14:14 ` Frédéric
0 siblings, 1 reply; 2+ messages in thread
From: Frédéric @ 2008-09-16 11:46 UTC (permalink / raw)
To: bluez-users, bluez-users
Hello,
In my PyGTK app., I want to retreive available bluetooth devices. I try
to use discover_devices(), without success. I always get:
Traceback (most recent call last):
File
"/home/fma/develop/papywizard/trunk/papywizard/controller/bluetoothChooserC=
ontroller.py",
line 123, in refreshView
devices =3D bluetooth.discover_devices(lookup_names=3DTrue)
File "/usr/lib/python2.5/site-packages/bluetooth/bluez.py", line 17,
in discover_devices
sock =3D _gethcisock ()
File "/usr/lib/python2.5/site-packages/bluetooth/bluez.py", line 226,
in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
BluetoothError: error accessing bluetooth device
But it only occurs from the PyGTK app; it works fine from ipython...
Are there some know issues with graphical toolkits? Is it a threading
process (the function id called in a dialog, from the main loop of gtk)?
Thanks,
--
Fr=E9d=E9ric
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great priz=
es
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-16 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 11:46 [Bluez-users] Issue with discover_devices() in PyGTK GUI Frédéric
2008-09-16 14:14 ` Frédéric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox