Thread-topic: Snow Leopard breaks Python binding to CGBitmapContextCreateWithColor
> This is a long shot, but I know in Snow Leopard, python has been
> recompiled as a 64-bit binary, which broke a number of things.
>
> Have you tried setting the environment variable:
>
> VERSIONER_PYTHON_PREFER_32_BIT=yes
>
> to use the 32-bit python binary, as described in the python(1) manual
> page?
Yes, I found that one already and no, it does not make the script work.
I was thinking that perhaps this 64-bit thing has confused the binding mechanism. If you look at the error,
>> TypeError: in method 'CGBitmapContextCreateWithColor', argument 4 of type 'CGFloat const [5]'
the suggestion that the fourth argument is supposed to be a FIVE element array is just weird - it's an RGBA color specifier - what does that fifth element specify? Passing in an additional zero didn't help either.
Alternately, is it possible that I need to pass in a fully fledged object (of some CG class) at that point rather than a tuple of reals? ie, is CGFloat no longer bindable to Python?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden