Thank you for this.
I tried building a new Python.framework with PyObjC==8.5 and encountered this issue (under Xcode 13.2.1/macOS 12.3.1/Apple silicon):
error: subprocess-exited-with-error
× Running setup.py install for pyobjc-framework-ScreenCaptureKit did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
running install
running build
running build_py
overriding build_packages to copy PyObjCTest
creating build
creating build/lib.macosx-10.9-universal2-3.10
creating build/lib.macosx-10.9-universal2-3.10/ScreenCaptureKit
copying Lib/ScreenCaptureKit/_metadata.py -> build/lib.macosx-10.9-universal2-3.10/ScreenCaptureKit
copying Lib/ScreenCaptureKit/__init__.py -> build/lib.macosx-10.9-universal2-3.10/ScreenCaptureKit
creating build/lib.macosx-10.9-universal2-3.10/PyObjCTest
copying PyObjCTest/test_scshareablecontent.py -> build/lib.macosx-10.9-universal2-3.10/PyObjCTest
copying PyObjCTest/test_screencaputurekit.py -> build/lib.macosx-10.9-universal2-3.10/PyObjCTest
copying PyObjCTest/test_scerror.py -> build/lib.macosx-10.9-universal2-3.10/PyObjCTest
copying PyObjCTest/__init__.py -> build/lib.macosx-10.9-universal2-3.10/PyObjCTest
copying PyObjCTest/test_scstream.py -> build/lib.macosx-10.9-universal2-3.10/PyObjCTest
running build_ext
building 'ScreenCaptureKit._ScreenCaptureKit' extension
creating build/temp.macosx-10.9-universal2-3.10
creating build/temp.macosx-10.9-universal2-3.10/Modules
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/Shared/munki-git/munki/Python.framework/Versions/3.10/include/python3.10 -c Modules/_ScreenCaptureKit.m -o build/temp.macosx-10.9-universal2-3.10/Modules/_ScreenCaptureKit.o -Wno-deprecated-declarations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -DPyObjC_BUILD_RELEASE=1201 -Werror
Modules/_ScreenCaptureKit.m:7:9: fatal error: 'ScreenCaptureKit/ScreenCaptureKit.h' file not found
#import <ScreenCaptureKit/ScreenCaptureKit.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> pyobjc-framework-ScreenCaptureKit
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Traceback (most recent call last):
File "/tmp/relocatable-python-git/make_relocatable_python_framework.py", line 108, in <module>
main()
File "/tmp/relocatable-python-git/make_relocatable_python_framework.py", line 94, in main
install_extras(
File "/private/tmp/relocatable-python-git/locallibs/install.py", line 109, in install_extras
install_requirements(requirements_file, framework_path, version)
File "/private/tmp/relocatable-python-git/locallibs/install.py", line 74, in install_requirements
subprocess.check_call(cmd)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/Shared/munki-git/munki/Python.framework/Versions/3.10/bin/python3.10', '-s', '-m', 'pip', 'install', '-r', '/Users/Shared/munki-git/munki/code/tools/py3_requirements.txt']' returned non-zero exit status 1.
"ScreenCaptureKit” is not required for Munki to function, but it would be nice to get a clean build, if for no other reason than eliminating questions/issues from people running `make_munki_mpkg.sh`.
I’ll try PyObjC==8.4 next.
-Greg
Sorry but I am too lazy to make this an github-issue...
I tested building relocatable_python (I changed the pyobjc-requirement only, I did not change other pip requirements) using included bash-script and found out the following:
Crashes on macOS 10.13.6
pyobjc==8.2
OK on macOS 10.13.6
pyobjc==8.5
pyobjc==8.4
pyobjc==8.3
pyobjc==8.1
pyobjc==7.3
OK means that managedsoftwareupdate --version gives valid output, other thatn that I do not know...
Test builds were done both on macOS 11.6.5 and macOS 10.15.7.
Maybe it is safe to use pyobjc==8.5 wiht the next beta?
-MiqViq
keskiviikko 4. toukokuuta 2022 klo 22.37.05 UTC+3 Beth Shirk kirjoitti:
I’m seeing the same issue in 10.14 (though not 10.15). Same symptoms that MiqViq reported below.
I’ll keep my eyes open for a Github issue and can provide more information there.
That would probably be good.
-Greg
OK, should I create an issue in munki-github for this?
Then I could possibly provide more detailed information what is broken?
-MiqViq
Without a <10.14 machine to test on, or more detailed info on what exactly is failing, I would have zero idea what changes to make for “newer betas [you] can test even down to OS X 10.11”
Hi Greg,
I think it would be OK for Munki 5.7 to support macOS 10.14+.
But if you provide newer betas I can test even down to OS X 10.11 if needed.
I have plenty of old Macs around to test on.
-Miq Viq
Thanks for the report. It’s going to be difficult for me to test on anything below 10.14. If this isn’t a simple fix, I may just drop support for macOS < 10.14 in Munki 5.7. It’s really only me working on this!
-Greg
This seems not to work on macOS 10.13 High Sierra anymore?
Tested this on 2 Macs, after installing munkitools 5.7.0.4415 beta 1 on macOS 10.13 High Sierra:
An annoying GUI dialog that just comes up all the time:
Python quit unexpectedly
managedsoftwareupdate --version
Segmentation fault: 11
/usr/local/munki/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python -V
Python 3.10.4
Possibly some issue with PyObjC or too high minimum version when Python was built?
As standard Python 3.10 seems to work with 10.9 can we still keep the same minimum as previously, if technically possible (10.11?).
-Miq Viq
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
munki-dev+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/munki-dev/d6cd7cbf-2b6e-48ea-ac40-64e3cd7a8d20n%40googlegroups.com.
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
munki-dev+...@googlegroups.com.
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
munki-dev+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/munki-dev/10562286-5d96-47b4-9a09-6f79e0bd9833n%40googlegroups.com.