Open mauricio-barahona opened 4 years ago
Please install it from https://www.python.org/downloads/windows/
I installed Python and I am still getting the same error.
same here, Installed it manually , and added it to the path. I also tried installing it from teh windows store. Still doesnt work. When opening cmd and run py i get :
C:\Users\daslicht>py
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
same as this : https://github.com/corpnewt/SSDTTime/issues/14
Looks like the check is buggy. Any way to execute the script without the check ?
The check is not buggy, you gotta add python.exe to path.
See
The check is not buggy, you gotta add python.exe to path.
See https://github.com/corpnewt/SSDTTime/issues/14 It is broken even tho added to the path
See
The check is not buggy, you gotta add python.exe to path.
See corpnewt/SSDTTime#14 It is broken even tho added to the path
It's not added to path... you need to add python.exe.... and then to test you write in cmd python.
See
The check is not buggy, you gotta add python.exe to path.
See corpnewt/SSDTTime#14 It is broken even tho added to the path
It's not added to path... you need to add python.exe.... and then to test you write in cmd python.
python IS in the path:
System Variables:
%INTEL_DEV_REDIST%redist\ia32\compiler;%INTEL_DEV_REDIST%redist\intel64\compiler;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Users\daslicht\AppData\Local\Microsoft\WindowsApps\python.exe;C:\Users\daslicht\AppData\Local\Microsoft\WindowsApps\python3.exe
What is missing ?
sidenote: SSDTTime works when bypassing the python check ;)
What's the output of where python
in cmd? Currently, the script attempts to iterate that list and keep track of the highest version of python 2 and python 3, then based on the target script's requirements, it starts the appropriate python version (if found) - or offers to download and install it.
At some point today, if I can get to it, I'll see about writing a debug .bat starter that prints a bunch of info so hopefully I can trace where these issues are creeping up. It's odd to me that it works on 99% of machines and installs (including all of mine here), but not on some.
-CorpNewt
What's the output of
where python
in cmd?
C:\Users\daslicht>where python
C:\Users\daslicht\AppData\Local\Microsoft\WindowsApps\python.exe
Exactly what is set in the path
It's odd to me that it works on 99% of machines and installs (including all of mine here), but not on some. indeed those error are the most annoying
Let me know if I can hep in any further way
I setup a little .bat file to print python version info as it finds it (as well as PATH info) here. Would you mind running that and letting me know the output?
My output is as follows:
-CorpNewt
Result:
Time to figure out where this line is printing from:
INFO: Could not find files for the given pattern(s).
I'll see about adding logging for each step.
-CorpNewt
Edit: Seems like that line is printed when the where
command does not find any matches:
So, something is still janked up with the pathing it seems.
I updated the gist script to check for py, python3, and python - and it's using backquotes (in case that changes anything). It also prints some more info - if you wouldn't mind running it again and posting the results.
have same issue.
Then run the script and send the output. Without troubleshooting info - I cannot help.
I was having the same problem.
Even though you already have python installed. Download again from this link and check the box add to path
After that, should work, if not, reboot and you should be good to go.
https://www.python.org/downloads/
Im not sure if this has anything to do with 32 vs 64 bits stuff. But this way seems to work for me
Ok, I uninstalled my current python and re-installed it. Now it is working ! The only difference I see so far is that the new installed it 3.8.2 and my previously was 3.8.1
Comment removed as it is unrelated to this thread.
Edit for clarification: This thread is related to Python not being found in the PATH variable. The other issue listed in the deleted comment is about Intel's certificates for iasl's download link rejecting python connections which prevents iasl tools from being downloaded. Not the same issue, and as such, both issues will be kept separate to avoid confusion.
just install python from Microsoft store. when I type python cmd it opens on windows store from there I installed, problem sloved
just install python from Microsoft store. when I type python cmd it opens on windows store from there I installed, problem sloved
let me guess , it is version 3.8.2 now...
Had the same issue where python was already installed, yet script didn't detect it, so the script reinstull it, yet it still wasn't detected. https://github.com/corpnewt/gibMacOS/issues/74#issuecomment-599269547 fixed it.
The python installing functionality in the script is clearly broken, perhaps it should install the 32bit version instead.
Issue is not resolved yet. Following is log.
Python path list (C:\WINDOWS\system32\where.exe python):
C:\Users\xx\AppData\Local\Programs\Python\Python38\python.exe C:\Users\xx\AppData\Local\Microsoft\WindowsApps\python.exe
Iterating python list Checking python version at "C:\Users\xx\AppData\Local\Programs\Python\Python38\python.exe"
Python 2 path found: "" Python 2 version: "" Python 3 path found: "" Python 3 version: ""
* where and python --version output
C:\Users\xx>where python3 C:\Users\xx\AppData\Local\Microsoft\WindowsApps\python3.exe
C:\Users\xx>python3 --version
C:\Users\xx>where python C:\Users\xx\AppData\Local\Programs\Python\Python38\python.exe C:\Users\xx\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\xx>python --version Python 3.8.6rc1
I have installed python from both Microsoft store and python official installer.
I also unlocked path limit in Windows AFAIK.
//EDIT:
I wonder why `python3 --version` does not print version info.
Also, I see obvious parsing / filtering bug in version detection
This is useless if you use pyenv-win.
On two Windows 10 machines I have tried to run the gibMacOS batch file. On both I am presented with an option to download Python. However, when I select "yes" (y) to proceed, nothing downloads or installs and am then presented with the following message;
Warning
Python is not installed or not found in your PATH var. Please install it from https://www.python.org/downloads/windows/
Make sure you check the box labeled:
"Add Python X.X to PATH"
Where X.X is the py version you're installing.
Press [enter] to quit.