Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] Issue getting started with Python Condor bindings
- Date: Wed, 26 Aug 2020 12:54:33 -0600
- From: Jamie Rajewski <jrajewsk@xxxxxxxxxxx>
- Subject: [HTCondor-users] Issue getting started with Python Condor bindings
Hi,
I was going through the tutorials for the API when I figured I may as well test them on our own cluster running Condor 8.8.9. I installed the API version corresponding to our Condor version for both python2 (2.7.5) and 3 (3.6.8).
I tried the following test example in a file labelled condor.py, first in python2:
import htcondor
import classad
schedd = htcondor.Schedd()
sub = htcondor.Submit()
sub['executable'] = '/bin/sleep'
sub['arguments'] = '5m'
with schedd.transaction() as txn:
sub.queue(txn, 10)
but got an error:
Traceback (most recent call last):
File "condor.py", line 12, in <module>
sub.queue(txn, 10)
RuntimeError: Failed to abort transaction.
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted (core dumped)
I then re-ran it in python3 and got a similar but slightly more detailed exception:
Traceback (most recent call last):
File "condor.py", line 12, in <module>
sub.queue(txn, 10)
RuntimeError: Failed to create new proc ID.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "condor.py", line 12, in <module>
sub.queue(txn, 10)
RuntimeError: Failed to abort transaction.
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted (core dumped)
I checked to ensure that the scheduler was correctly found (it was, and this is running on the schedd node too). Any ideas?
Thank you!
Jamie Rajewski