mxrch / GHunt

🕵️‍♂️ Offensive Google framework.
Other
15.85k stars 1.32k forks source link

Having issues starting this up after install #450

Open TejayK1029 opened 1 year ago

TejayK1029 commented 1 year ago

Just finished downloading and I was trying to get this up with ghunt login and getting this back Traceback (most recent call last): File "/home/kilow/.local/bin/ghunt", line 5, in from ghunt.ghunt import main File "/home/kilow/.local/pipx/venvs/ghunt/lib/python3.9/site-packages/ghunt/init.py", line 1, in from ghunt import globals as gb; gb.init_globals() File "/home/kilow/.local/pipx/venvs/ghunt/lib/python3.9/site-packages/ghunt/globals.py", line 5, in init_globals from ghunt.objects.utils import TMPrinter File "/home/kilow/.local/pipx/venvs/ghunt/lib/python3.9/site-packages/ghunt/objects/utils.py", line 1, in from ghunt.helpers.utils import * File "/home/kilow/.local/pipx/venvs/ghunt/lib/python3.9/site-packages/ghunt/helpers/utils.py", line 77, in def ppnb(nb: float|int) -> float: TypeError: unsupported operand type(s) for |: 'type' and 'type'

Not sure the error, I did fine one solution you had for a previous error pipx uninstall ghunt; pipx install git+https://github.com/mxrch/ghunt@8f988ab904b1913d98faefc175ebcffd5ec5339e

I tried this as well but still get the same error to no avail. Any help and a little run down on what the error means would be amazing.

Thank you for all you do

JeTondsLeGazon commented 1 year ago

I have the exact same issue with Python 3.8

JeTondsLeGazon commented 1 year ago

Actually already discussed here

But another error appears when I try with Python 3.11.4:

ImportError: cannot import name '_imaging' from 'PIL'

Politikkiller commented 1 year ago

Actually already discussed here

But another error appears when I try with Python 3.11.4:

ImportError: cannot import name '_imaging' from 'PIL'

Are you win this trouble?

JeTondsLeGazon commented 1 year ago

Unfortunately no.

But I more or less gave up ...

mystickev commented 4 months ago

@JeTondsLeGazon @TejayK1029 , The issue is as a result of using '|' operator in utils.py on the following line def ppnb(nb: float|int) -> float:.(This is because Its not supported on PythonX < python3.10). You can try changing the line as follows: import this first -> from typing import Union then replace the line def ppnb(nb: float|int) -> float: with def ppnb(nb: Union[float, int]) -> float: but that will prompt you to use python 3.10+ which I believe is the main issue here. Upgrading will resolve the issue.