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

install.bat version check #6

Open
FatherGuidoSarducci opened this issue Nov 1, 2022 · 1 comment
Open

install.bat version check #6

FatherGuidoSarducci opened this issue Nov 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@FatherGuidoSarducci
Copy link

When using Python 3.10 and 3.11, the install.bat script terminates during version check because "Python 3.10" and "Python 3.11" are considered less than "Python 3.8"

FOR /F "tokens=* USEBACKQ" %%F IN (`python --version`) DO (
SET var=%%F
)
ECHO %var%
if "%var%" GEQ "Python 3.8" (
    echo Python 3.8 and above found
  ) else (
    echo "%var%"
    echo APTRS require Python 3.8+ .
    exit /b
  )
@Anof-cyber
Copy link
Collaborator

This is an known issue. The windows batch script doesn't support version comparison. A updated script will be released in new few days.

As of now you can modify the below line
if "%var%" GEQ "Python 3.8" to if "%var%" GEQ "Python 3.[8.9.10]"

@Anof-cyber Anof-cyber added the bug Something isn't working label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants