# Command 'njoy' returned non-zero exit status 1

**URL:** <https://openmc.discourse.group/t/command-njoy-returned-non-zero-exit-status-1/1405>\
**Category:** User Support\
**Created:** [September 1, 2021, 3:44pm UTC](https://openmc.discourse.group/t/command-njoy-returned-non-zero-exit-status-1/1405 "2021-09-01T15:44:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinm387](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kevinm387](https://openmc.discourse.group/u/kevinm387)\
**Post date:** [September 1, 2021, 3:44pm UTC](https://openmc.discourse.group/t/command-njoy-returned-non-zero-exit-status-1/1405/1 "2021-09-01T15:44:20Z")

</div>

Hello, I’m having an error when I run the test suite relating to njoy. When I run the test suite, three of the `test_data_thermal.py` unit tests raise the following error from the `run` function:

```auto
 E subprocess.CalledProcessError: Command 'njoy' returned non-zero exit status 1.
../openmc/data/njoy.py:235: CalledProcessError

```

This may be related to how I have njoy set up. I have njoy21 intstalled, but the test suite seemed to be having trouble finding the executable file. The executable is called `njoy21`, so the test suite was skipping the tests that required njoy. So, I made a new symbolic link in the same folder called `njoy` that links to `njoy21`. Now both commands open njoy on the command line and the test suite recognizes that njoy is installed, but a few of the njoy-related tests raise this error.

Could anyone help me figure out what is causing this problem?

Thanks!

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [September 3, 2021, 8:32pm UTC](https://openmc.discourse.group/t/command-njoy-returned-non-zero-exit-status-1/1405/2 "2021-09-03T20:32:32Z")

</div>

Hey @kevinm387. NJOY21 doesn’t seem to work for all cases for us, especially with respect to processing thermal scattering data. I’m working through some of the issues, one of which is a sort-of bug on our part (now fixed in [this pull request](https://github.com/openmc-dev/openmc/pull/1877)) and one of which is a [bug in a dependency of NJOY21](https://github.com/njoy/lipservice/issues/31). I’d recommend sticking to NJOY2016 for now if you can. Based on my discussions with the NJOY folks, NJOY21 is not quite ready for prime time. Nevertheless, I’ll try to post an update here when we get to a point where all our tests work with NJOY21.

---

<div class="post-metadata">

**Author:** ![kevinm387](https://avatars.discourse-cdn.com/v4/letter/k/bcef8e/32.png) [@kevinm387](https://openmc.discourse.group/u/kevinm387)\
**Post date:** [September 3, 2021, 9:24pm UTC](https://openmc.discourse.group/t/command-njoy-returned-non-zero-exit-status-1/1405/3 "2021-09-03T21:24:56Z")

</div>

Ok thanks @paulromano, I really appreciate the info.
