Keck-DataReductionPipelines / MosfireDRP

http://keck-datareductionpipelines.github.io/MosfireDRP
10 stars 13 forks source link

Cannot install DRP on Mac osx-arm64 #153

Open palfeng opened 9 months ago

palfeng commented 9 months ago

Hello, I tried to install DRP on my new Mac following https://keck-datareductionpipelines.github.io/MosfireDRP/installing/#installing-python. I tried "conda create --no-default-packages -c astropy -n mospy python=3.6.3 astropy=2.0.3 ccdproc=1.3.0 ipython=6.2.1 numpy=1.13.3 scipy=1.0.0 PyQt=5.6.0" then I got the errors:

Channels:

LibMambaUnsatisfiableError: Encountered problems while solving:

Could not solve for environment specs The following packages are incompatible ├─ astropy 2.0.3 does not exist (perhaps a typo or a missing channel); ├─ ccdproc 1.3.0 is not installable because it requires │ └─ astroscrappy but there are no viable options │ ├─ astroscrappy 1.1.0 would require │ │ └─ python >=3.9,<3.10.0a0 _cpython, which does not exist (perhaps a missing channel); │ ├─ astroscrappy 1.1.0 would require │ │ └─ python >=3.10,<3.11.0a0 _cpython, which does not exist (perhaps a missing channel); │ └─ astroscrappy 1.1.0 would require │ └─ python >=3.8,<3.9.0a0 *_cpython, which does not exist (perhaps a missing channel); ├─ ipython 6.2.1 does not exist (perhaps a typo or a missing channel); ├─ numpy 1.13.3 does not exist (perhaps a typo or a missing channel); ├─ pyqt 5.6.0 does not exist (perhaps a typo or a missing channel); ├─ python 3.6.3 does not exist (perhaps a typo or a missing channel); └─ scipy 1.0.0** does not exist (perhaps a typo or a missing channel).

It shows many packages not found. Is it due to a missing channel? Thanks in advance for your help!

joshwalawender commented 9 months ago

Can you try creating the environment from the mospy.yaml file (conda env create -f mospy.yaml)?

Also, just so you know, we are winding down support of this DRP in favor of PypeIt. PypeIt has much more active development and support and has superior sky subtraction algorithms.

monodera commented 9 months ago

As far as I know, the minimum Python version that natively supports osx-arm64 (Apple Silicon) is 3.8 (and any prior versions are already end-of-life), so you may need to tweak the mospy.yaml file to satisfy the dependencies (I don't remember if I have ever managed to make it or not).

palfeng commented 8 months ago

Thanks Josh and monodera! Let me check Pypeit first.