Larry Martell
Larry Martell

Reputation: 3756

Debugging htcondor issue running python script

I am submitting a python script to condor. When condor runs it it gets an import error. Condor runs it as /var/lib/condor/execute/dir_170475/condor_exec.exe. If I manually copy the python script to the execute machine and put it in the same place and run it, it does not get an import error. I am wondering how to debug this.

How can I see the command line condor uses to run it? Can the file copied to /var/lib/condor/execute/dir_170475/condor_exec.exe be retained after the failure so I can see it? Any other suggestions on how to debug this?

Upvotes: 1

Views: 637

Answers (1)

till
till

Reputation: 610

You can simply run an interactive job (basically just a job with sleep or cat as command) and do ssh_to_job to run it.

Generally you need to set-up your python environment on the compute node, it is best to have a venv and activate it inside your start script.

Upvotes: 1

Related Questions