Run python in labels

Hi,
I’m trying to run this simple example (Writing Algorithms — ImFusion Labels documentation). When I go to Run algorithms, I can’t see a way to select a .py file. Only .yaml and .iws

Should I create a specific yaml or is there something else I should do?

Thanks a lot

Hi Mohannad,
Please check that you have correctly set the path to your python environment in Settings > Application > Python.
Which version of the application do you have and which platform are you on?
Best Regards,
Federico

I’m using it on Windows 11, ImFusion SDK 3.11.1, and Python 3.14

Hi Mohannad,

we do not support Python 3.14 yet, but only up until 3.12 at the moment

I have added 12, but the labels app is crashing now. When I open it, it shows a window for less than a second and doesn’t open. I tried restarting the device, but had no luck. Are there some logs I can read and share?

Hi Mohannad,
you can find the log here:
%APPDATA%\ImFusion\ImFusion Labels\ImFusionLabels.log

Which version do you have installed, Mohannad?

Python: 12
ImFusion SDK 3.11.1

Please try installing the latest version and let us know if the problem persists
https://forum.imfusion.com/t/latest-academic-installers-including-labels-3-13/2030

Same thing. It doesn’t work.

uninstalling python solved this issue I’ll try to reinstall

I have installed python 11 and added it to path. Now labels don’t crash and open.

Unfortunately, when I select Run Algorithm I can only find .yaml or .iws no .py

Could you please send the end of the log file again? Since the TorchPlugin also cannot be loaded, it might be that there is a DLL issue. For example different versions of the same library getting loaded. Do you have PyTorch installed?

This is a fresh Python installation without installing any libraries. Will send the logs when I get home

We think we could reproduce the issue. Can you please make sure that numpy is installed? If numpy 2.x doesn’t work, you can also try 1.x
We will improve the error handling in the future.

Let me know if you like to have a meeting and try to debug this

I tried with a clean Windows 10 VM and after installing numpy, it worked. There might be something in your system that causes a DLL conflict. You can try the following:

  • Check your PATH environment variable. Sometimes applications add their binary folder their. I think for example the Spyder IDE does that.
  • Check that there is no PYTHONPATH
  • The Windows Event Viewer might contain a bit more details about the error (under Windows Logs → Application). It might say which DLL is causing the issue.
  • Check that you are using the 64bit version of Python. I think this is the default now, but already installed the 32bit version by accident
  • Try dependency_runner on the C:\Program Files\ImFusion\ImFusion Suite\Suite\plugins\python\ImFusionPythonInterpreter3.11.dll file. This might show which DLLs are missing

Unfortunately, I don’t have time for a meeting this week, but maybe next week.