How do I install Pyglet?

This is the place for queries that don't fit in any of the other categories.

How do I install Pyglet?

Postby Hissing Cockroach » Tue Oct 29, 2013 7:24 pm

Hi. I have downloaded pyglet, but when I
run the "setup.py" thing, it just says this in the
command line:

Code: Select all
Traceback (most recent call last):
  File "C:\PythonX\Include\pyglet\pyglet-1.1.4\setup.py", line 285, in <module>
    setup(**setup_info)
  File "C:\Python27\lib\distutils\core.py", line 140, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

I have looked up how to do this EVERYWHERE online, but
all I found was command prompt lines that didn't even work.
Can anyone help?
Last edited by Hissing Cockroach on Tue Oct 29, 2013 8:56 pm, edited 1 time in total.
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby Yoriz » Tue Oct 29, 2013 7:58 pm

Are you passing install as a command to setup.
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Spam topic disapproval technician
Windows7, Python 2.7.4., WxPython 2.9.5.0., some Python 3.3
User avatar
Yoriz
 
Posts: 763
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: How do I install Pyglet?

Postby Hissing Cockroach » Tue Oct 29, 2013 8:54 pm

Could you say that in different words? I'm not too sure
What you meant.
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby Yoriz » Tue Oct 29, 2013 9:00 pm

The error says you supplied no commands, you have shown your error but not what you are actually inputing that gets you that error.
Are you doing something like this.
Code: Select all
python setup.py install
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Spam topic disapproval technician
Windows7, Python 2.7.4., WxPython 2.9.5.0., some Python 3.3
User avatar
Yoriz
 
Posts: 763
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: How do I install Pyglet?

Postby Hissing Cockroach » Tue Oct 29, 2013 9:09 pm

No, I'm not because it's invalid
syntax
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby dboxall123 » Tue Oct 29, 2013 10:01 pm

I think that you're supposed to be writing it into a command line.
dboxall123
 
Posts: 108
Joined: Fri Jul 12, 2013 5:28 pm

Re: How do I install Pyglet?

Postby Somelauw » Tue Oct 29, 2013 11:13 pm

Enter it in a command line or if it still doesn't work, download the msi version.
Join the #python-forum IRC channel on irc.freenode.net!
Somelauw
 
Posts: 68
Joined: Tue Feb 12, 2013 8:30 pm

Re: How do I install Pyglet?

Postby Hissing Cockroach » Wed Oct 30, 2013 2:05 am

when I download that it said it required version 1.4 or
older. the site doesn't even have that version.
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby Mekire » Wed Oct 30, 2013 2:43 am

Off topic:
I'm sure you have heard that pyglet is faster than Pygame. This is completely true as Pyglet is a wrapper over opengl, and as such, takes much more advantage of processing on the graphics card instead of the CPU. However, with the issues you have been having recently, I can guarantee that pyglet is not going to make things simpler. If anything you will actually find it harder to find help.

-Mek
User avatar
Mekire
 
Posts: 986
Joined: Thu Feb 07, 2013 11:33 pm
Location: Amakusa, Japan

Re: How do I install Pyglet?

Postby Hissing Cockroach » Wed Oct 30, 2013 2:50 am

Mekire wrote:If anything you will actually find it harder to find help.
-Mek


You'r probably right. It's been hard enough to find help already.
Anyway, can anyone just tell me how and where to install Pyglet?
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby Yoriz » Wed Oct 30, 2013 8:05 am

http://www.pyglet.org/download.html wrote:note about windows installer

The pyglet-1.1.4.msi installer only works with python versions 2.4, 2.5 or 2.6; if you wish to use python 2.7 please install from source. Simply download the source tarball or zip, unpack it, enter the directory and run: "python setup.py install". Alternatively if you are familiar with pip, "pip install pyglet" will install pyglet-1.1.4.
New Users, Read This
Join the #python-forum IRC channel on irc.freenode.net!
Spam topic disapproval technician
Windows7, Python 2.7.4., WxPython 2.9.5.0., some Python 3.3
User avatar
Yoriz
 
Posts: 763
Joined: Fri Feb 08, 2013 1:35 am
Location: UK

Re: How do I install Pyglet?

Postby stranac » Wed Oct 30, 2013 11:51 am

Friendship is magic!

R.I.P. Tracy M. You will be missed.
User avatar
stranac
 
Posts: 1093
Joined: Thu Feb 07, 2013 3:42 pm

Re: How do I install Pyglet?

Postby dboxall123 » Wed Oct 30, 2013 12:39 pm

Do you really think that it's a good idea? Not being rude, but you don't even understand how to use Python yet.
dboxall123
 
Posts: 108
Joined: Fri Jul 12, 2013 5:28 pm

Re: How do I install Pyglet?

Postby metulburr » Wed Oct 30, 2013 4:26 pm

Do you really think that it's a good idea? Not being rude, but you don't even understand how to use Python yet.

+1 i would have to agree

You bypassed/skimmed python basics and pygame, and now moving onto pyglet. You didnt modify any of your previous code to enhance your knowledge in programming, but yet proceed as if you already knew it. It's hard to believe you actually obtained the knowledge from previous posts. Normally when multiple people tell you the same thing, it means you should really listen to them. Currently in this thread you have at least 3 people saying you are jumping the gun.
New Users, Read This
OS Ubuntu 14.04, Arch Linux, Gentoo, Windows 7/8
https://github.com/metulburr
steam
User avatar
metulburr
 
Posts: 1366
Joined: Thu Feb 07, 2013 4:47 pm
Location: Elmira, NY

Re: How do I install Pyglet?

Postby Hissing Cockroach » Wed Oct 30, 2013 5:33 pm

metulburr wrote:You bypassed/skimmed python basics and pygame, and now moving onto pyglet


No, I'm not moving on to pyglet, I'm just wanting to learn it.
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby dboxall123 » Wed Oct 30, 2013 5:58 pm

Learn to use Python first, before you try creating anything else in Pygame or attempt to learn Pyglet.
dboxall123
 
Posts: 108
Joined: Fri Jul 12, 2013 5:28 pm

Re: How do I install Pyglet?

Postby Hissing Cockroach » Wed Oct 30, 2013 6:20 pm

What else is there in moduleless python?
User avatar
Hissing Cockroach
 
Posts: 108
Joined: Sat Sep 14, 2013 2:35 pm
Location: Earth

Re: How do I install Pyglet?

Postby dboxall123 » Wed Oct 30, 2013 6:30 pm

You don't even know how to define functions, let alone create classes. You need to go through a Python tutorial first. Here is a good one for Python 3
http://openbookproject.net/thinkcs/python/english3e/
or here is the same one but for python 2
http://www.openbookproject.net/thinkcs/python/english2e/
Work through the tutorials, do all of the exercises, make sure that you understand them and then you'll be in a much better position to try and make some games. Trust me, I tried making games long before I had worked through some tutorials, and it ended badly. You will find it much easier once you understand how to use Python.
dboxall123
 
Posts: 108
Joined: Fri Jul 12, 2013 5:28 pm

Re: How do I install Pyglet?

Postby Somelauw » Wed Oct 30, 2013 6:54 pm

I think it's okay to move on to pyglet even if you don't fully understand the basics yet. You will have a hard time, so from time to time you will need to go back to a more basic tutorial to fill in the gaps in missing knowledge. Maybe reading about what kind of stuff is possible, might motivate you to learn the basics. Functions and classes and such can be pretty boring language features if you don't see them context.
Join the #python-forum IRC channel on irc.freenode.net!
Somelauw
 
Posts: 68
Joined: Tue Feb 12, 2013 8:30 pm

Re: How do I install Pyglet?

Postby dboxall123 » Wed Oct 30, 2013 7:21 pm

Functions and classes and such can be pretty boring language features if you don't see them context.

Functions and classes are essential to game developement.
dboxall123
 
Posts: 108
Joined: Fri Jul 12, 2013 5:28 pm

Next

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron