python-github-backup icon indicating copy to clipboard operation
python-github-backup copied to clipboard

'github-backup' is not recognized as an internal or external command, operable program or batch file.

Open evandrocoan opened this issue 6 years ago • 6 comments
trafficstars

How to run this on Windows?

D:\GitHubBackup>github-backup
'github-backup' is not recognized as an internal or external command,
operable program or batch file.

I installed it with:

D:\GitHubBackup>python --version
Python 3.7.2

D:\GitHubBackup>pip --version
pip 19.1.1 from F:\Python\lib\site-packages\pip (python 3.7)

D:\GitHubBackup>pip install github-backup
Collecting github-backup
Installing collected packages: github-backup
Successfully installed github-backup-0.22.2

D:\GitHubBackup>

I also tried:

D:\GitHubBackup>F:\Python\Scripts\github-backup.exe
This version of F:\Python\Scripts\github-backup.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

D:\GitHubBackup>

image

evandrocoan avatar Jun 04 '19 01:06 evandrocoan

I don't use windows, so you'll need to find someone who has run scripts on windows before to figure this out. Sorry.

josegonzalez avatar Jun 04 '19 14:06 josegonzalez

I manage to run and install it on https://github.com/microsoft/WSL and using its custom shell to run the application.

evandrocoan avatar Jun 05 '19 23:06 evandrocoan

Yep WSL is probably the best option. It would also probably be possible to use something like MSYS2 (https://www.msys2.org/) or Cygwin (https://www.cygwin.com/) if you're not on Windows 10 and so WSL is not available.

einsteinx2 avatar Jan 06 '20 17:01 einsteinx2

@einsteinx2, I tried using Cygwin and it did not worked. But I did not tried using msys2, if someone managed to use msys2, share here if it worked or not.

evandrocoan avatar Jan 06 '20 17:01 evandrocoan

If you can use WSL I'd argue that's better as I think it will eventually more or less replace cygwin and msys2 completely going forward. I only mentioned it for users on Windows 7 or 8. I don't use Windows at all, so I have no intention of trying it myself, but maybe someone else will.

einsteinx2 avatar Jan 06 '20 20:01 einsteinx2

I managed to make it work on windows.

pip install github-backup as in the README

After that I download the file here : https://github.com/josegonzalez/python-github-backup/blob/master/bin/github-backup

Execute it in the local folder : python .\github-backup

jonadem avatar Dec 09 '20 16:12 jonadem