Closed colinpalmer closed 1 year ago
Thanks for reporting this. Servalcat 0.4.38 prints the raw output when it fails to check the version. I would appreciate it if you could do some tests.
This seems to work nicely. Thanks for fixing it so quickly!
We've been seeing a problem trying to run Servalcat from some CCP-EM tools, for example:
I see that you've already fixed the UnboundLocalError but the underlying problem is still occurring, i.e. it's failing to determine the refmac version and raising an error.
In my case I've traced it to a bad CCP4 environment setup - somehow my CCP4 environment variables are getting unset, so the
refmac5
command can still be found but it fails with an error:Obviously this is not really Servalcat's problem! But it would be helpful to try to identify this kind of error and give the user an indication of what the problem might be. For example, maybe the
check_version()
function inservalcat/utils/refmac.py
could checkif ver == ()
before returning, and if so, print the refmac stdout and stderr to the log? Or even better if it could identify this specific problem and warn the user that their CCP4 environment is not set up properly.