Re:Simple Minecraft Clone in 580 lines of Python
by scottrogowski on Friday March 29, 2013 @04:25AM
(#5459775)
I got it to work on OSX 10.8!
slunk's suggestion:
`arch -i386 python main.py`
got me halfway there
You also have to run it with python 2.6 like so:
`arch -i386 /usr/bin/python2.6 main.py`
If you only have pyglet for 2.7, you will have to install it for 2.6. Installing packages in python for 2.6 will require pip-2.6 which you get like this:
`sudo easy_install-2.6 pip`
then
`pip-2.6 install pyglet`
Walla!
Re:Simple Minecraft Clone in 580 lines of Python
by Alphasite_ on Friday March 29, 2013 @06:41PM
(#5463410)
Another option is to use a version of Pyglet from the main repository on googlecode. Thats been updated to avoid the Avbin problems and add OSX 64 bit support.
Re:Simple Minecraft Clone in 580 lines of Python
by huskyr on Friday March 29, 2013 @05:41AM
(#5459909)
I needed to run the last command as sudo:
sudo pip-2.6 install pyglet
After that it worked perfectly. Thanks!
Re:Simple Minecraft Clone in 580 lines of Python
by oms1005 on Friday March 29, 2013 @08:37PM
(#5463829)
That worked great for me, thanks!
Re:Simple Minecraft Clone in 580 lines of Python
by albertzeyer on Friday March 29, 2013 @09:57AM
(#5460717)
I had to use this command:
arch -i386 /System/Library/Frameworks/Python.framework/Resources/Python.app/Contents/MacOS/Python main.py
Someone should update Pyglet... Why does it need QuickTime?
Re:Simple Minecraft Clone in 580 lines of Python
by slunk on Friday March 29, 2013 @12:52AM
(#5459294)
I got a similar error.
"arch -i386 python main.py" solve the problem for me.
Re:Simple Minecraft Clone in 580 lines of Python
by aquanext on Friday March 29, 2013 @02:33AM
(#5459555)
I'm running OS X 10.8 and ran into the same problem as the OP. This workaround unfortunately didn't resolve the problem.
Re:Simple Minecraft Clone in 580 lines of Python
by dpham on Friday March 29, 2013 @09:37AM
(#5460611)
try forcing python into 32-bit mode?
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
Re:Simple Minecraft Clone in 580 lines of Python
by dangoldin on Friday March 29, 2013 @01:09AM
(#5459332)
Try running it using 32 bit Python vs 64 bit Python. It also depends on your OS. Which OS X are you on?
Re:Simple Minecraft Clone in 580 lines of Python
by TkTech on Friday March 29, 2013 @12:25AM
(#5459233)
It was built with an old version of pyglet trying to run on 64bit python. Update.
Re:Simple Minecraft Clone in 580 lines of Python
by grimgrin on Friday March 29, 2013 @12:33AM
(#5459251)
Unless I'm just terribly mistaken, good luck getting pyglet to run on OS X right now. However, I really hope I am wrong, because that means I was just being a fool last week and will soon be using pyglet.
Re:Simple Minecraft Clone in 580 lines of Python
by TkTech on Friday March 29, 2013 @04:07AM
(#5459752)
Pyglet is very slow for releases, it's almost always better to build it right out of hg (pip install hg+https://pyglet.googlecode.com/hg/). It's had Cocoa support for something like a year, at least.
Re:Simple Minecraft Clone in 580 lines of Python
by macmac on Friday March 29, 2013 @02:24AM
(#5459541)
Looks like pyglet now runs on OS X: http://www.pyglet.org/news.html
Got this error though. Any ideas?
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