From: Frédéric <frederic.mantegazza@gbiloba.org>
To: bluez-users@lists.sourceforge.net
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Issue with discover_devices() in PyGTK GUI
Date: Tue, 16 Sep 2008 12:46:50 +0100 [thread overview]
Message-ID: <YCQ6BUzm.1221565610.4609910.fma@alezan.org> (raw)
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
next reply other threads:[~2008-09-16 11:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 11:46 Frédéric [this message]
2008-09-16 14:14 ` [Bluez-users] Issue with discover_devices() in PyGTK GUI Frédéric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YCQ6BUzm.1221565610.4609910.fma@alezan.org \
--to=frederic.mantegazza@gbiloba.org \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox