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
Error installing clawpack #203
Comments
There has been an issue with the first method you tried. Seeing as you are on a mac the second problem has to do with a weird incompatibility between clang and Python that causes an error to occur when compiling a part of PyClaw. To get around these problems I would suggest the following:
I think this should work but I may have gotten a detail wrong so try it out and let us know. |
Thanks for the prompt reply, just tried that and unfortunately the same error from the tar file method showed up. |
Did all those steps work without error? It's important that at least the pyclaw repository is checked out to the master version. |
every step except the "pip install -e ." command worked |
There should be a log file that was created, can you attach that? |
The best I can tell is that anaconda seems to have added two arguments:
These are GCC and x86 specific commands. We unfortunately do not have control over what gets compiled on the C side of things. The best thing I can think of doing is either trying to explicitly use GCC (install it via homebrew and make sure that the compiler is first on the path). This may not work though given that you are running through anaconda. Just to make sure, you are not on an M1 mac right? |
I'll try that, thanks! I am not on an M1 mac. |
Let us know if it worked! |
You should be able to avoid the first error above by using this command line:
|
My latest problem when trying to make a docker image for v5.8.2rc: I can make an image without clawpack and then when I start a container and try to use this command:
it clones everything fine but then dies with errors similar to those shown below. The geoclaw examples compile and run just fine (after I set
|
Looks like some weird incompatibility between compilers as |
Maybe in f2py? |
That all being said, not finding this library is a bit crazy given the importance and low-level aspect of the library. |
I managed to get this to install fine on m1 macs outside of conda. (Btw, I have started the process adding clawpack to conda-forge: see #210.) However, it is a little tricky to get other things to work smoothy like h5py, etc. Eventually I got stuck on an error related to PETSC it seems:
Initially I thought this might be due to MPI issues, note
fyi fortran compiler:
|
To install: Please give it a try and test it; please and do let me know if anything could be improved. |
I am a bit curious what the issue is as I do have an M1 and have not seen any issues in direct installation beyond a testing bug. |
Do you get this error as well? Or do you have a custom installation of petsc/petsc4py?
|
No, the only errors I get are of the form
This is of course not an issue and just implies we need to be more careful about testing tolerances. PETSc works fine for me using OpenMPI (I have not tested mpich). I should mention though that I am not using anything from anaconda in my setup with a preference towards homebrew and strictly what is available via pip with the Python form homebrew. |
Interesting for two reasons:
However, I now can say that the clawpack from conda-forge seems to be working correctly even on M1 Mac. Again, only mpich for now. In conda-forge, petsc4py isn't available for M1 Macs so I disabled it and included the appropriate compilers in case someone does I will try to expand the testing, potentially running the whole suite when I manage to have more time to work through the code :) Feel free to join me as maintainers of the conda-forge redistribution of clawpack. |
Dear clawpack Team,
If I follow your instructions on GitHub (https://github.com/clawpack/clawpack#installing-the-python-clawpack-tools) using
If I follow your installation guide from https://www.clawpack.org/installing_pip.html#quick-installation-of-all-packages-with-pip with the command However, a new folder src is now visible which also has two log files included (cf. log.md (renamed from log.err due to GitHub not supporting the other file type) and install.log). Could you give me a hint what might go wrong? Best regards Edit: Check your .bashrc and make sure you do not import any intel modules/ compilers by default. |
I tried installing clawpack using the pip command: pip install --src=$HOME/clawpack_src --user -e
git+https://github.com/clawpack/clawpack.git@v5.8.0#egg=clawpack-v5.8.0
and I get the attached error, what do I do?
When I tried installing by using the tar file method, I get the following:
I want to use geoclaw so I cannot install using the conda method.
Not sure what to do here.
The text was updated successfully, but these errors were encountered: