GHunt icon indicating copy to clipboard operation
GHunt copied to clipboard

TypeError same as #389

Open QueenBytes opened this issue 2 years ago • 4 comments

Describe the bug $ghunt login Traceback (most recent call last): File "/home/ah/.local/bin/ghunt", line 5, in from ghunt.ghunt import main File "/home/ah/.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/ah/.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/ah/.local/pipx/venvs/ghunt/lib/python3.9/site-packages/ghunt/objects/utils.py", line 1, in from ghunt.helpers.utils import * File "/home/ah/.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'

To Reproduce Step 1: install python 3.11.1 ┌─[a@Z]─[~/Downloads/Python-3.11.1] └──╼ $python3 -V Python 3.11.1

Step 2: install ghunt per the instructions on the page $ pip3 install pipx $ pipx ensurepath $ pipx install ghunt

Step 3: run command "ghunt login"

System (please complete the following information): Linux Parrot Python 3.11.1

QueenBytes avatar Dec 14 '22 15:12 QueenBytes

pipx uninstall ghunt; pipx install ghunt --python $(which python3.11)

mxrch avatar Dec 14 '22 15:12 mxrch

└──╼ $pipx install ghunt --python /usr/local/bin/python3.11 Fatal error from pip prevented installation. Full pip output in file: /home/ah/.local/pipx/logs/cmd_2022-12-14_15.01.01_pip_errors.log

Some possibly relevant errors from pip install: ERROR: Could not find a version that satisfies the requirement ghunt (from versions: none) ERROR: No matching distribution found for ghunt

Error installing ghunt.

QueenBytes avatar Dec 14 '22 20:12 QueenBytes

$pipx uninstall ghunt; pipx install ghunt --python $(which python3.11) Nothing to uninstall for ghunt 😴 Fatal error from pip prevented installation. Full pip output in file: /home/ah/.local/pipx/logs/cmd_2022-12-14_15.03.01_1_pip_errors.log

Some possibly relevant errors from pip install: ERROR: Could not find a version that satisfies the requirement ghunt (from versions: none) ERROR: No matching distribution found for ghunt

Error installing ghunt.

QueenBytes avatar Dec 14 '22 20:12 QueenBytes

pipx install ghunt --python $(which python3.11)

I have the same error. Could you please explain what exactly should I type in command:

"pipx install ghunt --python $(which python3.11)"

instead of the text: "$(which python3.11)" ? I can't figure it out.

sai84 avatar Dec 26 '22 08:12 sai84

Had the same error. Fixed it by uninstalling python and installing the latest version.

Xeimyn avatar Feb 05 '23 15:02 Xeimyn