munki / macadmin-scripts

Scripts of possible interest to macOS admins
Other
2.32k stars 524 forks source link

installinstallmacos.py: Broken on Monterey? #103

Closed welby12 closed 2 years ago

welby12 commented 2 years ago

The installinstallmacos.py script, which worked for me 2 days ago on Big Sur, appears to be broken after upgrading to macOS Monterey.

I downloaded a fresh copy of the repo, and still same message.

Can anyone else confirm? By the way, I went all the way up to the latest 12.3 developer beta, 21E5196i

Screen Shot 2022-01-31 at 6 21 10 PM
gregneagle commented 2 years ago

macOS 12.3 removes Python, so you’ll need to install your own Python.

welby12 commented 2 years ago

Good catch on macOS 12.3. Unfortunately the fix doesn't seem to be as simple as installing/using Python 3 from Homebrew. Not sure if I can fix this part without any python skills.

Screen Shot 2022-02-01 at 1 52 13 PM

r

grahampugh commented 2 years ago

python3 -m pip install xattr should do it.

gregneagle commented 2 years ago

You'd need to use pip to install xattr as well.

welby12 commented 2 years ago

All very helpful, thanks guys! The final result is that I'm too cutting edge new for this script apparently. I don't usually test beta operating systems, so maybe this isn't news for people who do?

Could not find a default catalog url for this OS version.

gregneagle commented 2 years ago

Do you actually have the latest version of the script?

https://github.com/munki/macadmin-scripts/blob/main/installinstallmacos.py#L60-L62

welby12 commented 2 years ago

Consider the issue resolved! Sorry for such basic questions about Python (and forgetting to update the repo)

Love this script, the DMGs are my favorite way to store macOS installers! 🙏

songxing10000 commented 2 years ago

python3 -m pip install xattr sudo python3 installinstallmacos.py

it work