# unable to convert ACE file ti HDF5 with openmc 0.10

**URL:** <https://openmc.discourse.group/t/unable-to-convert-ace-file-ti-hdf5-with-openmc-0-10/306>\
**Category:** User Support\
**Created:** [January 18, 2018, 9:30pm UTC](https://openmc.discourse.group/t/unable-to-convert-ace-file-ti-hdf5-with-openmc-0-10/306 "2018-01-18T21:30:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tarek\_El\_Bardouni](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tarek\_El\_Bardouni](https://openmc.discourse.group/u/Tarek_El_Bardouni)\
**Post date:** [January 18, 2018, 9:30pm UTC](https://openmc.discourse.group/t/unable-to-convert-ace-file-ti-hdf5-with-openmc-0-10/306/1 "2018-01-18T21:30:28Z")

</div>

Dear openmc group,  
First congratulations for all to see openmc-0.10 released.

I recently installed this release. It works fine with nndc\_hdf5 files created by openmc-0.9.

But when I tried to get nndc data the python script openmc-ace-to-hdf5 fails with the following error message:

Converting 89225.71c (ACE) to Ac225 (HDF5)  
Traceback (most recent call last):  
File “/usr/local/bin/openmc-ace-to-hdf5”, line 158, in   
neutron.export\_to\_hdf5(outfile, ‘w’, libver=args.libver)  
TypeError: export\_to\_hdf5() got an unexpected keyword argument ‘libver’

I bypassed the problem by suppressing temporarily the libver=args.libver from line 158

The same problem occured with thermal data converting:

Converting Al.71t (ACE) to c\_Al27 (HDF5)  
Traceback (most recent call last):  
File “/usr/local/bin/openmc-ace-to-hdf5”, line 196, in   
thermal.export\_to\_hdf5(outfile, ‘w’, libver=args.libver)  
TypeError: export\_to\_hdf5() got an unexpected keyword argument ‘libver’

Also suppressing libver=args.libver from line 196 solves the problem.

I\*\*' **m re** ally\*\* **wondering**  **if**  **t\*\*\*\*hat**  **is**  **wise.**

Regards

Tarek El Bardouni

---

<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:** [January 22, 2018, 3:46pm UTC](https://openmc.discourse.group/t/unable-to-convert-ace-file-ti-hdf5-with-openmc-0-10/306/2 "2018-01-22T15:46:38Z")

</div>

Hi Tarek,

The script you are running, openmc-ace-to-hdf5, relies on importing the openmc Python module. I suspect that Python module is either not installed or is installed in a location where it is not being properly imported. Try opening a Python interactive prompt, importing openmc, and checking the variable openmc. **version**. For example, here is what I get when I do that on my Linux machine:

$ python  
Python 3.6.2 (default, Sep 29 2017, 12:52:47)  
[GCC 6.3.0 20170406] on linux  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import openmc  
> > > openmc. **version**  
> > > ‘0.10.0’

If you see that it says 0.9.0, this means the Python module was not updated when you installed version 0.10.

Best,  
Paul

---

<div class="post-metadata">

**Author:** ![Tarek\_El\_Bardouni](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tarek\_El\_Bardouni](https://openmc.discourse.group/u/Tarek_El_Bardouni)\
**Post date:** [January 26, 2018, 12:58am UTC](https://openmc.discourse.group/t/unable-to-convert-ace-file-ti-hdf5-with-openmc-0-10/306/3 "2018-01-26T00:58:48Z")

</div>

Yes Paul I found version 0.9.0.  
I reinstall openmc after cleaning /usr/local/bin/openmc\*.  
I detected the following error during Install the project:

– Installing: /usr/local/share/doc/openmc/copyright  
Traceback (most recent call last):  
File “setup.py”, line 7, in   
from setuptools import setup, find\_packages  
ImportError: No module named setuptools

This was solved by installing python-setuptools.

But still I have to delete the following directory /usr/local/lib/python2.7/dist-packages/openmc from previous install.

Now things work perfectly. Thanks Paul.

Best,  
Tarek
