NorskJoe / sinsy-project

Programming Project 1
5 stars 3 forks source link

OS Error while executing upload.py #19

Closed rahulkoli7 closed 4 years ago

rahulkoli7 commented 4 years ago

$ python2.7 upload.py --spkr 4 --synalpha 0.55 --vibpower 1 --f0shift 0 here_comes_the_sun.xml output.wav Traceback (most recent call last): File "upload.py", line 61, in requestFromWebsite(args.infile, args.outfile, spkrlang, args.spkr, args.synalpha, args.vibpower, args.f0shift) File "upload.py", line 9, in requestFromWebsite htmlOutput = subprocess.check_output([ 'curl', '-v', '-F', 'LANG=jp', '-F', 'SPKR_LANG='+spkrlang, '-F', 'SPKR='+spkr, '-F', 'SYNALPHA='+synalpha, '-F', 'VIBPOWER='+vibpower, '-F', 'F0SHIFT='+f0shift, '-F', 'SYNSRC=@' + infile, 'http://sinsy.sp.nitech.ac.jp/index.php' ]) File "/usr/local/lib/python2.7/subprocess.py", line 216, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/local/lib/python2.7/subprocess.py", line 394, in init errread, errwrite) File "/usr/local/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Also if you could tell me how to make the project work .

aluit commented 4 years ago

Hi rahulkoli7 Have you got that input file handy? I'll try it out on my installation. sinsy is a bit limited in what it will process.

rahulkoli7 commented 4 years ago

I used the xml files already provided in the repository. It worked out in listParts.py and keepPart.py but when I try to use upload.py this error pops up. In the above error I am using "here_comes_the_sun.xml". When i serached online about this problem their it was written that it should have "shell=true" but i tried and it didnt work. I suppose it is not interacting with the website.

aluit commented 4 years ago

Your command worked fine for me. You must be having trouble accessing the website from your machine. Maybe check that curl is working. The problem isn't sinsy or this project's code.

rahulkoli7 commented 4 years ago

How can I get sinsy compatible xml files to run. Can you somehow send me the xml file which works for you.

arthurchoung commented 4 years ago

My guess is that you don't have curl installed.

I think the error message has nothing to do with xml files.

On Feb 29, 2020, at 3:21 AM, rahulkoli7 notifications@github.com wrote:

How can I get sinsy compatible xml files to run. Can you somehow send me the xml file which works for you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rahulkoli7 commented 4 years ago

It didn't had curl installed now it is running properly. Thank you so much for the help.