Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Was working fine on nethunter 2 months ago then stopped working #8

Open
dr1408 opened this issue Oct 17, 2024 · 3 comments
Open

Was working fine on nethunter 2 months ago then stopped working #8

dr1408 opened this issue Oct 17, 2024 · 3 comments

Comments

@dr1408
Copy link

dr1408 commented Oct 17, 2024

CC4799BF-A926-4B49-B106-DCFD1C6638D9

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

@ziggsbee
Copy link

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!

@sgxgsx
Copy link
Owner

sgxgsx commented Oct 17, 2024

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?

@dr1408
Copy link
Author

dr1408 commented Oct 18, 2024

Actually the solution was to go inside the tool folder and run the setup.py then the tool installed correctly and worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants