Ah. ok. I finally got it to work by running it from the Windows
Command Prompt.

I had to have a copy of media_player, and the music file in the
Python26 directory. When I did that it worked.

I still haven't figured out how to run it from the Python Command Line
yet, though. You can run programs from Python Command Line, right?

I think I'm just getting the syntax wrong.

Thank you for your help.

On Aug 10, 7:42 am, Luke Paireepinart <[email protected]> wrote:
> You must run it from a command prompt/command line to pass it
> arguments. I.e. Start up a cmd window and type in media_player.py
> filename   and it should work. You must be in the same directory as
> your script. It's hard to help without knowing what you're stuck on,
> so what part doesn't make sense?
>
> On 8/10/09, Hagbard <[email protected]> wrote:
>
>
>
>
>
> > Hello, I am new to Python and to pyglet. I am trying to get the media
> > player example to work, but I am having trouble.
>
> > First, I tried running it through IDLE, and it returned "sys.exit(1)",
> > presumably because the length of sys.argv is less than  2, which, as
> > far as I can tell, means that I need to execute it with a filename as
> > an argument.
>
> > I'm having trouble figuring out how to do that. Can anyone help me
> > out?
>
> > It gave me the hint "'Usage: media_player.py <filename>
> > [<filename> ...]"
>
> > But unfortunately, at this point that doesn't help me very much.
>
> --
> Sent from my mobile device
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to