[Pythonmac-SIG] PyObjC - Apple sample code

Ronald Oussoren ronaldoussoren at mac.com
Fri Apr 28 03:07:11 EDT 2017


> On 27 Apr 2017, at 10:17, Ben Byram-Wigfield <ben.bw at me.com> wrote:
> 
> I tried the repository browser there, and the version of parse_page_contents.py still doesn’t work for me. I’m using the latest downloaded versions of python 2.7 and PyObjC. I also tried using the default OS X versions.
> The errors are in the attached file.
> 
The PyObjC 3.2 error at the top of the file seems to indicate that your Python installation is broken, PyObjC imports the stdlib io module and that causes and error.

The PyObjC 2.5 error is due to general brokeness of the system installation of PyObjC. PyObjC 2.5 is ancient and not something I support anymore, furthermore (IIRC) Apple doesn’t ship all of PyObjC. The error you’re getting indicates that the framework wrappers are incomplete.

BTW. If you are new to Python I’d look into using Python 3.6 instead, both because that has less change to run into problems due to interference between the system install of Python 2.7 and a manual installation, and because the Python community is moving ever faster to Python 3.

Ronald



More information about the Pythonmac-SIG mailing list