Menu

error with example '05_Fermions_LongRange.py'

Users
Sen Niu
2018-11-05
2018-11-08
  • Sen Niu

    Sen Niu - 2018-11-05

    Hello,
    I have locally installed OSMPS 3.0 version on the CentOS system and succesfully run the example 01-04 in the Example folder. However, I failed to run the example 05_Fermions_LongRange.py and copied the error message as follows:

    [niusen@cluster Examples]$ python2 05_Fermions_LongRange.py
    valgrind --tool=memcheck --leak-check=yes --track-origins=yes --show-reachable=yes ./Execute_MPSMain TMP_05/LongRangeTunneling_L_10N5Main.nml 0 > memcheck_0.log 2>&1
    python deref.py ../memcheck_0.log
    Traceback (most recent call last):
    File "05_Fermions_LongRange.py", line 93, in <module>
    main(PostProcess=Post)
    File "05_Fermions_LongRange.py", line 67, in main
    mps.runMPS(MainFiles, Debug=True, RunDir='./')
    File "/home/niusen/anaconda2/lib/python2.7/site-packages/MPSPyLib/tools.py", line 363, in runMPS</module>

    + '.log'], cwd='MPSFortLib')
    

    File "/home/niusen/anaconda2/lib/python2.7/site-packages/MPSPyLib/tools.py", line 267, in execute
    return subprocess.call(tmp, shell=True, cwd=cwd)
    File "/home/niusen/anaconda2/lib/python2.7/subprocess.py", line 172, in call
    return Popen(popenargs, *kwargs).wait()
    File "/home/niusen/anaconda2/lib/python2.7/subprocess.py", line 394, in init
    errread, errwrite)
    File "/home/niusen/anaconda2/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory: 'MPSFortLib'

     
  • Matthew Jones

    Matthew Jones - 2018-11-05

    Hi Sen Niu,

    It looks like OpenMPS cannot find the associated Fortran library which is typically compiled and placed in the source directory.

    Could you list the commands you used to compile OpenMPS?

    Thanks,

     
  • Sen Niu

    Sen Niu - 2018-11-06

    Hi Matthew Jones,

    Thank you for your reply! I used the command 'python2 setup.py install' and then 'python2 BuildOSMPS.py --local='./'' to install OpenMPS.

     
  • Daniel Jaschke

    Daniel Jaschke - 2018-11-07

    Hello Sen Niu,

    In this example, we have the debugging option switched on, visible from the large output with valgrind etc. Therefore, we try to reference the MPSFortLib folder, which one cannot find if you are in the example folder. Check the arguments for the runMPS command in one of the other examples and also use it for the Fermions. Sorry for the inconvience, we should probably change this or point it out for future releases. But thank you very much for the feedback.

    Best regards,

    Daniel

     

    Last edit: Daniel Jaschke 2018-11-07
    • Sen Niu

      Sen Niu - 2018-11-08

      Hi Daniel Jaschke,

      Thank you very much! it works!

       

Log in to post a comment.

Monday.com Logo