Ben, Thanks a lot for the suggestions. I actually did get it to work by, as you suggested, setting the executable to be the python interpreter. So my submit file now looks like this: universe = vanilla executable = c:\Anaconda\python.exe arguments = testscript.py transfer_input_files = testscript.py requirements = OpSys == "WINDOWS" && Arch == "INTEL" transfer_executable = false output = testscript.out error = testscript.err log = testscript.log This is good enough for now. The reason I wanted to use the script as the executable initially is that I was hoping that the OS on the Windows machine would figure out how to run python script using its default python interpreter. In other words, I wanted a way to emulate the effect of adding the following 'shebang' on a unix machine #!/usr/bin/env python I realise that that's probably not a good idea anyway, since then I'd have no control over which packages are available on that particular machine. By specifying the path to a particular interpreter, I avoid that uncertainty. Anyway, thanks again for the help. ~ Roger On 6 Jan 2015, at 23:19, Ben Cotton wrote: > Roger, > > Offhand, I'm inclined to think the issue is that user condor-slot1 has > a different environment than the user (you?) who runs testscript.py > interactively. Specifically, I'm guessing that the Python interpreter > is not in its path. If you set your executable to be > C:\Python27\python.exe (or whatever is appropriate for your system) > and use testscript.py as an argument, does that work? > > You might also consider setting the STARTER_JOB_ENVIRONMENT and > JOB_INHERITS_STARTER_ENVIRONMENT configuration macros on your Windows > host, or the job's environment setting: > http://research.cs.wisc.edu/htcondor/manual/v8.2/condor_submit.html#man-condor-submit-environment > > Or I could be entirely wrong about the reason your job is failing. :-) > > > Thanks, > BC > > -- > Ben Cotton > main: 888.292.5320 > > Cycle Computing > Better Answers. Faster. > > http://www.cyclecomputing.com > twitter: @cyclecomputing > _______________________________________________ > HTCondor-users mailing list > To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a > subject: Unsubscribe > You can also unsubscribe by visiting > https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users > > The archives can be found at: > https://lists.cs.wisc.edu/archive/htcondor-users/
Attachment:
signature.asc
Description: OpenPGP digital signature