I installed PyObjC 4.0 into Python 2.7 bundled with macOS by easy_install.
I've installed macOS High Sierra 10.13.1 Beta 2 (17B35a), which was released yesterday. Since then, PyObjC frequently causes Segmentation fault.
For instance, the following code is a minimal reproducible example:
import CoreFoundation import Quartz pdf_path = "/path/to/some.pdf" url = CoreFoundation.NSURL.fileURLWithPath_(pdf_path) print str(url) pdf_doc = Quartz.PDFDocument.alloc().initWithURL_(url) print str(pdf_doc) pdf_page = pdf_doc.pageAtIndex_(0) print str(pdf_page) page_data = pdf_page.dataRepresentation() # => Segmentation fault print str(page_data)
I attached the crash log.