Bug 1523930

Summary: pybluez : ModuleNotFoundError: No module named 'gattlib'
Product: [Fedora] Fedora Reporter: Ken <kjh>
Component: pybluezAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: gwync, vaibhavg1985apr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pybluez-0.22-8.fc27 pybluez-0.22-8.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-21 19:02:42 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:
Bug Depends On: 1524504    
Bug Blocks:    

Description Ken 2017-12-09 06:43:07 UTC
Description of problem:

If you run the GATT example :

python /usr/share/doc/pybluez/examples/ble/read_name.py

... then you get an error :

Traceback (most recent call last):
  File "/usr/share/doc/pybluez/examples/ble/read_name.py", line 10, in <module>
    from bluetooth.ble import GATTRequester
  File "/usr/lib64/python2.7/site-packages/bluetooth/ble.py", line 1, in <module>
    from gattlib import *
ImportError: No module named gattlib

It seems to be missing pygattlib / python3-gattlib

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

pybluez-0.22-7.fc27.x86_64


How reproducible:

Very


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Gwyn Ciesla 2017-12-11 13:51:40 UTC
It looks like gattlib isn't in Fedora, I'll look into packaging it.

Comment 2 Gwyn Ciesla 2017-12-11 15:53:21 UTC
python-gattlib submitted for review.

Comment 3 Fedora Update System 2017-12-12 17:06:35 UTC
python-gattlib-0.20150805-2.fc26 pybluez-0.22-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-332ecc94f1

Comment 4 Fedora Update System 2017-12-12 17:06:46 UTC
python-gattlib-0.20150805-2.fc27 pybluez-0.22-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d2779719df

Comment 5 Fedora Update System 2017-12-14 06:13:33 UTC
pybluez-0.22-8.fc26, python-gattlib-0.20150805-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-332ecc94f1

Comment 6 Fedora Update System 2017-12-14 11:10:36 UTC
pybluez-0.22-8.fc27, python-gattlib-0.20150805-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d2779719df

Comment 7 Fedora Update System 2017-12-21 19:02:42 UTC
pybluez-0.22-8.fc27, python-gattlib-0.20150805-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2017-12-21 22:37:22 UTC
pybluez-0.22-8.fc26, python-gattlib-0.20150805-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 vaibhav gupta 2020-09-02 04:04:18 UTC
Still i see this error

Traceback (most recent call last):
  File "BluetoothSept012020.py", line 1, in <module>
    from bluetooth.ble import BeaconService
  File "/usr/local/lib/python3.7/dist-packages/bluetooth/ble.py", line 1, in <module>
    from gattlib import *
ModuleNotFoundError: No module named 'gattlib'