Open GIJack opened 6 years ago
This issue is a duplicate of #255 which already has a fix submitted in PR #262. Please check currently submitted issues before creating new ones.
Alternatively, you can add the following line: import pkg_resources
And replace pip_list = sorted([(i.key) for i in pip.get_installed_distributions()])
with pip_list = sorted([(i.key) for i in pkg_resources.working_set])
Please provide the following details.
Host System
python --version
) : $ python2 --version Python 2.7.15Error Description
Traceback (most recent call last): File "datasploit.py", line 4, in
dep_check.check_dependency()
File "/home/jack/Documents/github-tools/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"
.The error is this line in dep_check.py:
As per: https://github.com/pypa/pip/issues/5243
Python recommends using pkg_resources.working_set from python-setuptools instead.
EDIT: Pull Request here: https://github.com/DataSploit/datasploit/pull/269