The specified script file was not found

Hi,

I tried to Load Python Script but it is not able to find the Python file. I changed the location of my python file but I am still getting the same error:

System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: The specified script file was not found

I also did Directory.GetFiles() to see if the file is in the correct folder however it is still not working.

Help please!
Python.xaml (9.8 KB)

Hi @Yudhisteer_Chintaram1

In your variables DirPath remove the slash at the end

@Yudhisteer_Chintaram1

Did you give .py as extension?

Cheers

Hi @Yudhisteer_Chintaram1

Try to use absolute path(Full path of the script in the load python script) instead of only main.py like below

For using the relative path like main.py in load python script. The script should be in the same folder of your project.

Hope this helps :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.