cisagov / untitledgoosetool

Untitled Goose Tool is a robust and flexible hunt and incident response tool that adds novel authentication and data gathering methods in order to run a full investigation against a customer’s Azure Active Directory (AzureAD), Azure, and M365 environments.
Creative Commons Zero v1.0 Universal
904 stars 77 forks source link

Error installing tool via pip - "goosey required Python version: 3.10.11" #25

Closed tmaiorca closed 1 year ago

tmaiorca commented 1 year ago

As per the requirements tool's prerequisites:

With Python 3.9 or 3.10 installed and running in a virtual environment, I'm receiving the following error on Windows 11 when installing via python3 -m pip install . : ERROR: Package 'goosey' requires a different Python: 3.10.11 not in '<=3.10.10,>=3.7'

Attempted Python versions:

image

victoriawallace-cisa commented 1 year ago

The readme needs to be updated with Python 3.7, 3.8, 3.9, or 3.10 (3.10.10 is the last supported version).

Are you able to show me the output of when you are running Python version 3.9.13 or 3.10.9? Run python3 --version and then python3 -m pip install . and show me the output.

tmaiorca commented 1 year ago

The readme needs to be updated with Python 3.7, 3.8, 3.9, or 3.10 (3.10.10 is the last supported version).

Are you able to show me the output of when you are running Python version 3.9.13 or 3.10.9? Run python3 --version and then python3 -m pip install . and show me the output.

So, I'm getting different versions returned when running python --version (3.9.13) and python3 --version (3.10.11). I downloaded the python 3.9.13 Windows installer directly from the python website. Any idea why 3.10.11 is being installed for python3?

image

victoriawallace-cisa commented 1 year ago

I'm not really sure why you have multiple versions of Python on your machine, but since Python 3.9.13 is installed as python, you could run python -m pip install . instead of python3 in order to pass the Python version check. If you don't want 3.10.11 on your machine, you could always uninstall it.

tmaiorca commented 1 year ago

I'm not really sure why you have multiple versions of Python on your machine, but since Python 3.9.13 is installed as python, you could run python -m pip install . instead of python3 in order to pass the Python version check. If you don't want 3.10.11 on your machine, you could always uninstall it.

I was able to install Goose tool by running python -m pip install . since this referenced the 3.9.13 version, as opposed to running python3 -m pip install . which presumably references the 3.10.11 version.

I'm not sure why python 3.10.11 is getting installed alongside the 3.9.13 installer. In fact, it's not showing as being installed in the control panel or via WMI.

Thanks for your help!