A few issues were experienced running the runtests.sh script locally on a Windows machine:
-
Line 59 of runtests.sh is causing issue. Python executable on Windows machine is typically called python.exe, rather than python3.exe. I'm using the miniconda install of python 3.7.11. Workaround was to change line 59 to "PY_EXE=${MONAILABEL_PY_EXE:-$(which python)". Other workaround would be to create a python3.exe by duplicating the existing python.exe I think. Is there a solution that works across all OS?
-
While running ./runtests.sh --autofix, experienced import error for dataclasses package (torch dependency). Cause was use of python 3.6.x (does not support dataclasses). Fix was to create a new virtual env with python 3.7.11. Any suggestion on how to ensure other Windows users don't face the same issue?
-
While running ./runtests.sh --codeformat, get error "Failed to build pytype". Pytype not supported on Windows (https://github.com/google/pytype). Is there any alternative to Pytype?
Thanks!
A few issues were experienced running the runtests.sh script locally on a Windows machine:
Line 59 of runtests.sh is causing issue. Python executable on Windows machine is typically called python.exe, rather than python3.exe. I'm using the miniconda install of python 3.7.11. Workaround was to change line 59 to "PY_EXE=${MONAILABEL_PY_EXE:-$(which python)". Other workaround would be to create a python3.exe by duplicating the existing python.exe I think. Is there a solution that works across all OS?
While running ./runtests.sh --autofix, experienced import error for dataclasses package (torch dependency). Cause was use of python 3.6.x (does not support dataclasses). Fix was to create a new virtual env with python 3.7.11. Any suggestion on how to ensure other Windows users don't face the same issue?
While running ./runtests.sh --codeformat, get error "Failed to build pytype". Pytype not supported on Windows (https://github.com/google/pytype). Is there any alternative to Pytype?
Thanks!