Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-05-07 Thread Ben Byram-Wigfield
Sorry, this just isn’t working for me. I’ve installed Python 3; I’ve reinstalled PyObjC using pip; and I’m still getting syntax errors when I run the script. line 177, in createMyOperatorTable Quartz.CGPDFOperatorTableSetCallback(myTable, b"Do", myOperator_Do) ValueError: depythonifying 'poi

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-05-07 Thread Ronald Oussoren
> On 2 May 2017, at 13:47, Ben Byram-Wigfield wrote: > > I reinstalled python 2.7.13 from a fresh downloaded .pkg, and used pip to > reinstall PyObjC, but I still get the same errors. > Do the Quartz example scripts work on python 3 ? The example work with both python 3 and python 2.7. Ronal

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-05-02 Thread Ben Byram-Wigfield
I reinstalled python 2.7.13 from a fresh downloaded .pkg, and used pip to reinstall PyObjC, but I still get the same errors. Do the Quartz example scripts work on python 3 ? Ben > On 29 Apr 2017, at 05:57, Christopher Barker wrote: > > And you really don't want to use easy_install amymore, eit

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-28 Thread Christopher Barker
And you really don't want to use easy_install amymore, either. Try pip. I see the appeal of an Apple-supplied python, but Apple has never properly supported it ever since OS-X 10.1. -CHB On Fri, Apr 28, 2017 at 5:19 PM Glyph wrote: > Relying on the system Python for this sort of stuff h

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-28 Thread Glyph
Relying on the system Python for this sort of stuff has always guaranteed you'd have an out-of-date version of all of your dependencies. The availability of wheels (thanks again Ronald!!!) for pyobjc means that you don't need the biggest impediment to users installing stuff, which is a C compil

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-28 Thread Ben Byram-Wigfield
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 attract

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-28 Thread Ronald Oussoren
> On 27 Apr 2017, at 10:17, Ben Byram-Wigfield 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 err

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-27 Thread Ben Byram-Wigfield
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. Many thanks ERRORS USING LATEST DOWNLO

Re: [Pythonmac-SIG] PyObjC - Apple sample code

2017-04-27 Thread Ronald Oussoren
> On 22 Apr 2017, at 10:45, Ben Byram-Wigfield wrote: > > I’ve been looking at Apple’s Open Source website, where there is lots of > python sample code. But the examples I’ve tried don’t work. They all flag > syntax errors (usually about type conversion), or occasionally make the > python pro

[Pythonmac-SIG] PyObjC - Apple sample code

2017-04-24 Thread Ben Byram-Wigfield
I’ve been looking at Apple’s Open Source website, where there is lots of python sample code. But the examples I’ve tried don’t work. They all flag syntax errors (usually about type conversion), or occasionally make the python process crash! Particularly, I’m looking at a script to parse the con