[Pythonmac-SIG] PyObjC - Apple sample code

Ben Byram-Wigfield ben.bw at me.com
Fri Apr 28 07:20:45 EDT 2017


I ran the installer package for the latest python 2.7, and then used easy_install to install PyObjC.
I get the same errors on two separate Macs. What should I do to fix the installation?

Does Apple not have plans to include (all of) the latest PyObjC? That’s rather sad. The reason I was attracted to creating ObjC python scripts was that they could run on any Mac.

Thanks

Ben


> On 28 Apr 2017, at 08:07, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
> 
> 
>> 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