Routersploit not starting on Termux 0.118.3 kernel 4.9.337 aarch64 - No module named 'pkg_resources'

Author: CzechballCreated May 17, 2026Updated Jul 9, 2026

Hello, after successfully setting up Routersploit in a Termux environment on Android, it will not start.

Installation steps:

After these steps, I have tried to start the actual script with Python:

python3 ./rsf.py

which results in these errors:

Traceback (most recent call last):                        File "/data/data/com.termux/files/home/routersploit/rsf.py", line 9, in <module>                                  from routersploit.interpreter import RoutersploitInterpreter                                                  File "/data/data/com.termux/files/home/routersploit/routersploit/interpreter.py", line 12, in <module>            from routersploit.core.exploit.exceptions import RoutersploitException                                        File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/__init__.py", line 1, in <module>                                                           from routersploit.core.exploit.exploit import (         ...<4 lines>...
)                                                     File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/exploit.py", line 11, in <module>                                                           from routersploit.core.exploit.option import Option   File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/option.py", line 5, in <module>     from routersploit.core.exploit.utils import (           ...<2 lines>...
)                                                     File "/data/data/com.termux/files/home/routersploit/routersploit/core/exploit/utils.py", line 10, in <module>     import routersploit.resources.wordlists as wordlists
File "/data/data/com.termux/files/home/routersploit/routersploit/resources/wordlists/__init__.py", line 1, in <module>                                                    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

According to what I found online, I have verified the following:

  • I have the setuptools pip package installed
  • I have build-essential and other build-related apt packages installed
  • My pip binaries are available in PATH

Related issues:

It seems like this commit attempted to fix the issue, but was never merged? https://github.com/threat9/routersploit/commit/4c50eaec90f6c64e629ddd2e0f738b5754914a35