I’ve resolved the issue - end of thread.
Despite my previous post and subsequent searches, it appears that excluding this code segment might impede script execution (or is due to my lack of understanding).
if os.environ.get('PYTHONHOME'):
del os.environ['PYTHONHOME']
Moreover, there are other forum posts related to Python2, but some of them do not work correctly on my end. I’ve included the functional file and the external script in the .gh file for potential future use, offering a concise and straightforward approach.
Simply provide the "path of the script you want to run" and "the executable path of the Python installed on your system." Note that I’ve included a simple example for easy comprehension, and it can be adjusted as needed. I hope this alternative method proves helpful.
end.gh (8.7 KB)