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

Getting error dep_check.py #255

Open
makamkkumar opened this issue Jun 8, 2018 · 4 comments
Open

Getting error dep_check.py #255

makamkkumar opened this issue Jun 8, 2018 · 4 comments

Comments

@makamkkumar
Copy link

Please provide the following details.

Host System

  • OS : Ubuntu 16.04 LTS
  • Python version (python --version) : 2.7.12

Error Description

F:~/datasploit$ python datasploit.py test.com
Traceback (most recent call last):
File "datasploit.py", line 4, in
dep_check.check_dependency()
File "/home/ws2/datasploit/dep_check.py", line 11, in check_dependency
pip_list = sorted([(i.key) for i in pip.get_installed_distributions()])
AttributeError: 'module' object has no attribute 'get_installed_distributions'

Please provide the details of the error. Try to provide the output and also steps to reproduce (if possible).

If you cloned Datasploit, also provide the output of git log -n 1 --pretty=format:"%B".
commit c7c9ef4
Author: upgoingstar [email protected]
Date: Fri Mar 9 07:57:40 2018 +0530

Moving Certificate Transparency Reports from google to CRT.sh

commit 602efc6
Merge: 8504aee 554df33
Author: Shubham mittal [email protected]
Date: Thu Jan 18 19:40:05 2018 +0530

Merge pull request #235 from KhasMek/redditdetails

username: add reddit details lookup

commit 8504aee
Merge: d82df97 41bd014
Author: Shubham mittal [email protected]
Date: Thu Jan 18 19:14:37 2018 +0530

Merge pull request #225 from ishamfazal/issu01-twitter_suspended_user

Suspended user unhandled exception
@makamkkumar
Copy link
Author

Output of pip freeze command is given below:-
adium-theme-ubuntu==0.3.4
anyjson==0.3.3
atomicwrites==1.1.5
attrs==18.1.0
BeautifulSoup==3.2.1
beautifulsoup4==4.6.0
billiard==3.5.0.3
bs4==0.0.1
cachetools==2.1.0
certifi==2018.4.16
chardet==3.0.4
clearbit==0.1.7
config==0.3.9
configobj==5.0.6
dnspython==1.15.0
funcsigs==1.0.2
future==0.16.0
google-api-python-client==1.7.3
google-auth==1.5.0
google-auth-httplib2==0.0.3
html5lib==1.0.1
httplib2==0.11.3
idna==2.6
ipaddr==2.2.0
ipwhois==1.0.0
json2html==1.2.1
lxml==4.2.1
more-itertools==4.2.0
netaddr==0.7.19
oauthlib==2.1.0
piplapis-python==5.1.4
pluggy==0.6.0
praw==5.4.0
prawcore==0.14.0
py==1.5.3
pyasn1==0.4.3
pyasn1-modules==0.2.1
pymongo==3.6.1
PySocks==1.6.8
pytest==3.6.1
pytest-rerunfailures==4.1
python-Wappalyzer==0.2.2
python-whois==0.7.0
pytz==2018.4
requests==2.18.4
requests-file==1.4.3
requests-oauthlib==1.0.0
rsa==3.4.2
simplejson==3.15.0
six==1.11.0
termcolor==1.1.0
tld==0.7.10
tldextract==2.2.0
tqdm==4.23.4
TravisPy==0.3.5
tweepy==3.6.0
unity-lens-photos==1.0
update-checker==0.16
uritemplate==3.0.0
urllib3==1.22
vboxapi==1.0
webencodings==0.5.1
youtube-dl==2018.3.14

@james-see
Copy link

I have this same issue.

@james-see
Copy link

james-see commented Jul 20, 2018

To workaround this issue, I simply commented out the

#import dep_check
#dep_check.check_dependency()

section in datasploit.py.

KhasMek added a commit to KhasMek/datasploit that referenced this issue Jul 29, 2018
  pip.get_installed_distributions() is in internal function
  that was never meant to be externally called and has since
  been locked out by external functions.

  Lets switch over to the supported function in setuptools
  pkg_resources.get_distribution() to search the installed
  packages.

  See: pypa/pip#5243
  Fixes: DataSploit#255
KhasMek added a commit to KhasMek/datasploit that referenced this issue Nov 14, 2018
  pip.get_installed_distributions() is in internal function
  that was never meant to be externally called and has since
  been locked out by external functions.

  Lets switch over to the supported function in setuptools
  pkg_resources.get_distribution() to search the installed
  packages.

  See: pypa/pip#5243
  Fixes: DataSploit#255
@dexter-dz
Copy link

after commenting out
#import dep_check
#dep_check.check_dependency()

I get this error now :
Traceback (most recent call last):
File "datasploit.py", line 16, in
from tld import get_tld
ImportError: No module named tld

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