Describe the bug
When attempting to run oneshot.py on Termux, the script fails to execute due to a missing Python library: wcwidth (ModuleNotFoundError).
Attempting to fix this by using apt install wcwidth does not work because apt searches for native Termux system packages, not Python modules.
To Reproduce
Steps to reproduce the behavior in Termux:
- Follow the manual installation steps for Termux in the README.
- Execute the script:
sudo python OneShot/oneshot.py -i wlan0 -K
- See the
ModuleNotFoundError for wcwidth.
Root Cause
The Python dependency wcwidth is not installed by default in the Termux environment or via the currently documented pkg install commands.
Proposed Solution
The module must be installed via the Python package manager (pip).
-
Install the dependency with pip:
-
Root environment fallback:
Since the script is executed as a superuser (sudo), the root Python environment might have separate paths. If the error persists after step 1, install it directly in the root environment:
-
Run the script again:
sudo python OneShot/oneshot.py -i wlan0 -K
Suggested Action
Update the Termux section in the README.md to include instructions for installing wcwidth via pip.
Describe the bug
When attempting to run
oneshot.pyon Termux, the script fails to execute due to a missing Python library:wcwidth(ModuleNotFoundError).Attempting to fix this by using
apt install wcwidthdoes not work becauseaptsearches for native Termux system packages, not Python modules.To Reproduce
Steps to reproduce the behavior in Termux:
sudo python OneShot/oneshot.py -i wlan0 -KModuleNotFoundErrorforwcwidth.Root Cause
The Python dependency
wcwidthis not installed by default in the Termux environment or via the currently documentedpkg installcommands.Proposed Solution
The module must be installed via the Python package manager (
pip).Install the dependency with pip:
Root environment fallback:
Since the script is executed as a superuser (
sudo), the root Python environment might have separate paths. If the error persists after step 1, install it directly in the root environment:Run the script again:
Suggested Action
Update the Termux section in the
README.mdto include instructions for installingwcwidthviapip.