New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDB2PQR Unable to load parameter file for forcefield #6
Comments
… out of folder. This resolves issue #604
Can you post the command you used to generate the error above? I'm trying to reproduce the problem. |
The problem is that the args.ff is a keyword (e.g. PARSE) and the code needs to find the file named PARSE.DAT and it looks in your path. One fix is to search for the file relative to the location of the python file looking for it. |
Got it. Is PR Electrostatics/apbs-pdb2pqr#605 the right way to fix this? I wonder if it would be better to create some type of path-like variable higher up in the code that could be modified via config files and argparse to include additional paths. In particular, I'm curious why this problem happens when running from the source distro and not after the code is built/installed. What is different about those two scenarios? Can the code be fixed a different way without making assumptions about the location of the DAT file relative to the source file? |
This issue was resolved a while ago (can't find specific commit number...). |
PDB2PQR fails to find the
dat
folder when running from outside the source folder with error:$ raise RuntimeError("Unable to load parameter file for forcefield %s" % args.ff)
$ RuntimeError: Unable to load parameter file for forcefield charmm
The text was updated successfully, but these errors were encountered: