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

[UX] Clarification: hatch --version throws error on Windows OS #271

Open
sn3hay opened this issue May 20, 2024 · 5 comments
Open

[UX] Clarification: hatch --version throws error on Windows OS #271

sn3hay opened this issue May 20, 2024 · 5 comments
Labels
pyconus-24 UX User experience

Comments

@sn3hay
Copy link

sn3hay commented May 20, 2024

Description
Reference: https://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html
After installing the Hatch, if the path where pipx puts these applications is not on the PATH environment variable, then it is required to run pipx ensurepath to automatically add it or manual modification of the PATH is required.

Steps to Reproduce
After installing Hatch on Windows OS run
hatch --version

Expected Behavior
The hatch version command should be recognized and return the version.

Actual Behavior
The error message - 'hatch' is not recognized as an internal or external command, operable program or batch file.

Solution
Run pipx ensurepath
Reopen command line and run hatch --version
This should now return the version of Hatch installed.

This is not a bug report but rather clarification that would ease the installation of Hatch.

@lwasser lwasser transferred this issue from pyOpenSci/pyos-sphinx-theme May 20, 2024
@pb-413
Copy link
Contributor

pb-413 commented May 20, 2024

Possibly related to #265.

@willingc
Copy link
Collaborator

willingc commented May 29, 2024

Related to #265 and #270. Using suggested fix in these issues will resolve this too.

Next action: #270 (comment)

@willingc willingc changed the title Clarification: hatch --version throws error on Windows OS [UX] Clarification: hatch --version throws error on Windows OS May 29, 2024
@willingc willingc added the UX User experience label May 29, 2024
@kierisi
Copy link
Contributor

kierisi commented May 31, 2024

@all-contributors add @sn3hay for review

Copy link
Contributor

@kierisi

I've put up a pull request to add @sn3hay! 🎉

@lwasser
Copy link
Member

lwasser commented Jun 26, 2024

y'all - i've just opened this pr which updates the installation instructions - if you are involved in multiple issues you'll see this same comment on all of them (i'm housekeeping)

A few things we learned chatting in #301

  1. the installers seem to be the way to go for windows and MAC (altho mac also supports homebrew install which people might have and prefer)
  2. Hatch installs Python for you using UV if you don't have Python! so the installers provide an additional win of Python!

Reviews are welcome on my open PR!! we are teaching a workshop the week after next so i'll leave this open for a week with the plan to merge next tuesday July 2! this issue can then be closed! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pyconus-24 UX User experience
Projects
Development

No branches or pull requests

5 participants