Python Module PyBluez Error
I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5.
I installed PyBluez and Bluez-libs. When I type
import bluetooth
or
from bluetooth import *
it successfully imports but when I try to run a basic script using the
discover_devices()
method, I get this error
Traceback (most recent call last):
File "./fin.py", line 4, in <module>
devlist = discover_devices()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 17, in discover_devices
sock = _gethcisock ()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 226, in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
bluetooth.btcommon.BluetoothError: error accessing bluetooth device
and when I type
~$ hcitool dev
no devices are named.
Any ideas?
Thanks in advance.
python bluetooth
add a comment |
I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5.
I installed PyBluez and Bluez-libs. When I type
import bluetooth
or
from bluetooth import *
it successfully imports but when I try to run a basic script using the
discover_devices()
method, I get this error
Traceback (most recent call last):
File "./fin.py", line 4, in <module>
devlist = discover_devices()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 17, in discover_devices
sock = _gethcisock ()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 226, in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
bluetooth.btcommon.BluetoothError: error accessing bluetooth device
and when I type
~$ hcitool dev
no devices are named.
Any ideas?
Thanks in advance.
python bluetooth
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36
add a comment |
I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5.
I installed PyBluez and Bluez-libs. When I type
import bluetooth
or
from bluetooth import *
it successfully imports but when I try to run a basic script using the
discover_devices()
method, I get this error
Traceback (most recent call last):
File "./fin.py", line 4, in <module>
devlist = discover_devices()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 17, in discover_devices
sock = _gethcisock ()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 226, in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
bluetooth.btcommon.BluetoothError: error accessing bluetooth device
and when I type
~$ hcitool dev
no devices are named.
Any ideas?
Thanks in advance.
python bluetooth
I'm running Ubuntu 13.04 Server on a Mac OS X (Maverick) and python 2.7.5.
I installed PyBluez and Bluez-libs. When I type
import bluetooth
or
from bluetooth import *
it successfully imports but when I try to run a basic script using the
discover_devices()
method, I get this error
Traceback (most recent call last):
File "./fin.py", line 4, in <module>
devlist = discover_devices()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 17, in discover_devices
sock = _gethcisock ()
File "/usr/lib/python2.7/dist-packages/bluetooth/bluez.py", line 226, in _gethcisock
raise BluetoothError ("error accessing bluetooth device")
bluetooth.btcommon.BluetoothError: error accessing bluetooth device
and when I type
~$ hcitool dev
no devices are named.
Any ideas?
Thanks in advance.
python bluetooth
python bluetooth
edited Jan 31 '14 at 17:35
Braiam
52.4k20138223
52.4k20138223
asked Jan 29 '14 at 4:09
gobrewers14gobrewers14
11115
11115
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36
add a comment |
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36
add a comment |
1 Answer
1
active
oldest
votes
This happens because (most likely) the server doesn't have bluetooth interfaces (what server uses bluetooth anyways?) or it doesn't get detected. The output of hcitool
being blank points that you don't have bluetooth interfaces connected to the system working as server (if it's a VM, unless it's USB adapter it could not work).
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still saysdevices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f412419%2fpython-module-pybluez-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This happens because (most likely) the server doesn't have bluetooth interfaces (what server uses bluetooth anyways?) or it doesn't get detected. The output of hcitool
being blank points that you don't have bluetooth interfaces connected to the system working as server (if it's a VM, unless it's USB adapter it could not work).
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still saysdevices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
add a comment |
This happens because (most likely) the server doesn't have bluetooth interfaces (what server uses bluetooth anyways?) or it doesn't get detected. The output of hcitool
being blank points that you don't have bluetooth interfaces connected to the system working as server (if it's a VM, unless it's USB adapter it could not work).
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still saysdevices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
add a comment |
This happens because (most likely) the server doesn't have bluetooth interfaces (what server uses bluetooth anyways?) or it doesn't get detected. The output of hcitool
being blank points that you don't have bluetooth interfaces connected to the system working as server (if it's a VM, unless it's USB adapter it could not work).
This happens because (most likely) the server doesn't have bluetooth interfaces (what server uses bluetooth anyways?) or it doesn't get detected. The output of hcitool
being blank points that you don't have bluetooth interfaces connected to the system working as server (if it's a VM, unless it's USB adapter it could not work).
answered Jan 31 '14 at 4:12
BraiamBraiam
52.4k20138223
52.4k20138223
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still saysdevices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
add a comment |
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still saysdevices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
ok. I have a bluetooth usb adapter in my MAC. Is there a way to get Ubuntu to recognize this?
– gobrewers14
Feb 25 '14 at 21:28
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
@GoBrewers14 do it works in a desktop?
– Braiam
Feb 26 '14 at 0:59
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
Yes, when I insert the usb into the MAC, the MAC reads it.
– gobrewers14
Feb 26 '14 at 1:55
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I meant a desktop version of Ubuntu...
– Braiam
Feb 26 '14 at 1:56
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still says
devices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
I installed Ubuntu Desktop on the VirtualBox. I plugged in the bluetooth adapter and it still says
devices: [nothing]
– gobrewers14
Feb 26 '14 at 4:54
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f412419%2fpython-module-pybluez-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
How do you run Ubuntu "on a Mac OS X (Maverick) and python 2.7.5"?
– guntbert
Jan 30 '14 at 21:36
I have an Ubuntu Server partition installed on Oracle VM VirtualBox and that has python 2.7.5+ on it. I'm using SSH to communicate with it on my Mac which has OS X Maverick.
– gobrewers14
Jan 31 '14 at 1:50
You should upgrade your server BTW.
– Braiam
Jan 31 '14 at 17:36