bluekitchen / bluetooth-logger

Capture Bluetooth HCI packet logs with external hardware
15 stars 7 forks source link

Error running convert_windows_usbpcap.py on macOS Catalina #1

Open tewarid opened 4 years ago

tewarid commented 4 years ago

I'm running convert_windows_usbpcap.py as follows

python3 convert_windows_usbpcap.py usbpcap-bluetooth.pcapng

But, get the following error

Traceback (most recent call last):
  File "./convert_windows_usbpcap.py", line 10, in <module>
    from pcapng.blocks import SectionHeader, InterfaceDescription, EnhancedPacket
ModuleNotFoundError: No module named 'pcapng.blocks'

I used pip3 to install pcapng as follows

$ pip3 install pcapng
Collecting pcapng
  Downloading pcapng-0.1.23.tar.gz (30 kB)
Building wheels for collected packages: pcapng
  Building wheel for pcapng (setup.py) ... done
  Created wheel for pcapng: filename=pcapng-0.1.23-py3-none-any.whl size=36401 sha256=4fc84f3f082f7f7c43ca3476c84e8bda93e9b912e8e0dc4ac85b5024cf4cc486
  Stored in directory: /Users/dkt/Library/Caches/pip/wheels/c2/e3/2c/e87cab38d468653261d94758db24ada06b6964fc7731e2f96a
Successfully built pcapng
Installing collected packages: pcapng

Is there something I'm missing?

mringwal commented 4 years ago

Good point. I just tried myself and I get the same error as you now. There's a pcapng and a python-pcapng package. It looks like the convert script is working with Python 2 after installing python-pcapng.