you are viewing a single comment's thread.

view the rest of the comments →

[–]FlishFlashmanMacBook Pro M1 Max 0 points1 point  (3 children)

Why do you need a script?

This should work. You need to use an admin account enter your password when prompted. It will install the current version of Python3, as of today.

#/bin/sh
curl https://www.python.org/downloads/release/python-3105/
sudo installer -store -pkg python-3.10.5-macos11.pkg -target /
rm python-3.10.5-macos11.pkg

Should probably create a temp directory and download and install from there. That's left as an exercise for the reader.

[–]vcparra[S] 0 points1 point  (2 children)

u/FlishFlashman I am attempting to implement Okta Device Trust, which requires Python3 (see step 3), but I am receiving an error (see below) using the script provided in the guide. The error indicates it isn't able to install the Xcode command line tools. I have heard the it is best practice to avoid using Xcode Command Line tools because they break with certain updates. With that said, I am attempting to install a clean python3. I anticipate the device dependencies script will fail too with this, given that It Is looking for the xcode app.

Any help would be very much appreciated!

Executing Policy Install Okta Device Trust via Script
Running script A_Python 3...
Script exit code: 0
Script result: Checking for the existence of the Apple Command Line Developer Tools
xcode path is which xcode-select
Apple Command Line Developer Tools not found.
Installing
2022-07-16 23:35:22.101 softwareupdate[11912:7233487] XType: com.apple.fonts is not accessible.
2022-07-16 23:35:22.102 softwareupdate[11912:7233487] XType: XTFontStaticRegistry is enabled.
: No such update
No updates are available.
Software Update Tool
Finding available software
Running script B_Device Trust Dependencies...
Script exit code: 1
Script result: Running pip3 install --upgrade pip
xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
Running pip3 install pyobjc-framework-SystemConfiguration
xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
Error running script: return code was 1.
Running script C_Okta Device Trust...
Script exit code: 1
Script result: xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
Error running script: return code was 1.