[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] is not recognized as an internal or external command, operable program or batch file

I am also working on python+Cygwin/Windows/Linux+Condor. This is how I got it to work:
1. A bat executable is necessary.
2. Add set %PYTHONPATH%=<your python path> to the bat file before it calls python.
3. Add "environment=PYTHONPATH=<your python path> to the job submission file.

I have no idea why both 2 and 3 are needed, but if I only do one of them, the python path does not include my custom locations. It seems only one of them is necessary according to the condor docs.

Try to print the path within the bat script with "echo %PATH%" to see why the command you're calling is not recognized. You might need to call its full path.

Hope this helps - and that someone knows the answer to my question as well!

On 9/26/2012 6:31 AM, Mostafa Bakhtvar wrote:

Hi all,


I have just started working with Condor so have got a few questions. Is it possible to run python scripts with Condor? How?

Actually what I want to do is to run some optimization process with pyomo package.

In order to run my script I have to type “pyomo script_file.py solver_name …” in command line when working in a normal windows or linux environment. As expected after installation of all of the required packages, entering this command directly in each of the PCs in the cluster results into the execution of the optimization process.

Knowing this, I made a .bat file with the above command. Then in the .sub file,  I set the executable to my .bat file and required transfer input files (script_file.py). when I submitted this job to condor server, the error below was returned:


'pyomo' is not recognized as an internal or external command,

operable program or batch file.


Does anyone have an idea why this is happening and how can I get it solved?






Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

A person is just about as big as the things that make him angry.