Magic/Mojo on MacOS 12 not supported?

Just starting to play around with Mojo. Following the instructions in the docs on MacOS 12 on an M1 macbook I am getting this error on running magic shell about MacOS 13 being required. I can't find any docs suggesting MacOS 12 is not supported. Googling that error, I can't find anything relevant. So before I go to the trouble of updating the OS I thought I'd ask whether anyone else has experienced this.
$ magic shell
× The current system has a mismatching virtual package. The project requires '__osx' to be at least version '13.0' but the system has version '12.4'
$ magic shell
× The current system has a mismatching virtual package. The project requires '__osx' to be at least version '13.0' but the system has version '12.4'
8 Replies
Darin Simmons
Darin Simmons7d ago
When you say the docs. Are you referring to the getting-started ? When you magic --version are you getting 0.3.1 ? There was an issue - and I'm wondering if it's related - about magic, SSL certificates, mac0S, and the way some upstream developers were doing things. The fix for that was to revert the magic version command . I tried searching Discord for the details but got a bunch of noisy results. You can try to version 0.3.0 and see if that works. Also, there's an issue template for magic in the mojo repo
Caroline
Caroline7d ago
@tohmly can you share what prints when you run magic info?
tohmly
tohmly7d ago
Yes, I am following the getting-started guide.
$ magic info
Pixi version: 0.29.0
Platform: osx-arm64
Virtual packages: __unix=0=0
: __osx=12.4=0
: __archspec=1=m1
Cache dir: /Users/tom/Library/Caches/rattler/cache
Auth storage: /Users/tom/.rattler/credentials.json
Config locations: No config files found

Project
------------
Name: hello-world
Version: 0.1.0
Manifest file: /Users/tom/src/mojo-experiment/hello-world/mojoproject.toml
Last updated: 15-10-2024 21:31:01

Environments
------------
Environment: default
Features: default
Channels: conda-forge, https://conda.modular.com/max
Dependency count: 1
Dependencies: max
Target platforms: osx-arm64
$ magic info
Pixi version: 0.29.0
Platform: osx-arm64
Virtual packages: __unix=0=0
: __osx=12.4=0
: __archspec=1=m1
Cache dir: /Users/tom/Library/Caches/rattler/cache
Auth storage: /Users/tom/.rattler/credentials.json
Config locations: No config files found

Project
------------
Name: hello-world
Version: 0.1.0
Manifest file: /Users/tom/src/mojo-experiment/hello-world/mojoproject.toml
Last updated: 15-10-2024 21:31:01

Environments
------------
Environment: default
Features: default
Channels: conda-forge, https://conda.modular.com/max
Dependency count: 1
Dependencies: max
Target platforms: osx-arm64
Caroline
Caroline7d ago
Are you following this doc? https://docs.modular.com/magic/ (there's also this one, so want to make sure I'm following along via the right doc)
Get started with Magic | Modular Docs
Magic is a package manager and virtual environment manager for any language,
tohmly
tohmly7d ago
Get started with Mojo🔥 | Modular Docs
Install Mojo now and start developing
tohmly
tohmly7d ago
I just tried initialising a simpler project with magic init my-project (i.e. without --format mojoproject ) and the error is the same I get the same error on magic versions 0.3.0 and 0.2.3 (initialising a new project each time)
Caroline
Caroline7d ago
sorry just seeing this now! will get back to you shortly okay so adding the following to your mojoproject.toml file should resolve the error:
# Default system requirements for macOS

[system-requirements]

macos = "12.0"
# Default system requirements for macOS

[system-requirements]

macos = "12.0"
(Magic is built on Pixi, which has a default requirement of 13.0, so that's why this error is happening - but adding the above should fix it)
tohmly
tohmly7d ago
That did the trick - Thanks for the help!
Want results from more Discord servers?
Add your server