byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.35k stars 1.64k forks source link

poetry lock / poetry install #757

Closed StayF0cus closed 1 year ago

StayF0cus commented 1 year ago

Hello, when I run poetry lock or poetry install in my CrackMapExec folder I have this problem "Project environment contains an invalid distribution"

image

Moreover, nothing happens

Any solution?

twosevenzero commented 1 year ago

Looks like this is a python/poetry issue and not an issue with CrackMapExec. According to this issue on the poetry repo, this is caused by leftover .dist-info files.

I am not able to replicate this issue.

$ poetry install
Creating virtualenv crackmapexec-uFAeCoN0-py3.11 in /home/zero/.cache/pypoetry/virtualenvs
Installing dependencies from lock file

Package operations: 93 installs, 0 updates, 0 removals

  • Installing pycparser (2.21)
  • Installing asn1crypto (1.5.1)
  • Installing cffi (1.15.1)
  • Installing pycryptodomex (3.17)
    <-- SNIP -->
  • Installing terminaltables (3.1.10)
  • Installing xmltodict (0.12.0)

Installing the current project: crackmapexec (5.4.1)