Pyglet and Snow Leopard - don't think 64bit is the problem.

30 views
Skip to first unread message

Daniel Wirdehäll

unread,
Mar 10, 2010, 1:27:29 PM3/10/10
to pyglet-users
Hi

I've been browsing around the web to get pyglet working on my Mac.
I have read all the workarounds where thay tell you that you need to
tell python to run as 32-bit and so on.

The thing is that i don't think thats the problem, you see i have
ubuntu 9.10 x86_64 on another machine with python in 64 bit and pyglet
works just great there so i'm a bit confused.

Can anyone shed some light on this?

-- Daniel Wirdehäll

Tristam MacDonald

unread,
Mar 10, 2010, 4:21:28 PM3/10/10
to pyglet...@googlegroups.com
2010/3/10 Daniel Wirdehäll <daniel.w...@gmail.com>
Pyglet takien in isolation has no problems with 64-bit, and thus the reason why it runs on your 64-bit Ubuntu. 

However, on the Mac, pyglet's windowing, font and event support are implemented on top of the Carbon API, which has been deprecated by Apple, and is not available for 64-bit. Thus in this environment pyglet cannot run in 64-bit mode.

If you install a 32-bit python on your Mac, pyglet should run fine in that. In addition, there is a thread around somewhere about porting pyglet to the Cocoa API, which would remove this restriction, but the effort is currently unmaintained.

Note that a similar problem seems to occur with the Windows implementation, and the workaround is the same: use a 32-bit version of python.

Casey Duncan

unread,
Mar 10, 2010, 4:23:08 PM3/10/10
to pyglet...@googlegroups.com
I'm not an expert, but I think 64 bit Linux and 64 bit Mac are apples
and oranges. The main issue with Snow Leopard is not so much 64 bit
vs. 32 bit per se, but the fact that carbon is only supported from
32-bit apps, and Pyglet uses the carbon api to interface with the OS
on Mac. 64-bit SL apps can only use the Cocoa apis.

-Casey

2010/3/10 Daniel Wirdehäll <daniel.w...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "pyglet-users" group.
> To post to this group, send email to pyglet...@googlegroups.com.
> To unsubscribe from this group, send email to pyglet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
>
>

Daniel Wirdehäll

unread,
Mar 11, 2010, 5:46:11 AM3/11/10
to pyglet-users
Okay thanks a alot, you have been highly informative.
Then i just have to install an standalone python with 32 bit.

Does anyone know if this issue is going to be resolved? Are there
anyone working on it?

-- Daniel Wirdehäll

On 10 mar, 22:23, Casey Duncan <casey.dun...@gmail.com> wrote:
> I'm not an expert, but I think 64 bit Linux and 64 bit Mac are apples
> and oranges. The main issue with Snow Leopard is not so much 64 bit
> vs. 32 bit per se, but the fact that carbon is only supported from
> 32-bit apps, and Pyglet uses the carbon api to interface with the OS
> on Mac. 64-bit SL apps can only use the Cocoa apis.
>
> -Casey
>

> 2010/3/10 Daniel Wirdehäll <daniel.wirdeh...@gmail.com>:

Tristam MacDonald

unread,
Mar 11, 2010, 7:03:57 AM3/11/10
to pyglet...@googlegroups.com
2010/3/11 Daniel Wirdehäll <daniel.w...@gmail.com>
Okay thanks a alot, you have been highly informative.
Then i just have to install an standalone python with 32 bit.

Does anyone know if this issue is going to be resolved? Are there
anyone working on it?

Reply all
Reply to author
Forward
0 new messages