Permission Denied as root when connecting BluetoothSocket with Bluez 5.43
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.
I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl
. However, when I then try to connect a BluetoothSocket
to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied')
.
I found this thread with the same issue, and it was resolved by running sudo python script.py
.
However, when I do the same and run the python script with sudo
, the program still fails with the same error.
This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.
permissions python raspberry-pi bluetooth bluez
add a comment |Â
up vote
1
down vote
favorite
I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.
I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl
. However, when I then try to connect a BluetoothSocket
to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied')
.
I found this thread with the same issue, and it was resolved by running sudo python script.py
.
However, when I do the same and run the python script with sudo
, the program still fails with the same error.
This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.
permissions python raspberry-pi bluetooth bluez
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.
I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl
. However, when I then try to connect a BluetoothSocket
to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied')
.
I found this thread with the same issue, and it was resolved by running sudo python script.py
.
However, when I do the same and run the python script with sudo
, the program still fails with the same error.
This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.
permissions python raspberry-pi bluetooth bluez
I've been trying to get bluetooth working on my Raspberry Pi 1 Model B+ running Raspbian Stretch Lite 4.14 with a 3rd party USB bluetooth dongle.
I installed Bluez 5.43 for python 2.7, and was able to pair with another device using bluetoothctl
. However, when I then try to connect a BluetoothSocket
to that device, I get bluetooth.btcommon.BluetoothError: (13, 'Permission denied')
.
I found this thread with the same issue, and it was resolved by running sudo python script.py
.
However, when I do the same and run the python script with sudo
, the program still fails with the same error.
This is my python script. It is Python2.7 running on Raspbian Stretch Lite 4.14 using Bluez 5.43.
permissions python raspberry-pi bluetooth bluez
edited Jul 27 at 20:16
asked Jul 27 at 20:02
coolioasjulio
1063
1063
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f458942%2fpermission-denied-as-root-when-connecting-bluetoothsocket-with-bluez-5-43%23new-answer', 'question_page');
);
Post as a guest
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
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
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