Skip to content

km3pipe.shell.submit

I am trying to run

km3pipe.shell.submit( job_string, dryrun=True, silent=False, cluster="in2p3")

and get as error

  File "/sps/km3net/users/lmaderer/newhitfeatures/pyvenv/lib/python3.7/site-packages/km3pipe/shell.py", line 106, in submit
    job_string = gen_job(script=script, job_name=job_name, *args, **kwargs)
  File "/sps/km3net/users/lmaderer/newhitfeatures/pyvenv/lib/python3.7/site-packages/km3pipe/shell.py", line 263, in gen_job
    return _gen_job_slurm(**kwargs)
TypeError: _gen_job_slurm() argument after ** must be a mapping, not dict_items

Without **kwargs, i.e.

km3pipe.shell.submit( job_string, dryrun=True, silent=False)

the error is

  File "/sps/km3net/users/lmaderer/newhitfeatures/pyvenv/lib/python3.7/site-packages/km3pipe/shell.py", line 102, in submit
    submit_cmd = SUBMIT_CMD[BATCH_TYPE[kwargs["cluster"]]]
KeyError: 'cluster'

Checking the source code I think I use the command correctly.

I use the latest master version of km3pipe

In [2]: km3pipe.__version__
Out[2]: '9.12.4.dev6+gdf14b211'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information