Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

custodian.custodian.ReturnCodeError: Job return code is 1 #32

Open
rennanv opened this issue Mar 23, 2023 · 1 comment
Open

custodian.custodian.ReturnCodeError: Job return code is 1 #32

rennanv opened this issue Mar 23, 2023 · 1 comment

Comments

@rennanv
Copy link

rennanv commented Mar 23, 2023

Hi, I am trying to run the examples in cluster system.Whenever I try to run the code using 'mpirun -np 8 python cubic.py',the following error comes,
sisso_regressor.fit(X, y)
File "/export/home/kjeyakumar/anaconda3/lib/python3.8/site-packages/pysisso/sklearn.py", line 271, in fit
c.run()
File "/export/home/kjeyakumar/anaconda3/lib/python3.8/site-packages/custodian/custodian.py", line 372, in run
self._run_job(job_n, job)
File "/export/home/kjeyakumar/anaconda3/lib/python3.8/site-packages/custodian/custodian.py", line 510, in _run_job
raise ReturnCodeError(s, True)
custodian.custodian.ReturnCodeError: Job return code is 1. Terminating...

@dembart
Copy link

dembart commented Jun 23, 2023

Hi, it seems that this repo is a dead project, but try to:

option 1) set terminate_on_nonzero_returncode=False in the file /export/home/kjeyakumar/anaconda3/lib/python3.8/site-packages/custodian/custodian.py in the line #127

option 2) pass terminate_on_nonzero_returncode=False in line #270 in ../pysisso/skleran.py when initializing Custodian, i.e.
replace c = Custodian(jobs=[job], handlers=[], validators=[])
by c = Custodian(jobs=[job], handlers=[], validators=[], terminate_on_nonzero_returncode=False)

option 1 worked for me. option 2 was not tested.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants