Page 1 of 1

Having trouble executing python script

Posted: Sat Jan 23, 2021 6:17 pm
by sunkast
I am trying to use the command executor node to execute a YouTube upload script that I found from this github (https://github.com/tokland/youtube-upload). However when I run a known working command, the log says that the process exited with error code 1 and that 'python' is not recognized as an internal or external command.

I have tested this command in a Windows command prompt to confirm my command is working and it indeed does upload to YouTube. I also made sure that the path for Python is in the system environmental variables. So I have absolutely no idea why this is not working. Any help?

Attached is my testing workflow.

Re: Having trouble executing python script

Posted: Sun Jan 24, 2021 10:59 am
by admin
Hi suncast, thank you for using FFAStrans and welcome to the forum! :-)

Maybe you should try adding the full path of the python.exe file, like "C:\Python27\python.exe", before your script?:

%comspec% /C ""C:\Python27\python.exe" "E:\FFASTtrans\youtube-upload\bin\youtube-upload" --title="%s_wf_name% %s_month% %i_mday%, %i_year%" --client-secrets="E:\Documents\gfqyoutube\client-secrets.json" --credentials-file="E:\Documents\gfqyoutube\matmen-youtube-upload-credentials.json" --privacy="private" "%s_source%""

If this does not help please send the log from one of your failed job. Right click on the failed job, select "Open log folder...", zip the content and send it.

-steinar

Re: Having trouble executing python script

Posted: Sun Jan 24, 2021 3:55 pm
by sunkast
That worked! Thank you so much for your help!