Open dr1408 opened 1 month ago
I was having a similar issue on Ubuntu. Make sure to run:
source /usr/share/BlueToolkit/.venv/bin/activate
Then rerun the command:
sudo -E env PATH=$PATH bluekit -h
This starts the correct python virtual environment that was setup during the install. I have been following the documentation in the Workflow guide. Hopefully that helps!
Hi @dr1408 , try what @ziggsbee offered, as it indeed seems that you forgot to first enter the environment in which the toolkit is installed.
The second output shows that you are in a venv already and there is some kind of error due to deprecated method.
Nevertheless, could you please let me know which python3 version you use and whether what @ziggsbee proposed worked?
Actually the solution was to go inside the tool folder and run the setup.py then the tool installed correctly and worked
@dr1408 From what you said it seems you use an old python3 version? Which python3 version do you use?
I installed the tool 2 months ago and everything was fine but now it show this errors when i run it .. i tried running as binary and as a python module and this is the output i hope there will be a fix
┌──(venv)─(root㉿kali)-[/usr/share/BlueToolkit/bluekit/bluekit] └─# python3 bluekit.py /usr/share/BlueToolkit/bluekit/bluekit/bluekit.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources Traceback (most recent call last): File "/usr/share/BlueToolkit/bluekit/bluekit/bluekit.py", line 13, in
from bluekit.constants import CURRENT_DIRECTORY, TOOLKIT_BLUEEXPLOITER_INSTALLATION_DIRECTORY, TOOLKIT_INSTALLATION_DIRECTORY
File "/usr/share/BlueToolkit/bluekit/bluekit/bluekit.py", line 13, in
from bluekit.constants import CURRENT_DIRECTORY, TOOLKIT_BLUEEXPLOITER_INSTALLATION_DIRECTORY, TOOLKIT_INSTALLATION_DIRECTORY
ModuleNotFoundError: No module named 'bluekit.constants'; 'bluekit' is not a package