Snow Leopard & Bruce?

27 views
Skip to first unread message

George Wright

unread,
Oct 24, 2009, 11:33:28 PM10/24/09
to bruce-users, Richard Jones
I'm unable to start Bruce now I have updated to 10.6.1 Snow Leopard.
There seems to be a "matching archictecture" problem. 32 v 64 bit?
Would appreciate any help.

geomacbk-2:~ georgewr$ cd bruce-3.2.1
geomacbk-2:bruce-3.2.1 georgewr$ ./bruce.sh -ftp ~/GeorgesBruceDemo/
mydemo.rst
Traceback (most recent call last):
File "./bruce.sh", line 7, in <module>
from bruce import run
File "bruce-library.zip/bruce/run.py", line 10, in <module>
File "bruce-library.zip/cocos/__init__.py", line 67, in <module>

File "bruce-library.zip/cocos/actions/__init__.py", line 36, in
<module>

File "bruce-library.zip/cocos/actions/basegrid_actions.py", line 61,
in <module>
File "bruce-library.zip/pyglet/gl/__init__.py", line 507, in
<module>

File "bruce-library.zip/pyglet/window/__init__.py", line 1667, in
<module>

File "bruce-library.zip/pyglet/window/carbon/__init__.py", line 69,
in <module>

File "bruce-library.zip/pyglet/lib.py", line 90, in load_library
File "bruce-library.zip/pyglet/lib.py", line 226, in load_framework
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/ctypes/__init__.py", line 423, in LoadLibrary
return self._dlltype(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/ctypes/__init__.py", line 345, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/System/Library/Frameworks/QuickTime.framework/
QuickTime, 6): no suitable image found. Did find:
/System/Library/Frameworks/QuickTime.framework/QuickTime: no matching
architecture in universal wrapper
/System/Library/Frameworks/QuickTime.framework/QuickTime: no matching
architecture in universal wrapper
geomacbk-2:bruce-3.2.1 georgewr$

PS
There seems to be a lot of spam on this list. I have lodges a report
to google groups

Regards
George Wright

George Wright

unread,
Oct 25, 2009, 4:49:33 PM10/25/09
to bruce-users
I think nobody reads this list but I make a note here just for my own
record.
Looking back over the pyglet-users list I realise that python2.6 is 64
bit and python2.5 is 32 bit.
pyglet and bruce use carbon on mac osx and so are not compatible with
python2.6.
To force bruce to use 2.5, I changed the first line of the ~/
bruce-3.2.1/bruce.sh script from:
#! /usr/bin/env pythonw
to:
#! /usr/bin/env pythonw2.5

and all runs as before.
Maybe Richard could make the same change on the download source.
All my other pyglet files start and run from python2.5 too.
There is work going on to adapt pyglet to cocoa so that carbon is no
longer involved.
see pyglet-cocoa.zip
on this thread:
http://groups.google.com/group/pyglet-users/browse_thread/thread/c97bdfa53677b4f7?hl=en

Regards
George

Bruce Smith

unread,
Oct 26, 2009, 3:42:18 PM10/26/09
to bruce-users


On Oct 25, 1:49 pm, George Wright <georg...@bigpond.net.au> wrote:
> I think nobody reads this list but I make a note here just for my own
> record.
> Looking back over the pyglet-users list I realise that python2.6 is 64
> bit and python2.5 is 32 bit.

I'm no expert, but from regular reading of that list, I don't think
that's exactly right.
I think the issue is the system Python (supplied with the Mac) --
which became
64 bit starting with Snow Leopard -- vs a user-installed Python from
python.org --
which can be 32 or 64 bit as you prefer, but is usually 32 bit. And
typical extensions,
code, etc, assumes it's 32 bit. So you just have to install your own
python and use that.
This may also correlate with the python version numbers, but that's
not the main issue.

> pyglet and bruce use carbon on mac osx and so are not compatible with
> python2.6.

That, I know for sure is wrong, since I run pyglet with Python 2.6
every day.
(I run it with a user-installed 32-bit Python 2.6 on Leopard.)

- Bruce Smith

Richard Jones

unread,
Oct 27, 2009, 5:02:10 PM10/27/09
to bruce-users
I've had some issues with Python on Snow Leopard too. I recently
installed ActivePython and all of them went away. I just tried bruce
and it worked fine.


Richard

George Wright

unread,
Oct 28, 2009, 4:17:30 PM10/28/09
to bruce-users
OK Bruce and Richard
Thanks for the comments.
I think Bruce is correct. I now realise my note applies to my setup
specifically. My suggestion that the bruce.sh script be altered to
invoke python 2.5 is no good because it depends on what kind of 2.5 is
installed. But maybe a warning about 64 bit is appropriate.

My python2.6 is definitely 64bit and won't work with piglet to bruce.
I think that's the one that came with the Snow Leopard install. I get
it either by invoking "python" or "python2.6" (not from behind a
virtualenv)

geomacbk-2:~ georgewr$ python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
9223372036854775807


If I call 2.5 my copy is 32 bit.
geomacbk-2:~ georgewr$ python2.5
Python 2.5.4 (r254:67916, Jul 7 2009, 23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
2147483647
>>>

Anyhow it's nice to see that in fact someone does read this list! I
was wrong there too!.
And I wonder if the spams have gone?
Regards
George
Reply all
Reply to author
Forward
0 new messages