Dear Exciting Community,
I have recently installed this code in my university cluster through the help of system admin. And I was facing a problem while following a official tutorial. I am pasting below my system admin’s reply where he expresses some questions when I asked him about this issue, can somebody please provide guidance.
login-1-929 diamond-relax >: PLOT-maxforce.py rundir-00/
Traceback (most recent call last):
File “/opt/site/apps/exciting/mpi/20210707/exciting/tools/PLOT-maxforce.py”, line 8, in
from pylab import *
ImportError: No module named pylab
login-1-930 diamond-relax >:
This is happening because python script PLOT-maxforce.pynhas the following as the interpreter:
This should be:
What is happening here is that no matter what python you have in your environment, this script will use /usr/bin/python which is and old version of python used by the operating system, We do not make any changes to this python since thins in the operating system can break. Looking through the python scripts in the directory:
To add to this confusion this directory contain 73 scripts that use !#/usr/bin/python and 23 scripts that correctly use !#/usr/bin/env python. At this point I have to ask how important is this software to your work. The likely outcome is you will spend a lot of time testing and finding errors. These will need to be reported to the developers to get fixed.