Open TejayK1029 opened 1 year ago
I have the exact same issue with Python 3.8
Actually already discussed here
But another error appears when I try with Python 3.11.4:
ImportError: cannot import name '_imaging' from 'PIL'
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?
Unfortunately no.
But I more or less gave up ...
@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.
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