Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError same as #389 #402

Closed
QueenBytes opened this issue Dec 14, 2022 · 5 comments
Closed

TypeError same as #389 #402

QueenBytes opened this issue Dec 14, 2022 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@QueenBytes
Copy link

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

@mxrch
Copy link
Owner

mxrch commented Dec 14, 2022

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

@QueenBytes
Copy link
Author

└──╼ $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
Copy link
Author

$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.

@sai84
Copy link

sai84 commented Dec 26, 2022

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.

@mxrch mxrch added the help wanted Extra attention is needed label Dec 30, 2022
@JCMSimon
Copy link

JCMSimon commented Feb 5, 2023

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

@mxrch mxrch closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants