sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.58k stars 856 forks source link

ModuleNotFoundError: No module named 'pkg_resources #644

Open yanhuasanyuexyz opened 1 year ago

yanhuasanyuexyz commented 1 year ago

Microsoft Windows [版本 10.0.19045.2728] (c) Microsoft Corporation。保留所有权利。

C:\Users\Administrator>objection Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Scripts\objection.exe__main.py", line 4, in File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\console\cli.py", line 8, in from .repl import Repl File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\console\repl.py", line 14, in from objection.utils.agent import Agent File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\utils\init__.py", line 7, in from .update_checker import check_version File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\utils\update_checker.py", line 7, in from pkg_resources import parse_version ModuleNotFoundError: No module named 'pkg_resources'

C:\Users\Administrator>

Ryan-Sapone commented 1 year ago

+1 same issue after installing frida-tools

C:\Users\MYUSER>objection Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\MYUSER\AppData\Local\Programs\Python\Python312\Scripts\objection.exe__main.py", line 4, in File "C:\Users\MYUSER\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\console\cli.py", line 8, in from .repl import Repl File "C:\Users\MYUSER\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\console\repl.py", line 14, in from objection.utils.agent import Agent File "C:\Users\MYUSER\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\utils\init__.py", line 7, in from .update_checker import check_version File "C:\Users\MYUSER\AppData\Local\Programs\Python\Python312\Lib\site-packages\objection\utils\update_checker.py", line 7, in from pkg_resources import parse_version ModuleNotFoundError: No module named 'pkg_resources'

morellanthony commented 1 year ago

try pip install --force-reinstall -U setuptools

Ryan-Sapone commented 1 year ago

try pip install --force-reinstall -U setuptools

Thank you morellanthony - this was able to resolve the issue for me