INSTALL FLUDAG: pyne issue

44 views
Skip to first unread message

David Breitenmoser

unread,
Jun 14, 2021, 11:01:37 AM6/14/21
to DAGMC Users and Collaborators

Dear community

My name is David and I’m a novice in DAGMC. At the moment, I try to install FLUDAG/DAGMC on my local Windows subsystem for Linux (WSL) system, which is based on Ubuntu 18.04 TLS. I followed strictly the installation guide on https://svalinn.github.io/DAGMC/install/ and was successful to install the dependences (HDF5 and MOAB). However, during the configuration stage of fludag (“Configure FluDAG”), I’ve encountered an issue, which I was not able to solve so far. After creating the folders and setting the path variables, as described on the website, I’ve entered the following command, which is stated on the website:

 

$ cmake ../src -DMOAB_DIR=$HOME/dagmc_bld/MOAB \

               -DBUILD_FLUKA=ON \

               -DFLUKA_DIR=$FLUPRO \

               -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH

 

I’ve printed the output of the command to the txt file log_DAGMC.txt, which is attached to this E-Mail. As you can see, the configuration was successful with one exception, i.e. there seems to be a problem with PyNE:

PyNE AMALGAMATION FAILED: 127

In addition, there were also some error messages printed out in the command prompt (cf. screen-shot “error_messages.PNG” attached to this e-mail). These error messages indicate in my opinion that the source “pyne.cpp” is somehow not correctly downloaded. Did I miss something? Do I have to install PyNE manually as an additional dependency? Do you have any suggestions how to solve this issue with PyNE?

 

Thanks for your support,

Best regards,

David


error_messages.PNG
log_DAGMC.txt

Lucas Jacobson

unread,
Jun 14, 2021, 12:00:11 PM6/14/21
to DAGMC Users and Collaborators
Hi David,

Can you run the command "git submodule update --init --recursive" in the DAGMC directory and try again? This command downloads the correct version of pyne and puts it in the right place. This command is supposed to be run automatically when running CMake, but for some reason it didn't run for you.

Thanks,
Lucas

David Breitenmoser

unread,
Jun 14, 2021, 3:32:28 PM6/14/21
to DAGMC Users and Collaborators
Hi Lucas

Thanks for your fast reply and support. I've figured it out in the last hour. The problem was that on the WSL by default only python3 was installed. It seems that cmake needs the python command and is not able to use python3. After I've installed the "normal" python, the DAGMC building run smoothly through. An alternative would maybe be to add and alias, e.g. alias python='python3', but I didn't test that. Anyways, thanks for your input. 

Best,
David

Lucas Jacobson

unread,
Jun 14, 2021, 3:57:19 PM6/14/21
to DAGMC Users and Collaborators
Not sure which distro you're using on WSL, but if you're using Ubuntu 20.04, you should be able to run `sudo apt install python-is-python3`, and that will result in the "python" command automatically redirecting to python3.

David Breitenmoser

unread,
Jun 15, 2021, 10:06:41 AM6/15/21
to DAGMC Users and Collaborators
I see, thanks for your input. There seems to be many ways to solve the described issue. Anyways, I managed to install DAGMC, so I close this session here. 

Best,
David

Reply all
Reply to author
Forward
0 new messages