You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version (python --version) :
$ python2 --version
Python 2.7.15
Error 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:
pip_list = sorted([(i.key) for i in pip.get_installed_distributions()])
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
Starch Loonix
$ uname -a
Linux titanium 4.18.5-arch1-1-ARCH starting with django framework backed by mongo for datasploit #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux
python --version
) :$ python2 --version
Python 2.7.15
Error 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: pypa/pip#5243
Python recommends using pkg_resources.working_set from python-setuptools instead.
EDIT: Pull Request here: #269
The text was updated successfully, but these errors were encountered: