Open similt opened 11 months ago
:wave: thanks for reaching out and creating an issue. These two settings are mutually exclusive -- you should only specify one of pseudo_library
and pseudo_dir
.
I am surprised that you encountered this error while completing the tuturials. Can you please provide a few more details about what you were doing when you encountered the error? Can you also provide the python traceback of the error, please? You can obtain this by running koopmans
with the --traceback
flag.
@elinscott Thanks for the quick response.
koopmans --traceback si.json
SyntaxWarning: "is not" with a literal. Did you mean "!="?
Traceback (most recent call last):
File "/project/k1641/koopmans/bin/koopmans", line 8, in
I don't have a pseudo_dir keyword in my si.json.
OK, strange. Can you please...
si.json
koopmans
you are using (you can get this via pip show koopmans
)Here is the output of pip show koopmans
Name: koopmans Version: 1.0.1 Summary: Koopmans spectral functional calculations with python and Quantum ESPRESSO Home-page: Author: Author-email: Edward Linscott edward.linscott@epfl.ch, Riccardo De Gennaro riccardo.degennaro@epfl.ch, Nicola Colonna nicola.colonna@psi.ch License: Location: /lustre2/project/k1641/koopmans/lib/python3.9/site-packages Editable project location: /lustre2/project/k1641/koopmans Requires: argparse, ase-koopmans, cloudpickle, deepdiff, iniconfig, matplotlib, numpy, pandas, pybtex, scikit-learn, scipy, spglib, toml, typing, upf-to-json Required-by:
I am struggling to reproduce the error. I assume you have installed koopmans
by cloning the git repo rather than via PyPI. If so, what is the hash of the most recent commit to koopmans
? You can get this by running git rev-parse HEAD
in /lustre2/project/k1641/koopmans
.
Yes. I cloned the git repo. Hash value is
bbefdfcda97ce005ebdd1341d5e9a8d0c77e9930
These are the loaded modules while installing:
module switch intel intel-classic/2021.4.0 module load cray-python/3.9.4.1
I cannot reproduce the error with the same input file and the same version of the code. Very mysterious! I would sincerely hope that the particular modules will not affect things.
Are you able to reproduce this issue on a different machine? You would not need to compile QE in order to reproduce the bug -- all you should need to do is clone the repo again, create a virtual environment, activate the virtual environment, pip install .
, and then try running koopmans si.json
.
Sorry for the hassle, but what is going wrong in this instance is not obvious!
@elinscott Thank you very much for your assistance. Our computational scientist, who is in charge of installing the software, has identified and resolved the issue. The problem was traced back to line #216 of 'src/koopmans/workflows/_workflow.py
Our installation path is “/project” is a symlink to “/lustre2/project”. The value of “pseudo_dir” after “.resolve()” is “/lustre2/project”, which is different from the one before “.resolve()”: “/project”. And that is why we got the error message “"pseudo_dir" and "pseudo_library" are conflicting; please do not provide "pseudo_dir"”.
OK, thanks for the information. I am reopening this issue (and giving it a more informative title) because I think it would be good for koopmans
to be robust to being run in a directory is a symlink, and when I have the time I will try and fix this.
I am running tutorial_1 job in koopman tutorial folder and getting error:
ValueError: "pseudo_dir" and "pseudo_library" are conflicting; please do not provide "pseudo_dir"
Do you know how to solve this issue?