Menu

#49 Issue with "python BuildOSMPS.py"

1.0
open
2020-07-09
2020-06-23
No

Hi,

I'm trying to install OpenMPS on a MacOS. I have python 3.7.6.

When running

conda activate openmps && \
python setup.py install && \
python BuildOSMPS.py --prefix=$CONDA_PREFIX/bin \
                     --option=FC:$CONDA_PREFIX/bin/gfortran \
                     --option=INCFLAGS:-I$CONDA_PREFIX/include \
                     --option=LIBFLAGS:-L$CONDA_PREFIX/lib

I get this error message in the terminal:

Fatal Error: Can't open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
make[1]: [/Users/vanoel/Desktop/openmps/MPSFortLib/Mods/Tensors.o] Error 1
make:
[moddir_obj] Error 2
mv MPSFortLib/make.log .

I've been looking through this ticket: https://sourceforge.net/p/openmps/tickets/42/ because the same problem appeared here. I have tried running

conda activate openmps && \
rm -rf build && python BuildOSMPS.py --clean && \
python setup.py install && \
python BuildOSMPS.py --prefix=$CONDA_PREFIX/bin \
                     --option=FC:$CONDA_PREFIX/bin/gfortran \
                     --option=INCFLAGS:-I$CONDA_PREFIX/include \
                     --option=LIBFLAGS:-L$CONDA_PREFIX/lib

as suggested in the above ticket, but I still got the same error message. I'm attaching my make.log file.

Thanks!

1 Attachments

Discussion

  • Viktoria Noel

    Viktoria Noel - 2020-06-23

    Further comments: initially I had error messages related to Numpy. Within the openmps environment I uninstalled and reinstalled Numpy through pip, and then I got an error message about not having Scipy. I installed Scipy through pip and that one was alright as well, then I received the error message outlined above. Not sure if it's relevant at all but I don't understand these technicalities very much, I just want to get some phase diagrams of topological insulators. Thank you for anyone's help in advance!

     
  • Matthew Jones

    Matthew Jones - 2020-07-07

    Hi Viktoria,

    Thank you very much for your detailed issue report!
    There was a bug in the scripts creating a virtual environment. Essentially, Apple changed the default shell to zsh, conda grabs the wrong version of gfortran, and NumPy isn't appropriately linked to the right BLAS.

    I have updated all the scripts and the environment specification files. All of which have been tested under the latest version of macOS (Catalina).

    Please have a look at the new instructions, and let us know what you think.

     
  • Matthew Jones

    Matthew Jones - 2020-07-07
    • assigned_to: Matthew Jones
     
  • Matthew Jones

    Matthew Jones - 2020-07-07

    Updating issue owner.

     
  • Viktoria Noel

    Viktoria Noel - 2020-07-09

    It in fact works, I successfully installed it and also ran one of the example files. (I did change zsh back to bash originally because I just couldn't get anything done...)

    Thank you very much!

     

Log in to post a comment.