2008-09-16 11:46:50

by Frédéric

[permalink] [raw]
Subject: [Bluez-users] Issue with discover_devices() in PyGTK GUI


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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-09-16 14:14:14

by Frédéric

[permalink] [raw]
Subject: Re: [Bluez-users] Issue with discover_devices() in PyGTK GUI


Le 16/9/2008, "Fr=E9d=E9ric" <[email protected]> a =E9crit:

>In my PyGTK app., I want to retreive available bluetooth devices. I try
>to use discover_devices(), without success. I always get:

Sorry, it was a big mistake in my GUI :o/

--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users