Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong architecture - OS X #7

Closed
tibbon opened this issue Mar 30, 2013 · 3 comments
Closed

Wrong architecture - OS X #7

tibbon opened this issue Mar 30, 2013 · 3 comments

Comments

@tibbon
Copy link

tibbon commented Mar 30, 2013

Running on 10.8.2 I get this error
Macbook Pro:Minecraft tibbon$ arch -i386 python main.py Traceback (most recent call last): File "main.py", line 1, in <module> from pyglet.gl import * File "/Library/Python/2.7/site-packages/pyglet/gl/__init__.py", line 510, in <module> import pyglet.window File "/Library/Python/2.7/site-packages/pyglet/window/__init__.py", line 1669, in <module> from pyglet.window.carbon import CarbonPlatform, CarbonWindow File "/Library/Python/2.7/site-packages/pyglet/window/carbon/__init__.py", line 69, in <module> framework='/System/Library/Frameworks/QuickTime.framework') File "/Library/Python/2.7/site-packages/pyglet/lib.py", line 90, in load_library return self.load_framework(kwargs['framework']) File "/Library/Python/2.7/site-packages/pyglet/lib.py", line 226, in load_framework lib = ctypes.cdll.LoadLibrary(realpath) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 431, in LoadLibrary return self._dlltype(name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 353, 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: mach-o, but wrong architecture /System/Library/Frameworks/QuickTime.framework/QuickTime: mach-o, but wrong architecture

@drocpdp
Copy link

drocpdp commented Mar 30, 2013

@fogleman
Copy link
Owner

Try installing Python 2.7 instead of using the built-in one that comes with OS X.

@RichVel
Copy link
Contributor

RichVel commented Apr 2, 2013

I found that on OS X Lion 10.7, using the default system Python (2.7.1), arch -i386 python main.py did not help with this error - running python main.py to test. I"m using Pyglet 1.1.4.

However, defaults write com.apple.versioner.python Prefer-32-Bit -bool yes does work. No need to install another version of Python, and this should also work for Mountain Lion 10.8.

I will do a pull request for the README to mention this.

Probably best to re-open this issue as the suggestions above don't yet fix it - testing by more people is required to be sure of which incantation to recommend.

RichVel pushed a commit to RichVel/Minecraft that referenced this issue Apr 2, 2013
fogleman added a commit that referenced this issue Apr 2, 2013
README update for Mac 32-bit issue #7, and installing git+pip on various platforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants