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
_______________________________________________
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/