Re: OSX 10.8 and python 2.7?

210 views
Skip to first unread message

Wallace Davidson

unread,
Sep 3, 2012, 11:56:46 PM9/3/12
to pyglet...@googlegroups.com
Have you installed Pyglet?

On Wed, Aug 29, 2012 at 11:23 AM, Travis Griggs <travis...@gmail.com> wrote:
Relatively new to python (been learning over the last 2 months). I thought pyglet looked cool and wanted to try it out. I'm using pycharm, it points at python 2.7 on my 10.8 OSX box. So I downloaded the mpkg and installed it. And then created a new project in pycharm, typed in the code from the helloworld example (http://www.pyglet.org/doc/programming_guide/hello_world.html). Attempted to run it, but it complained:

    import pyglet
ImportError: No module named pyglet

Doing a file system search for pyglet files, I see lots of references to python2.6 and python2.5. Am I just out of luck? Or is there some other trick I should use to be able to give pyglet a go?

TIA

--
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/-/9PK8p3eb0v0J.
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.


Nathan

unread,
Sep 4, 2012, 1:13:35 AM9/4/12
to pyglet...@googlegroups.com
On Tue, Aug 28, 2012 at 5:23 PM, Travis Griggs <travis...@gmail.com> wrote:
Relatively new to python (been learning over the last 2 months). I thought pyglet looked cool and wanted to try it out. I'm using pycharm, it points at python 2.7 on my 10.8 OSX box. So I downloaded the mpkg and installed it. And then created a new project in pycharm, typed in the code from the helloworld example (http://www.pyglet.org/doc/programming_guide/hello_world.html). Attempted to run it, but it complained:

    import pyglet
ImportError: No module named pyglet

Doing a file system search for pyglet files, I see lots of references to python2.6 and python2.5. Am I just out of luck? Or is there some other trick I should use to be able to give pyglet a go?

TIA


Hmm, sent six days ago, but I didn't see it until today.  Was this email stuck in moderation or something?

Anyway, here's a method to get the latest development version that would probably sidestep any problems you're having with the older version(s):

1) Download mercurial from http://mercurial.selenic.com/ and install it.
2) Clone the pyglet repository by opening up a terminal and running:
    hg clone https://pyglet.googlecode.com/hg/ pyglet
3) Go into the pyglet directory and install it (type in your password when prompted and press enter):
    cd pyglet && sudo python setup.py install

Then you should be able to fire up python and see pyglet normally.

~ Nathan
Reply all
Reply to author
Forward
0 new messages