fO-000 / bluing

An intelligence gathering tool for hacking Bluetooth
GNU General Public License v3.0
763 stars 105 forks source link

ModuleNotFoundError: No module named 'l2cat' #11

Closed leixyou closed 3 years ago

leixyou commented 3 years ago

Traceback (most recent call last): File "/home/ubuntu/bluetooth/pybluescan/bin/bluescan", line 5, in from bluescan.main import main File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/bluescan/main.py", line 17, in from .ui import parse_cmdline File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/bluescan/ui.py", line 56, in from btgatt import service_names, charac_names, descriptor_names File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/btgatt/init.py", line 6, in from btatt import Attribute File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/btatt/init.py", line 7, in from l2cat.l2cap_client import L2CAPClient ModuleNotFoundError: No module named 'l2cat'

There is no l2cat library can be installed.

I noted that the btatt library was updated on April 30. Maybe due to the btatt library update?

fO-000 commented 3 years ago

Thank you for opening this issue.

This problem is because I imported l2cat into btatt prematurely. btatt and bluescan currently do not need l2cat.

I have released the new version 0.0.2 for btatt with l2cat commented out. Try this version to see if the problem can be solved.

leixyou commented 3 years ago

bluescan version 0.6.3 btatt version 0.0.2 bluescan -h Traceback (most recent call last): File "/home/ubuntu/bluetooth/pybluescan/bin/bluescan", line 5, in from bluescan.main import main File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/bluescan/main.py", line 19, in from .br_scan import BRScanner File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/bluescan/br_scan.py", line 31, in from .common import bdaddr_to_company_name File "/home/ubuntu/bluetooth/pybluescan/lib/python3.6/site-packages/bluescan/common.py", line 28, in company_id = items[0].removesuffix(' (hex)') AttributeError: 'str' object has no attribute 'removesuffix'

Still exist above error when i run bluescan.

fO-000 commented 3 years ago

The removesuffix() is new in Python3.9. However, you used python3.6.

Please upgrade your python or use a lower version bluescan.

wiggigemc489 commented 2 years ago

hey, im having the same problem trying to run bluescan, i had issues with building pybluez but managed fixing them and now after i finally managed to install blue scan i only get this output: Traceback (most recent call last): File "/home/wiggige/.local/bin/bluescan", line 5, in from bluescan.main import main File "/home/wiggige/.local/lib/python3.8/site-packages/bluescan/main.py", line 19, in from .br_scan import BRScanner File "/home/wiggige/.local/lib/python3.8/site-packages/bluescan/br_scan.py", line 31, in from .common import bdaddr_to_company_name File "/home/wiggige/.local/lib/python3.8/site-packages/bluescan/common.py", line 28, in company_id = items[0].removesuffix(' (hex)') AttributeError: 'str' object has no attribute 'removesuffix'

tried installing also python3.9 but seems like my python is up to date. any idea?