pawamoy / shell-history

Visualize your shell usage with Highcharts!
ISC License
112 stars 1 forks source link

Unable to install with pip or pipx #28

Closed kiedtl closed 5 years ago

kiedtl commented 5 years ago

pip output:

% pip install shellhistory
Collecting shellhistory
  Could not find a version that satisfies the requirement shellhistory (from versions: )
No matching distribution found for shellhistory
pawamoy commented 5 years ago

I have this problem of using dashes (or not) arbitrarily. It's pip install shell-history (like the repo slug, with a dash!).

Edit: I'm not sure what I did anymore. Let me check asap (not at home).

pawamoy commented 5 years ago

Well, I really don't understand what's going on. It should be registered as shellhistory on PyPI: https://pypi.org/project/shellhistory/#files

Yet I'm unable to install it on my current device, but able to on another.

Will investigate thoroughly tomorrow.

pawamoy commented 5 years ago

Hahahaha. It was quite simple actually. As stated in the README, you need Python 3.6 or higher. I guess the error message from pip could be more helpful.

Please confirm it was the issue :wink:

kiedtl commented 5 years ago

Well well well this is very interesting.

Here's my output of python -V:

Python 3.7.3

And lemme try again with sudo python -m pip install shellhistory:

Collecting shellhistory
  Could not find a version that satisfies the requirement shellhistory (from versions: )
No matching distribution found for shellhistory

What?

pawamoy commented 5 years ago

What about sudo python -V?

pawamoy commented 5 years ago

Well no you're right, it's not available for Python 3.7. It must be a mistake in pyproject.toml.

pawamoy commented 5 years ago

Yep: python = "~3.6"

It should be ^3.6, my bad! Sorry it took so long to figure out ^^' I thought I already fixed that (coming from a template of mine, had the same issue in another project).

Thank you for helping!

pawamoy commented 5 years ago

Fixed in 07f305d. Just tried to install it in a fresh Python 3.7 virtualenv, it worked 🙂

kiedtl commented 5 years ago

Great, it's working now! Thanks!