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

py -3 errors in powershell. python does not #104

Open
Squalm opened this issue Nov 17, 2020 · 3 comments
Open

py -3 errors in powershell. python does not #104

Squalm opened this issue Nov 17, 2020 · 3 comments

Comments

@Squalm
Copy link

Squalm commented Nov 17, 2020

Description: I've had to modify all my run.ps1 files in my algos so that instead of saying py -3 $algoPath they say python $algoPath. This is because powershell runs python as python and not py -3. I installed it using powershell (although I have anaconda set up elsewhere), without modifying anything.

If this is reproducable (or at least, switching to python it continues to work) then it might be worth updating the run.ps1 files.

Expected Result: py -3 starts python as expected.
Actual Result: Error crashes the program.

py : The term 'py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ py -3
+ ~~
    + CategoryInfo          : ObjectNotFound: (py:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Suggested Solution: switch py -3 to python no other changes necessary.

Steps to reproduce: As described above. Easiest test is attempt to run py -3 in powershell. Then run python.

OS: Windows 10

run.ps1.txt

@Ryan-McPartlan
Copy link
Contributor

Ryan-McPartlan commented Nov 24, 2020

Thanks for this detailed report, I will investigate further and potentially make the suggested change

@Ryan-McPartlan
Copy link
Contributor

Are you running run.ps1 directly, or are you running a script like run_match.py?

@Squalm
Copy link
Author

Squalm commented Nov 24, 2020

I've been using run_match.py. I mentioned using python directly in powershell just because it was an easier demonstration of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants