Having trouble executing python script

Questions and answers on how to get the most out of FFAStrans
Post Reply
sunkast
Posts: 5
Joined: Sat Jan 23, 2021 6:10 pm

Having trouble executing python script

Post 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.
Attachments
Youtube.json
(4.14 KiB) Downloaded 320 times
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Having trouble executing python script

Post 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
sunkast
Posts: 5
Joined: Sat Jan 23, 2021 6:10 pm

Re: Having trouble executing python script

Post by sunkast »

That worked! Thank you so much for your help!
Post Reply