Bug 879720 - python is missing Bluetooth support
Summary: python is missing Bluetooth support
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 18
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-23 22:14 UTC by Johan Hedberg
Modified: 2012-12-11 21:29 UTC (History)
6 users (show)

Fixed In Version: python-2.7.3-14.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-11 21:29:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.