-
Notifications
You must be signed in to change notification settings - Fork 720
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
experience installing "git-filter-repo" script directly within bare windows environment #124
Comments
Thanks for sharing your trauma, these steps worked for me as well. |
I'm in the same boat, same errors, |
I updated INSTALL.md to point to this issue, issue 36, and a git mailing list thread about these python issues on Windows. I linked to this one first as it seems the most comprehensive to me. Thanks for providing these details for others! |
I used pretty much the same steps that you did, except that for step 4, I found that I could use So potentially, a shortened version of the workflow would be: |
completely understand if all of this is just inexperience on my part and no updates to the installation instructions etc. are required, but i wanted to share a little trauma i had getting this excellent tool to work in windows.
my previous environment:
(1) i installed python itself from here:
https://www.python.org/downloads/release/python-383/
selecting the "Windows x86-64 executable installer" option
... thus followed various undocumented struggles getting anything to work ("permission denied" etc. messages) including at one point following the advice here and disabling the "app execution aliases" settings for "python.exe" within "windows" / "apps & features" settings
(2) i then started again with a fresh unedited "git-filter-repo" file which i extracted directly from the "git-filter-repo-2.27.1.tar.xz" file provided in the releases section of this repository, using "https://extract.me/" to extract those files (".xz" is not recognised as an archive container), and placing that git-filter-repo file in my "c:\Program Files\Git\mingw64\libexec\git-core" path (i.e. the path returned by "git --exec-path" as per the installation instructions on this repo)
using Git Bash within the folder for the local repository I was trying to filter I then ran my desired command:
git filter-repo --path "Floating Till"
RESULT: error issued by Git Bash /usr/bin/env: ‘python3’: No such file or directory
(3) changed first line of script to "#!/usr/bin/env python" as per the advice in the installation section of this repo
RESULT: error issued by Git Bash /usr/bin/env: ‘python’: No such file or directory
(4) changed first line of script to "#!c:\Users\[my windows user name]\AppData\Local\Programs\Python\Python38\python.exe" i.e. the path where I found "python.exe" to be installed when I file-searched my system
RESULT: error issued by Git Bash fatal: 'filter-repo' appears to be a git command, but we were not able to execute it. Maybe git-filter-repo is broken?
(5) re-enabled the "app execution aliases" settings for "python.exe" within "windows" / "apps & features" settings
RESULT: error issued by Git Bash Python was not found but can be installed from the Microsoft Store: ms-windows-store://pdp/?productid=9NJ46SX7X90P
(6) googled that product id "9NJ46SX7X90P" on the microsoft store and installed python 3.7 directly from there
RESULT: it worked
my own feeling / conclusion is that maybe this was a Git Bash issue, and also that the only way to get it to work was by downloading python from the microsoft store itself
again i am quite a novice at adding packages to Git, and anything at all to do with PYTHON / UNIX etc.: just posting my own experience in case that is relevant to the installation processes documented here
The text was updated successfully, but these errors were encountered: