unable to convert ACE file ti HDF5 with openmc 0.10

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 really** wondering if t****hat is wise.

Regards

Tarek El Bardouni

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

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