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

state of osx-arm64 #2130

Closed
ReimarBauer opened this issue Jan 4, 2024 · 13 comments · Fixed by #2346
Closed

state of osx-arm64 #2130

ReimarBauer opened this issue Jan 4, 2024 · 13 comments · Fixed by #2346
Assignees
Labels
documentation Improvements or additions to documentation packaging
Milestone

Comments

@ReimarBauer
Copy link
Member

ReimarBauer commented Jan 4, 2024

We got a request by a participant of the CAESAR campaign, Feb 20-April 7, if MSS can be installed on an M2 apple.

Currently this is not possible. I suggested to use our docker image, https://mss.readthedocs.io/en/stable/installation.html#docker-instance

Recently basemap with 1.3.9 was added for osx-arm64.

We have to review what blocks us to use a ARM OSX Migrator for our package, similiar to conda-forge/basemap-feedstock#123

@ReimarBauer ReimarBauer added this to the 9.0.0 milestone Jan 4, 2024
@ReimarBauer
Copy link
Member Author

ReimarBauer commented Jan 5, 2024

The dockerimage has currently INFO: MSS Version: 8.3.2

and was updated to 8.3.3

@ReimarBauer
Copy link
Member Author

ReimarBauer commented Feb 13, 2024

@ReimarBauer
Copy link
Member Author

looks like we can cross compile this conda-forge/mss-feedstock#168
The question is how can we check it.

@ReimarBauer ReimarBauer self-assigned this Feb 13, 2024
@ReimarBauer
Copy link
Member Author

@ReimarBauer
Copy link
Member Author

ReimarBauer commented Feb 15, 2024

Looking on https://anaconda.org/conda-forge/pyqt/files?page=4

the first osx-arm64 is a pyqt-5.15.4 version.

Version 8.X.X can't be used with this type of processor because we need there a pinning of pyqt >=5, <5.13
This changes with version 9.

@yu71ng
Copy link

yu71ng commented Feb 19, 2024

Hello,
my working laptop is also with M2 apple and I've encountered the same issue. We will have a flight campaign this summer (ORCESTRA campaign), where we would like to use MSS. Do you have a rough estimate, when this issue could be solved?

@ReimarBauer
Copy link
Member Author

Hi @yu71ng
we plan to release 9.0.0 in the next weeks.
There are a few issues remaining https://github.com/Open-MSS/MSS/milestone/93

Help is welcome :)

@yu71ng
Copy link

yu71ng commented Feb 20, 2024

Maybe for an in-between solution, it came to my attention to do as follows: https://stackoverflow.com/questions/71515117/how-to-set-up-a-conda-osx-64-environment-on-arm-mac

Just change the setting in the mss-environment before installing the mss software:

conda config --env --set subdir osx-64

With that, I can run mss 8.X.X. on a M2 Apple :)

@ReimarBauer
Copy link
Member Author

Great @yu71ng , thx to letting us know :)

@ReimarBauer ReimarBauer added the documentation Improvements or additions to documentation label Apr 18, 2024
@ReimarBauer ReimarBauer modified the milestones: 9.0.0, 8.3.5 May 8, 2024
@ReimarBauer ReimarBauer linked a pull request May 8, 2024 that will close this issue
@ReimarBauer
Copy link
Member Author

After the release of 8.3.5 and its cross compilation we can verify if missing packages are available.

@ccostanza10
Copy link

Hi there! I'm in the process of trying to install MSS on my Apple M2 chip. Based on the suggestions from @yu71ng, I tried the following

conda config --env --set subdir osx-64
conda config --add channels conda-forge
conda create -n mssenv
conda activate mssenv
conda install mss=9.3.0 python --solver=libmamba

Then I'm getting the following error

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: | menuinst Exception
Traceback (most recent call last):
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/conda/gateways/disk/create.py", line 259, in make_menu
    menuinst.install(
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 170, in _install_adapter
    install(metadata, target_prefix=prefix, **kwargs)
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/menuinst/utils.py", line 426, in wrapper_elevate
    return func(
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/menuinst/api.py", line 62, in install
    paths += menu_item.create()
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/menuinst/platforms/osx.py", line 79, in create
    self._copy_icon()
  File "/Users/costanza/miniforge3/lib/python3.10/site-packages/menuinst/platforms/osx.py", line 113, in _copy_icon
    shutil.copy(icon, self.location / "Contents" / "Resources")
  File "/Users/costanza/miniforge3/lib/python3.10/shutil.py", line 417, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/Users/costanza/miniforge3/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/costanza/miniforge3/envs/mssenv/Menu/msui.icndone

I'm tried to install a few different ways with mamba or conda now, so maybe I need to do full clean our of the mssenv dir on my system before I try to install again?

@ReimarBauer
Copy link
Member Author

Hi @ccostanza10
this issue is closed because we updated the package and the installation description. We will do for version 10 another update to the installation description because we got aware that the packages of conda-forge and anacondas default are mismatching.
https://conda-forge.org/docs/user/transitioning_from_defaults/#a-historical-note

I do have a M4 myself and for me the manual installation works, but I also have no anaconda license or anaconda pre installed. I am not sure if conda config --env --set subdir osx-64 makes now problems.

Because of the anaconda defaults and conda-forge mismatch and because of the features of pixi for development we will change to a pixi installation for version 10.

This gets into the documentation in the next release after we merged

https://github.com/Open-MSS/MSS/pull/2632/files#diff-d9b149498982c0663c3b7170398773361ed5678f1a627e9c2fd8d2c955c563db

please try the pixi installation described there.

@ccostanza10
Copy link

Hey @ReimarBauer!

Right, I tried the manual install with miniforge3 first, and I got the same error. That I listed in the previous mesage.

I did just try the pixi global install mss, and that worked without error! Excellent! Thanks for your help in figuring this out. Looking forward to testing out MSS.

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

Successfully merging a pull request may close this issue.

3 participants