-
Notifications
You must be signed in to change notification settings - Fork 122
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
OS/Python version combination (in connection to pip install quippy-ase error #623) #624
Comments
Hi, I'm encountering the same issue, trying to
It looks to me the detection of the host machine cpu architecture is incorrect, it should be arm64. Perhaps that is causing the failure to find the correct compiler? |
Thanks for reporting. I've reproduced locally on a macos-14 arm64 Mac (although in my case the architecture is correctly detected so this is not the only problem). Note this is actually a failure to install f90wrap, not quippy-ase, but I appreciate that one leads to the other. I've opened an issued at jameskermode/f90wrap#202, which also links to some upstream issues in the Meson build system that f90wrap uses. I think we'll need to wait for those to be resolved before we can fix this. |
All right, thanks for the quick reply and the clarification! I actually think I may have found a workaround: by installing f90wrap first with conda:
I can successfully execute |
That's useful to know, if you are able to used conda that should work fine. |
Is this tutorial given on this page supposed to run merely after installing, or do I need to separately download parameters sets etc? EDIT: downloading the relevant GAP model file gp_iter6_sparse9k.xml and updating the path to it avoids the original
error but now my Jupyter kernel simply crashes when I try to create the potential object. So probably this conda workaround does not in fact work... With a pip installation, are there any tests I can run? |
Seg fault is likely due to insufficient stack space. Try again after running If you clone the repo after doing the pip install you can run the tests via cd QUIP/tests
HAVE_GAP=1 python run_all.py |
I'm not sure if such a stack limit is really relevant for Python? I regularly run very heavy calculations in Jupyter without any issue, this is probably something else. I cloned the repository and tried to run the tests, and they do fail but with what appears to me to be issues related to Python version or text encodings: |
Ah-ha, trying to run the same code in the terminal prints an error: It seems to be the same problem as in issue #381 , which appears to be still unresolved? |
Stack limit is relevant as QUIP/GAP is written in Fortran and you are calling Fortran functions from Python/Jupyter. Please try to run the I agree the other errors you put in the pastebin link are unrelated and are perhaps due to changes in latest macOS which we have not yet tested on yet. |
I tried but no difference. I really don't think this is anything to do with the stack limit but rather errors that are not shown in the Jupyter notebook, which I can see when running in the terminal. I now tried to copy the .xml parameter file into the same folder to avoid the fchdir error, and running the script from terminal, and get a new error:
Are my paths not set correctly or something like that? |
Key part of this error is You also need to copy the sparseX file into the same directory as the XML. |
Is there an installation instruction somewhere that I have missed? I'm simply trying to run the most basic ASE tutorial on the quippy site, I usually would expect such things to work "out of the box"... I have only the .bz2 version of that file, but having that in the same directory does not help. |
Okay, I found a way to decompress that file (standard macOS archive utility does not do it!), and have placed it in the same directory. Now I am finally able to run the tutorial. I really think the tutorials need to be revised to make clear what is necessary for a novice user to run them! |
And all of this works terribly with Jupyter – no stack traces are printed, things just die silently. I'm sorry to say this is borderline unusable in a typical modern scientific computing Python workflow... |
Thank you for the feedback. That tutorial could certainly use an update, for which a pull request would be welcomed. Meanwhile, you could also look at the QUIP overview tutorial which has been more recently written and you may find easier to follow. Relatedly, a tutorial-style overview article on fitting GAP potentials has just come out in J. Chem. Phys this week. EDIT: I realise this is the tutorial you were talking about already... in which case I stand by the comment about gratefully accepting pull requests with corrections. |
Looks like it was supposed to download all the data automatically, the problem is that this data download link is dead https://www.repository.cam.ac.uk/bitstream/handle/1810/317974/Si_PRX_GAP.zip. We'll try to update and fix that at least. |
I just clicked on your link and it downloaded fine. |
It's now a HTTP redirect, which I guess doesn't work with curl on the command line. |
Yup, welcome to the pile of crud that a Jupyter becomes when anything goes wrong underneath. Great when it works, total quagmire when it doesn't. |
This works, with the if [[ ! -f gp_iter6_sparse9k.xml ]]; then
curl -L https://www.repository.cam.ac.uk/bitstream/handle/1810/317974/Si_PRX_GAP.zip -o Si_PRX_GAP.zip;
unzip Si_PRX_GAP.zip
fi |
#623
The text was updated successfully, but these errors were encountered: