Python Module PyBluez ErrorProblem with installing a python moduleError while connecting A2DP device,...

Strange "DuckDuckGo dork" takes me to random website

Construct a section (or slice) through 3D Regions

Why don't key signatures indicate the tonic?

Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs

Globe trotting Grandpa. Where is he going next?

Can you tell from a blurry photo if focus was too close or too far?

Is using an 'empty' metaphor considered bad style?

How to access internet and run apt-get through a middle server?

Changing the laptop's CPU. Should I reinstall Linux?

Do authors have to be politically correct in article-writing?

How to deal with possible delayed baggage?

What happened to my GE option?

Does diversity provide anything that meritocracy does not?

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

How do I append a character to the end of every line in an excel cell?

Potential client has a problematic employee I can't work with

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Eww, those bytes are gross

What is the difference between rolling more dice versus fewer dice?

Removing whitespace between consecutive numbers

Is there any risk in sharing info about technologies and products we use with a supplier?

A Missing Symbol for This Logo

How does Leonard in "Memento" remember reading and writing?

How to visualize the Riemann-Roch theorem from complex analysis or geometric topology considerations?



Python Module PyBluez Error


Problem with installing a python moduleError while connecting A2DP device, Bluetooth BlueZ Dbus Exception Ubuntu12.04LTSI can't open software updater and unity tweak tool on Ubuntu14.04Python error “version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0…” when trying to run command in PHP scrip (LAMPP)Error starting ipython?Distribution not found error with scrapyUbuntu Launcher Folder not workingpip install gives “Command ”python setup.py egg_info“ failed with error code 1”version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time referenceubuntu-cleaner in 14.04LTS?













2















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.










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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
















2















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.










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • 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














2












2








2








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 31 '14 at 17:35









Braiam

52.1k20136222




52.1k20136222










asked Jan 29 '14 at 4:09









gobrewers14gobrewers14

11115




11115





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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











  • 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










1 Answer
1






active

oldest

votes


















0














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).






share|improve this answer
























  • 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 says devices: [nothing]

    – gobrewers14
    Feb 26 '14 at 4:54











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
});


}
});














draft saved

draft discarded


















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









0














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).






share|improve this answer
























  • 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 says devices: [nothing]

    – gobrewers14
    Feb 26 '14 at 4:54
















0














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).






share|improve this answer
























  • 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 says devices: [nothing]

    – gobrewers14
    Feb 26 '14 at 4:54














0












0








0







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).






share|improve this answer













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).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 31 '14 at 4:12









BraiamBraiam

52.1k20136222




52.1k20136222













  • 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 says devices: [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











  • @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 says devices: [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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

List of shipwrecks in 1808...

Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...