RakipInitiative / ModelRepository

Joint project of EFSA, Federal Institute For Risk Assessment, DTU and ANSES to create a online model repository.
GNU General Public License v3.0
2 stars 0 forks source link

Conda Python Issue: Testing Installation uses wrong PythonCommand (Windows) #396

Closed schuelet closed 2 years ago

schuelet commented 2 years ago

When setting the Conda environment in Windows, in the PreferencePage Class the method createFieldEditors() starts a PythonKernelTester with the ManualPythonCommand instead of the CondaPythonCommand. This doesn't lead to any problems in the Runner but the preference page displays an error.

image.png

The code should be (here for Python 3): result = PythonKernelTester.testPython3Installation( new CondaPythonCommand(PythonVersion.fromId("python3"),PreferenceInitializer.getCondaPath(), pythonHome), Collections.emptyList(), true);

I noticed that in doCheckState() the installation is again checked. This method is only called when changing the manual path, I presume? Manual Path seems to be working.