Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'websockets' #540

Open
thebaldgeek opened this issue Oct 1, 2024 · 0 comments
Open

ModuleNotFoundError: No module named 'websockets' #540

thebaldgeek opened this issue Oct 1, 2024 · 0 comments

Comments

@thebaldgeek
Copy link

thebaldgeek commented Oct 1, 2024

ARM v7 hardware platform (industrial controller).
Alfa AWUS036H
Kismet docker.
Python 3.11.1

Web page opens, create user Ok, select device and see a moving bar graph, but no SSID etc show up in the webinterface.
I see a matching moving bargraph in the top right of the interface, the messages, graphs etc are all there, but the frequency and channels graphs are empty.

Snip of error from staring Kismit with the following:
docker run --rm -it --privileged --net=host --pid=host finchsec/kismet:e02bc11

INFO: HTTP server listening on 0.0.0.0:2501
INFO: Could not open system plugin directory (/usr/local/lib/kismet/), skipping: No such file or directory
INFO: Did not find a user plugin directory (/root/.kismet//plugins/), skipping: No such file or directory
ERROR: Error reading config file '/root/.kismet/kismet_httpd.conf': No such file or directory
INFO: A new administrator login and password have been set.
FATAL:  Datasource helper (bladerf-wiphy) failed, could not process incoming control packet.
Traceback (most recent call last):
  File "/usr/local/bin/kismet_cap_sdr_rtl433", line 33, in <module>
    sys.exit(load_entry_point('KismetCaptureRtl433==2020.10.1', 'console_scripts', 'kismet_cap_sdr_rtl433')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/kismet_cap_sdr_rtl433", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/dist-packages/KismetCaptureRtl433/__init__.py", line 33, in <module>
    from . import kismetexternal
  File "/usr/local/lib/python3.11/dist-packages/KismetCaptureRtl433/kismetexternal/__init__.py", line 33, in <module>
    import websockets
ModuleNotFoundError: No module named 'websockets'
Traceback (most recent call last):
  File "/usr/local/bin/kismet_cap_sdr_rtladsb", line 33, in <module>
    sys.exit(load_entry_point('KismetCaptureRtladsb==2020.10.1', 'console_scripts', 'kismet_cap_sdr_rtladsb')())
  

Have spent a few hours in Google foo, installed websocket, websockets, websocket-client etc: For example:
Python-3.11.1# pip3 install websockets Requirement already satisfied: websockets in /usr/local/lib/python3.11/site-packages (13.1)

I'm presuming that no data is showing in the web interface because of lack of websocket data?
I've seen some hints that the docker is looking for the python packages in the wrong location?

EDIT: I think this is an issue with the docker, not Kismet.
Sorry for the noise. Please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant