Bug 879720

Summary: python is missing Bluetooth support
Product: [Fedora] Fedora Reporter: Johan Hedberg <johan.hedberg>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: bkabrda, bnocera, dmalcolm, ivazqueznet, jonathansteffan, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-2.7.3-14.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-11 21:29:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johan Hedberg 2012-11-23 22:14:26 UTC
Description of problem:

python doesn't have Bluetooth support compiled in

Version-Release number of selected component (if applicable):

python-2.7.3-13.fc18.x86_64

Steps to Reproduce:
1. python
2. from socket import AF_BLUETOOTH
  
Actual results:

ImportError: cannot import name AF_BLUETOOTH

Expected results:

This should work

Additional info:

All that should be needed to fix this is to add the bluez headers to the build-dependencies of the python package. The upcoming BlueZ version has some python test scripts which rely on Bluetooth socket support, so they can't be used right now on fedora. FWIW, both Ubuntu and debian seem to have python Bluetooth support working just fine.

Comment 1 Dave Malcolm 2012-12-11 20:40:07 UTC
Thanks for filing this bug report.

Fix committed for f19 as:
http://pkgs.fedoraproject.org/cgit/python.git/commit/?id=f9657ea51b16828853d82c7979734b62e5289e8c

Building python-2.7.3-14.fc19 for rawhide
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=4780388

Comment 2 Dave Malcolm 2012-12-11 20:43:19 UTC
Fix committed to "python3" for f19 as:
http://pkgs.fedoraproject.org/cgit/python3.git/commit/?id=81ac8c85fc5a41f563d2c4aba878708a9425a6be

Building python3-3.3.0-2.fc19 for rawhide
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=4780403