DataSploit / datasploit

An #OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats.
GNU General Public License v3.0
3.04k stars 424 forks source link

dep_check.py fails because pip.get_installed_distributions does not work #268

Open GIJack opened 6 years ago

GIJack commented 6 years ago

Please provide the following details.

Host System

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()])

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

KhasMek commented 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.

manishj1996 commented 5 years ago

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])