Skip to content

Module Not Found Error on macOS #3

@cyb3rspace

Description

@cyb3rspace

Whenever I execute btlescanner on MacOS, this error message shows up. I've tried pip3 install gibut that doesn't seem to solve the problem. I think Macs might be lacking user interaction with the bluetooth chip through the terminal. Any ideas?

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/btlesniffer", line 33, in <module>
    sys.exit(load_entry_point('btlesniffer==0.2.2+1.g68e4346', 'console_scripts', 'btlesniffer')())
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/btlesniffer", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/btlesniffer/main.py", line 14, in <module>
    from .sniffer import Sniffer
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/btlesniffer/sniffer.py", line 11, in <module>
    import pydbus
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydbus/__init__.py", line 1, in <module>
    from .bus import SystemBus, SessionBus, connect
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pydbus/bus.py", line 1, in <module>
    from gi.repository import Gio
ModuleNotFoundError: No module named 'gi'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions