Closed erik-overdahl closed 2 years ago
@DL6ER Is there a chance that you have a few minutes to look at this? I believe this is related to the improvements that you contributed in #4.
ModuleNotFoundError: No module named 'libnl'
Apparently, the upstream project libnl
still hasn't merged my fix for python3.6+
compatibility. More information in this pull request: https://github.com/Robpol86/libnl/pull/29
@erik-overdahl Please try installing my fixed version of libnl
using pip3 install --upgrade --user git+https://github.com/DL6ER/libnl
@jantman Sorry, I really assumed they'd merge the fix in. We may have to add this to the README if it works.
The endpoints defined in setup.py
work now but scanclii.py
is still broken if called directly
created a new venv "test2", then python setup.py develop
before this output:
17:03 ~/.local/src/python-wifi-survey-heatmap
$ pip install --upgrade git+https://github.com/DL6ER/libnl
Collecting git+https://github.com/DL6ER/libnl
Cloning https://github.com/DL6ER/libnl to /tmp/pip-req-build-ubn2_qf1
Running command git clone -q https://github.com/DL6ER/libnl /tmp/pip-req-build-ubn2_qf1
Building wheels for collected packages: libnl
Building wheel for libnl (setup.py) ... done
Created wheel for libnl: filename=libnl-0.2.0-py3-none-any.whl size=89468 sha256=bfa9205d88af2e54f521146c35ebe192298f4fd9eadac0677c20c43380b1ffab
Stored in directory: /tmp/pip-ephem-wheel-cache-3tedhnnp/wheels/e7/df/e7/13096e185ec166c869f7718a7c545c43851fcc0c99781fb9e8
Successfully built libnl
Installing collected packages: libnl
Successfully installed libnl-0.2.0
test2
17:05 ~/.local/src/python-wifi-survey-heatmap
$ wifi-survey --help
[2021-02-14 17:05:12,800 WARNING] You should run this script as root to be able to trigger Wi-Fi scans.
usage: wifi-survey [-h] [-v] [-S] [-s IPERF3_SERVER] [-d IPERF3_DURATION] [-b BSSID] [--ding DING] [--ding-command DING_COMMAND] [-i INTERFACE] [-p IMAGE] [-t TITLE]
wifi survey data collection UI
optional arguments:
-h, --help show this help message and exit
-v, --verbose verbose output. specify twice for debug-level output.
-S, --scan Scan for access points in the vicinity
-s IPERF3_SERVER, --server IPERF3_SERVER
iperf3 server IP or hostname
-d IPERF3_DURATION, --duration IPERF3_DURATION
Duration of each individual ipref3 test run
-b BSSID, --bssid BSSID
Restrict survey to this BSSID
--ding DING Path to audio file to play when measurement finishes
--ding-command DING_COMMAND
Path to ding command
-i INTERFACE, --interface INTERFACE
Wireless interface name
-p IMAGE, --picture IMAGE
Path to background image
-t TITLE, --title TITLE
Title for survey (and data filename)
test2
17:05 ~/.local/src/python-wifi-survey-heatmap
$ ./wifi_survey_heatmap/scancli.py
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
scancli.py 44 <module>
from wifi_survey_heatmap.collector import Collector
collector.py 41 <module>
from wifi_survey_heatmap.libnl import Scanner
libnl.py 55 <module>
import libnl.handlers
libnl.py 55 <module>
import libnl.handlers
ModuleNotFoundError:
No module named 'libnl.handlers'; 'libnl' is not a package
This should be fixed with 1.0.0 which was just released. Please feel free to re-open if it hasn't been.
Bug Report
I had to install the latest version (0.3.0) of
libnl
from PyPi; without it,wifi-survey
failed immediately withpip install libnl
installs libnl0.2.0, which still does not work - needs to be `pip install libnl3.Even with
libnl3
installed,scancli.py
offers up this errorscancli.py
isn't mentioned in the README, but I was looking for somewhere to get the version info - I don't seem to have 1wifi-survey-heatmapand the other commands do not have a
--version` flag.Version
Most recent commit
Installation Method
Supporting Software Versions
Actual Output
Expected Output
Testing Assistance
Yes