unifhy-org / unifhy

A Unified Framework for Hydrology
https://unifhy-org.github.io/unifhy
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Unable to use `unifhy` on M2 Macbook Pro due to dependency issue in `cfunits` and `ctypes` #94

Open wknoben opened 3 months ago

wknoben commented 3 months ago

Right now I'm unable to get unifhy to work on my M2 Macbook Pro due to an underlying issue in cfunits > ctypes.util.find_library. See here: https://github.com/NCAS-CMS/cfunits/issues/53

I don't think there's much to be done about this right now, but it seemed worthwhile to document.

ThibHlln commented 3 months ago

Hi Wouter (@wknoben),

Thank you for documenting this. I will let the NCAS colleagues deal with the issue on the cfunits side, but if I were you I would try installing everything with conda (or even better mamba). This saved me from a lot of trouble in the past.

I cannot guarantee this will be your silver bullet, but this may very well be. :fingers-crossed:

Let me know if you need help with conda/mamba.

Cheers, Thibault

wknoben commented 3 months ago

Hi Thibault,

Thanks for checking in. Unfortunately conda installs seem to have a similar architecture-related (based on the arm64 in the error below) issue that (so far) I've been unable to debug:

> conda create -n unifhy
> conda activate unifhy
> conda install -c conda-forge unifhy

UnsatisfiableError: The following specifications were found to be incompatible with your system:

  - feature:/osx-arm64::__osx==14.2.1=0
  - unifhy -> numpy[version='>=1.16'] -> __osx[version='>=10.9']

Your installed version is: 14.2.1

Right now I don't see a clear path forward w.r.t. Apple silicon, so I'm hoping there will be a fix or workaround available for the pip install approach that led me to the cfunits issue.

ThibHlln commented 3 months ago

Ha, I see. That's disapppointing. :-/

Maybe @bnlawrence has a solution? Hi Bryan, sorry to bother you. Would you happen to have an Apple M2 MBP? If so, have you managed to install cf-python? If so, would you be able to give Wouter a lead here please? Thank you.

bnlawrence commented 3 months ago

I've commented on the cfunits issue and will follow up there - but the bottom line is that I have this working, but need to remember how I did it. I don't believe it was dramatic.

ThibHlln commented 3 months ago

Thank you very much Bryan.