Hi everyone,
I am using exciting oxygen on Ubuntu 20.04.1. The exciting package calculations seem to work fine, however when trying to plot the calculations with the python scripts in $EXCITINGROOT/tools I get errors. For example, following the q-dependent TDDFT tutorial for Ag lead to the calculation finishing fine.
Using the command " PLOT-loss-function.py --kernel LOSS_FXCRPA_QMT002.OUT LOSS_NLF_FXCRPA_QMT002.OUT "
lead to the following error:
File $EXCITINGROOT/tools/PLOT-loss-function.py, line 47 print "Error: file "s\" doesn't exist!\n"(i)
^
SyntaxError: invalid syntax
This was due to the wrong syntax for the print function, so I placed all parentheses on all print functions, and changed the top of the file to #!/usr/bin/python3
However, then a different error appeared:
Traceback (most recent call last):
File “$EXCITINGROOT/Tools/PLOT-loss-function.py”, line 29, in
rundir = shell_value(‘EXCITINGRUNDIR’,ev_list,current)[0]
File “$EXCITINGROOT/tools/PLOT-loss-function.py”, line 21, in shell_value
if ( vlist[i] == variable ): v = os.environ[variable] ; e = True ; break
TypeError: ‘KeysView’ object is not subscriptable
I’m thinking that this may be due to my python version (3.8.10) and the scripts in #EXCTINGROOT/tools. How can I fix this? (would prefer not having to write all the scripts from scratch)
Cheers,
Luigi