Skip to content
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

WRF-Python Install - Mac M3 #235

Open
wreed1989 opened this issue Apr 16, 2024 · 8 comments
Open

WRF-Python Install - Mac M3 #235

wreed1989 opened this issue Apr 16, 2024 · 8 comments
Assignees

Comments

@wreed1989
Copy link

Hello!

I'm wanting to set-up and run WRF on my M3 (if possible) and reading through the documentation it sounds like the easiest way to do this is via 'conda forge'. However, I'm running into an issue when I attempt to install the program (see below).

Is the platform not quite suitable with an M3 chip or are there additional instructions that need to be done to ensure the package and its dependencies are installed appropriately?

I appreciate the assistance!

###############################################################################################
(WRF-Python) Billiam@Williams-MacBook-Pro ~ % conda install -c conda-forge wrf-python
Channels:

  • conda-forge
  • defaults
    Platform: osx-arm64
    Collecting package metadata (repodata.json): done
    Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • wrf-python

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.
###############################################################################################

@erogluorhan
Copy link
Collaborator

Hi, thanks very much for reaching out! Currently, WRF-Python shouldn't have support for Apple's ARM-based chips (M1-3), but we'd like to look into this as soon as we can. I am assigning this to myself and will keep you updated.

@erogluorhan erogluorhan self-assigned this Apr 25, 2024
@phalucy
Copy link

phalucy commented Apr 28, 2024

you can install via source code. I have successfully installed it.

@wreed1989
Copy link
Author

Did you happen to create a workflow when you did that? I'm guessing not but if you did, I'd love to see it to help me install it.

@phalucy
Copy link

phalucy commented Apr 29, 2024

Sorry, I didn't. I just followed the steps showed in the online document using gfortran/gcc.

Only one issue should be aware. Although I successfully installed the wrf-python with openmpi option on my M3 macbook pro and most functions works fine , but it fails when I tried to use mpi functions. I'm not familiar with the options/compilers, but it maybe related to the M series chips (arm64) only allow mcmodel=small.

@erogluorhan
Copy link
Collaborator

erogluorhan commented May 8, 2024

@wreed1989 , please see this from our team to get a working source-code build for yourself. If you encounter issues, we are here for help!

FYI: We will be looking into creating a conda release for this soon so that you can install the package from conda-forge, too, in the future.

@wreed1989
Copy link
Author

@erogluorhan Appreciate you sending that over. I'm a little unfamiliar with installing via source code so I'll likely have to wait until the conda-forge option is available - or until I can track down additional instructions on how to install via source code.

I'm looking forward to the conda-forge release!

@erogluorhan
Copy link
Collaborator

Thanks @wreed1989 ! We are currently working on the conda release and hoping to get it soon!

@wreed1989
Copy link
Author

Please let me know when it's ready to roll out! I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants