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

Droopescan can't find cement dependency unless ran with python3 #51

Closed
pr0b3r7 opened this issue Apr 5, 2021 · 7 comments
Closed

Droopescan can't find cement dependency unless ran with python3 #51

pr0b3r7 opened this issue Apr 5, 2021 · 7 comments

Comments

@pr0b3r7
Copy link

pr0b3r7 commented Apr 5, 2021

root@kali$:./droopescan scan --help 11:05:57
Traceback (most recent call last):
File "./droopescan", line 3, in
from dscan import droopescan
File "/opt/droopescan/dscan/droopescan.py", line 4, in
from cement.core import backend, foundation, controller, handler
ImportError: No module named cement.core

image

root@kali /opt/droopescan master* ❯ python ./droopescan scan --help 11:07:31
Traceback (most recent call last):
File "./droopescan", line 3, in
from dscan import droopescan
File "/opt/droopescan/dscan/droopescan.py", line 4, in
from cement.core import backend, foundation, controller, handler
ImportError: No module named cement.core
root@kali /opt/droopescan master* ❯ python ./droopescan scan --help --debug-requests 11:13:40
Traceback (most recent call last):
File "./droopescan", line 3, in
from dscan import droopescan
File "/opt/droopescan/dscan/droopescan.py", line 4, in
from cement.core import backend, foundation, controller, handler
ImportError: No module named cement.core

Linux kali 5.10.0-kali6-amd64 #1 SMP Debian 5.10.26-1kali2 (2021-04-01) x86_64 GNU/Linux

install method pip

However, when running with python3 and renaming the script to .py - it works.

image

Thank you,
Robert

@SamJoan
Copy link
Owner

SamJoan commented May 20, 2021

Hi Robert,

Sorry for taking a little while in getting back to you on this one. It is a little bit mysterious because it seems to install properly but then it seems that it's not found.

I generally run my unit tests with Python 2 and 3, but haven't done a fresh install of droopescan in a while. I wonder if it is related to the deprecation of Python 2. I am unsure whether there are a lot of people still using Python 2 out there and if to continue supporting it. What do you think about this?

Is Kali still on Python 2?

Thanks,
Pedro

@NorthShad0w
Copy link

NorthShad0w commented Jun 5, 2021

kali use command python3 to execute python version 3 script.
And use command python to execute python version 2 script.
For kali user:
just edit first line in droopescan from #!/usr/bin/env python to #!/usr/bin/env python3

@SamJoan
Copy link
Owner

SamJoan commented Jun 7, 2021

Hmm. I feel like this will be a breaking change in the sense that it will break support with Python 2 users.

But Kali is one of the biggest users of droopescan. I'll have a think.

@SamJoan SamJoan closed this as completed in f69cfdd Jun 7, 2021
@SamJoan
Copy link
Owner

SamJoan commented Jun 7, 2021

Hi @NorthShad0w @pr0b3r7

I released a new version which solves this.

Can you please confirm the fix? You can update by running pip install -U droopescan

@SamJoan
Copy link
Owner

SamJoan commented Jun 7, 2021

I'm going to reopen the issue until you have confirmed the fix. I'm concerned that I may have introduced issues with this change, but I can't see any problems on my end.

@SamJoan SamJoan reopened this Jun 7, 2021
@NorthShad0w
Copy link

It works fine in my computer.

@SamJoan
Copy link
Owner

SamJoan commented Jun 8, 2021

Sweet, thank you! I appreciate it.

@SamJoan SamJoan closed this as completed Jun 8, 2021
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