Skip to content

FIX for ModuleNotFoundError: No module named 'pkg_resources' #890

@xCEVre

Description

@xCEVre

git clone https://www.github.com/threat9/routersploit

warning: переадресация на https://github.com/threat9/routersploit.git/
remote: Enumerating objects: 8966, done.
remote: Counting objects: 100% (198/198), done.
remote: Compressing objects: 100% (121/121), done.
remote: Total 8966 (delta 141), reused 77 (delta 77), pack-reused 8768 (from 2)
Получение объектов: 100% (8966/8966), 1.93 МиБ | 908.00 КиБ/с, готово.
Определение изменений: 100% (6411/6411), готово.

cd routersploit/

geany requirements.txt

bcrypt==5.0.0
certifi==2025.10.5
cffi==2.0.0
charset-normalizer==3.4.3
cryptography==46.0.2
idna==3.10
invoke==2.2.0
paramiko==4.0.0
pip==25.2
pyasn1==0.6.1
pycparser==2.23
pycryptodome==3.23.0
pynacl==1.6.0
pyreadline3==3.5.4
pysnmp==7.1.21
requests==2.32.2
setuptools==80.9.0
standard-telnetlib==3.13.0
urllib3==2.5.0

uv venv

Using CPython 3.13.7 interpreter at: /usr/bin/python
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate

source .venv/bin/activate

uv pip install -r requirements.txt

Resolved 19 packages in 286ms
Installed 19 packages in 25ms
 + bcrypt==5.0.0
 + certifi==2025.10.5
 + cffi==2.0.0
 + charset-normalizer==3.4.3
 + cryptography==46.0.2
 + idna==3.10
 + invoke==2.2.0
 + paramiko==4.0.0
 + pip==25.2
 + pyasn1==0.6.1
 + pycparser==2.23
 + pycryptodome==3.23.0
 + pynacl==1.6.0
 + pyreadline3==3.5.4
 + pysnmp==7.1.21
 + requests==2.32.2
 + setuptools==80.9.0
 + standard-telnetlib==3.13.0
 + urllib3==2.5.0

python rsf.py

/.../routersploit/routersploit/resources/wordlists/__init__.py:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
 ______            _            _____       _       _ _
 | ___ \          | |          /  ___|     | |     (_) |
 | |_/ /___  _   _| |_ ___ _ __\ `--. _ __ | | ___  _| |_
 |    // _ \| | | | __/ _ \ '__|`--. \ '_ \| |/ _ \| | __|
 | |\ \ (_) | |_| | ||  __/ |  /\__/ / |_) | | (_) | | |_
 \_| \_\___/ \__,_|\__\___|_|  \____/| .__/|_|\___/|_|\__|
                                     | |
       Exploitation Framework for    |_|    by Threat9
            Embedded Devices

 Codename   : I Knew You Were Trouble
 Version    : 3.4.7
 Homepage   : https://www.threat9.com - @threatnine

 Exploits: 143 Scanners: 4 Creds: 171 Generic: 4 Payloads: 32 Encoders: 6

rsf > 

fixed with deps:
uv pip freeze

bcrypt==5.0.0
certifi==2025.10.5
cffi==2.0.0
charset-normalizer==3.4.3
cryptography==46.0.2
idna==3.10
invoke==2.2.0
paramiko==4.0.0
pip==25.2
pyasn1==0.6.1
pycparser==2.23
pycryptodome==3.23.0
pynacl==1.6.0
pyreadline3==3.5.4
pysnmp==7.1.21
requests==2.32.2
setuptools==80.9.0
standard-telnetlib==3.13.0
urllib3==2.5.0

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