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

Re: [HTCondor-users] python3.6



          submit_dict = {
             'universe': 'vanilla',
             'executable':
MODULE_SOURCE_FOR_CLUSTER+'CAPbase/capcompute/util/tasks/compute_radiology.py',
             'arguments': str(args),
             'output': os.path.join(log_dir, 'compute_radiology.out.'
+ extention),
             'error': os.path.join(log_dir, 'compute_radiology.err.' +
extention),
             'log': log_file,
             'should_transfer_files': 'YES',
             'when_to_transfer_output': 'ON_EXIT',
             'transfer_output': 'output',
             'Initialdir': SYSTEM_ROOT+'/elucid/Cluster/tmp',
             'getenv': 'True',
             'leave_in_queue': '(JobStatus == 4)',
          }
         submits.append(htcondor.Submit(submit_dict))

Also my jobs are not running - I never see them in the queue. But this
code works in 2.7 fails in 3.6.


On Wed, Aug 7, 2019 at 5:31 PM Josh Karpel via HTCondor-users
<htcondor-users@xxxxxxxxxxx> wrote:
>
> Hi Larry,
>
> Could you include the code where you make the Submit objects? That's probably where the error is originating, although you don't see it until you actually try to submit the jobs.
>
> Josh Karpel
> karpel@xxxxxxxx
>
>
> On Wed, Aug 7, 2019 at 3:18 PM Larry Martell <larry.martell@xxxxxxxxx> wrote:
>>
>> I have a script that works in python2.7, but when I run it in 3.6 it
>> fails. The code that fails is here:
>>
>>           with schedd.transaction() as txn:
>>               for i, submit in enumerate(submits):
>>                   id = submit.queue(txn)
>>                   id_map[id] = i
>>                   job_ids.append(id)
>>
>> The error is on the submit.queue:
>>
>> RuntimeError: transfer_output=output is invalid, must eval to a boolean.