On Saturday, June 9, 2012 5:56:22 PM UTC+1, Jonathan Hartley wrote:
>
> On Saturday, June 9, 2012 8:04:29 AM UTC+1, Andreas Schiefer wrote:
>>
>> On Fri, Jun 8, 2012 at 7:17 PM, Nathan
>> <[email protected]<[email protected]>>
>> wrote:
>> > On Fri, Jun 8, 2012 at 10:13 AM, Jonathan Hartley
>> > <[email protected]<[email protected]>>
>> wrote:
>> >> I'm failing to install properly on OSX Snow Leopard, Python 3.2
>> 32/64-bit
>> >> .dmg from python.org.
>> >>
>> >> Can anyone spot what I'm doing completely wrong? In particular, I'm
>> using
>> >> 'arch' to run my Python in 32-bit mode, but should I be installing a
>> >> plain-old 32 bit Python? I'll try that next, but for now...
>> >
>> > Sure, that's easy. Pyglet doesn't support Python 3.x yet.
>>
>> Well, that's not quite true. The version in the hg-repo supports
>> Python 3 for quite a while now (at least on Windows and Linux).
>> But I think Jonathan was the first one actually trying it on OSX.
>>
>> I don't know much about MacOS, but I think it should use "cocoa" and
>> not "carbon" as indicated by the traceback. Maybe the check for
>> switching between those implementations fails in Python 3?
>>
>
>
> Acknowledged, and confirmed that under Python 2.7 it all works just fine.
>
> Although I'm using a Mac as my primary laptop (work influences) I know so
> little about them that 'carbon' and 'cocoa' mean nothing to me. Given that
> caveat, I'll have a quick glimpse through the source to see whether it's
> obvious even to me why one is being chosen over the other. More if I figure
> anything useful.
>
One step forward:
Using the same alias 'python' to run in 32 bit mode:
$ python
Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:58)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyglet
>>> pyglet.options['darwin_cocoa'] = True
>>> import pyglet.window
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Users/jhartley/.envs/game/lib/python3.2/site-packages/pyglet/window/__init__.py",
line 133, in <module>
from pyglet.gl import gl_info
File
"/Users/jhartley/.envs/game/lib/python3.2/site-packages/pyglet/gl/__init__.py",
line 220, in <module>
from .cocoa import CocoaConfig as Config
File
"/Users/jhartley/.envs/game/lib/python3.2/site-packages/pyglet/gl/cocoa.py",
line 11, in <module>
from pyglet.libs.darwin import *
File
"/Users/jhartley/.envs/game/lib/python3.2/site-packages/pyglet/libs/darwin/__init__.py",
line 5, in <module>
from Foundation import *
ImportError: No module named Foundation
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyglet-users/-/JgiLtX_patUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.