Openmc cross Sections configuratios shows cannot import name 'download' from 'utils'

hello, I am trying to configure cross section by running the script from

ImportError: cannot import name ‘download’ from ‘utils’ error

but the utils package is there, i installed it with

pip install python-utils

Hi Yahya

This is referring to the utils.py script in the OpenMC data repository

https://github.com/openmc-dev/data/blob/master/utils.py

Do you have both the utils.py and the convert_nndc71.py scripts together in the same directory?

I just downloaded the all the scripts in the data repository when I use it using git clone.

I’m keen to make a python package for the data sometime in the future, which could help avoid these sorts of errors.

All the best

Jon

1 Like

Thanks Jon, It’s solved