-
Notifications
You must be signed in to change notification settings - Fork 23
Can not read cif file download from Crystallography Open Database without GUI #172
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
Comments
Quick updates: I find the following gsas-ii library to work: The detailed command I used is as follows:
and it can read the cif successfully. Thanks! |
The gsas2full installer provides Python 3.11, a retired branch of GSAS-II (master), but does have much older compiled binaries which seem to be able to run on more Linux systems. I'd rather you do not rely on older software. The gsas2main installer uses the current branch. I'd like to have that work for you. I suspect that the reason the CIF is not reading is that the binaries we ship with gsas2main are apparently not compatible with the version of glibc on your machine. The CIF reader needs to look up the space group information for your CIF, and I suspect that this is where the reader is failing. I did test your CIF with the latest GSAS-II on my Mac and it read fine, but failed when I removed the binaries. You can run meson to build binaries locally (see https://advancedphotonsource.github.io/GSAS-II-tutorials/compile.html) or you can see if the redhat set works for you (install this: https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/releases/download/v1.0.1/gsas2main-rhel-Latest-Linux-x86_64.sh). |
Another choice would be to use the gitcompile script (not yet documented). The basic steps for use of that:
|
following up: is this resolved or do you need some help? |
Here I want to report (possibly) a bug where the latest GSAS-II can not read cif file downloaded from Crystallography Open Database (http://www.crystallography.net/cod/cif) on Polaris ALCF machine. (for example, http://www.crystallography.net/cod/cif/1/00/14/1001460.cif). Detail is the minimal requirement to reproduce this problem. Since it is running on Polaris, we don't want to use GUI and want to fully work with cmd.
I first install gsas-ii with the following command:
I got the following outputs:
Then I notice there is a script in the installation directory,
RunGSASII.sh
, which says:and the content of
/lus/eagle/projects/RECUP/twang/g2full_04282025/GSAS-II/GSASII/G2.py
is basically adding the installation directory to the python path, so I did the following:Where
'/lus/eagle/projects/RECUP/twang/testbed/gsas_temp/1001460.cif'
is downloaded from Crystallography Open Database. Then I got the following error message:Since it first report error on not finding config module, I also did
pip install config
inside this environment and rerun that python command, but I still get the same error.Meanwhile, as mentioned in https://github.com/AdvancedPhotonSource/GSAS-II/issues/165, gsas-ii is supposed to use PyCIFRW to read cif file, so I also did the following to test if PyCIFRW could read the cif file correctly:
and then I can get good result, part of the output is shown below:
and you can see PyCIFRW can read that cif correctly.
So the question I want to ask is, is there any way I can solve this issue? Thanks!
The text was updated successfully, but these errors were encountered: