Skip to content

Installation script does not define PyNE PYTHON path and other errors probably caused by conflicts in versions #64

@ahmadMIbrahim

Description

@ahmadMIbrahim

I installed PyNE using the ubuntu install script, https://github.com/pyne/install_scripts/, but all the tests in the travis-run-tests.sh script failed because the PyNE PYTHONPATH is not defined anywhere in the scripts and other causes. I added some paths to the PYTHONPATH for the vendor, for PyNE, for MOAB, and for different installation of OpenMC. Some tests pass but other fail. Until now, test_r2s.py is always failing. It might be because of some conflict in the version of OpenMC. I am getting warnings such as:
"~python3.7/site-packages/pyne/openmc_utils.py:35: UserWarning: The openmc (OpenMC Python API) could not be imported. Some aspects of the openmc module may be incomplete."
It is giving me this error when I add the OpenMC API (~opt/openmc/openmc) that gets installed with running the original installation script, ubuntu.sh to the PYTHONPATH. When I add the Anaconda version that I had installed earlier following the OpenMC instructions, I get this error:

======================================================================
ERROR: Failure: ImportError (

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  • The Python version is: Python3.8 from "/usr/bin/python3"
  • The NumPy version is: "1.22.0"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'
)

I also think the test itself might also be outdated. I also get errors like:
"FileNotFoundError: [Errno 2] No such file or directory: ~pyne/pyne-repo/tests/files_test_r2s/r2s_examples/openmc_r2s/alara_inp."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions