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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>
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'
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,
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.
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
Hi Daniel Jaschke,
Thank you very much! it works!