Skip to content

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

Open
@GIJack

Description

@GIJack

Please provide the following details.

Host System

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

As per: pypa/pip#5243

Python recommends using pkg_resources.working_set from python-setuptools instead.

EDIT: Pull Request here: #269

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions