Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207125 - [science overlay] dev-python/pyglet-1.0 (New package)
Summary: [science overlay] dev-python/pyglet-1.0 (New package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://www.pyglet.org
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks: 248393
  Show dependency tree
 
Reported: 2008-01-23 08:57 UTC by Arne Babenhauserheide
Modified: 2010-10-15 18:31 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pyglet-1.0.ebuild (pyglet-1.0.ebuild,620 bytes, text/plain)
2008-01-23 09:04 UTC, Arne Babenhauserheide
Details
pyglet-1.0.ebuild (pyglet-1.0.ebuild,618 bytes, text/plain)
2008-02-09 17:58 UTC, Thomas Pani
Details
pyglet-1.0-r1.ebuild (pyglet-1.0-r1.ebuild,629 bytes, text/plain)
2008-02-11 10:54 UTC, Arne Babenhauserheide
Details
pyglet-1.0-r1.ebuild (pyglet-1.0-r1.ebuild,629 bytes, text/plain)
2008-02-11 10:56 UTC, Arne Babenhauserheide
Details
pyglet-1.1_alpha1.ebuild (pyglet-1.1_alpha1.ebuild,674 bytes, text/plain)
2008-03-01 17:34 UTC, Thomas Pani
Details
avbin-bin-2.ebuild (avbin-bin-2.ebuild,756 bytes, text/plain)
2008-03-01 17:35 UTC, Thomas Pani
Details
pyglet-1.1_beta1.ebuild (pyglet-1.1_beta1.ebuild,664 bytes, text/plain)
2008-04-23 14:44 UTC, Jeff Kowalczyk
Details
pyglet-1.1.2.ebuild (pyglet-1.1.2.ebuild,905 bytes, text/plain)
2008-12-28 22:49 UTC, Thomas Pani
Details
pyglet-1.1.2.ebuild (pyglet-1.1.2.ebuild,1.45 KB, text/plain)
2008-12-29 22:51 UTC, Thomas Pani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2008-01-23 08:57:39 UTC
Pyglet provides an object-oriented programming interface for developing games and other visually-rich applications for Windows, Mac OS X and Linux. Some of the features of pyglet are:
 * No external dependencies or installation requirements. For most application and game requirements, pyglet needs nothing else besides Python, simplifying distribution and installation. 
 * Take advantage of multiple windows and multi-monitor desktops. pyglet allows you to use as many windows as you need, and is fully aware of multi-monitor setups for use with fullscreen games. 
 * Load images, sound, music and video in almost any format. pyglet can optionally use AVbin to play back audio formats such as MP3, OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264, WMV and Xvid.

Reproducible: Always




I already created a working ebuild. It needs checking, though.
Comment 1 Arne Babenhauserheide 2008-01-23 09:04:13 UTC
Created attachment 141641 [details]
pyglet-1.0.ebuild

PyGlet ebuild 1.0. 

I installed it, and it should work on all platforms which support Python. 

Requires ctypes 1.0 or later to install with Python 2.4' 

Doesn't have additional Requirements with Python 2.5, as far as I can see. 

Best wishes, 
Arne
Comment 2 Arne Babenhauserheide 2008-01-23 22:09:36 UTC
I just saw, that this ebuild i marked as maintainer wanted. 

I'm just testing, if I will use PyGlet in my next project. 

If I'll use it, I'd gladly be maintainer of the ebuild. I just have to know what my tasks would be as maintainer. 
Comment 3 Thomas Pani 2008-02-09 17:58:49 UTC
Created attachment 143046 [details]
pyglet-1.0.ebuild

updated ebuild:
  - fixed DESCRIPTION, LICENSE, inherits
  - added RDEPEND + NEED_PYTHON (possibly incomplete, pyglet docs mention something about Gdk and ALSA/OpenAL)
  - added examples USE flag
Comment 4 Arne Babenhauserheide 2008-02-11 10:53:53 UTC
The updated ebuild looks nice. Thanks! 

I added ~amd64 (I'm using amd64). 

I found one problem, though: 
DOCS="DESIGN NOTICE" 

- dodoc: DESIGN does not exist

I think it should read: 
DOCS="README NOTICE"

Also there is some additional optional requirement: 
To play compressed audio and video files, you will also need AVbin.
-> http://code.google.com/p/avbin
Comment 5 Arne Babenhauserheide 2008-02-11 10:54:31 UTC
Created attachment 143196 [details]
pyglet-1.0-r1.ebuild
Comment 6 Arne Babenhauserheide 2008-02-11 10:56:40 UTC
Created attachment 143197 [details]
pyglet-1.0-r1.ebuild

sorry, removed DOC "NOTICE" instead of "DESIGN" in previous ebuild.
Comment 7 Thomas Pani 2008-03-01 17:33:12 UTC
(In reply to comment #6)
> Created an attachment (id=143197) [edit]
> pyglet-1.0-r1.ebuild

Great, thanks. I don't know what I thought when I put DESIGN in there...
Actually, README will be included via the distutils eclass.

Regarding avbin: This one's really crappy. I guess writing a ebuild to compile it from source will be impossible, because avbin needs to be compiled against a specific version of ffmpeg, which gets pulled in via svn. I have a little ebuild to install the binary version, but I haven't filed a bug for it because it's a binary ebuild with no existing source ebuild. I'll just attach it to this bug.
Comment 8 Thomas Pani 2008-03-01 17:34:48 UTC
Created attachment 145026 [details]
pyglet-1.1_alpha1.ebuild
Comment 9 Thomas Pani 2008-03-01 17:35:24 UTC
Created attachment 145027 [details]
avbin-bin-2.ebuild
Comment 10 Arne Babenhauserheide 2008-03-01 18:08:27 UTC
Cool, many thanks! 
Comment 11 Jeff Kowalczyk 2008-04-23 14:44:45 UTC
Created attachment 150715 [details]
pyglet-1.1_beta1.ebuild

working ebuild in this bug's series: pyglet-1.1_beta1.ebuild
Comment 12 Andrey Grozin gentoo-dev 2008-07-05 03:13:04 UTC
pyglet-1.1_beta2 can be emerged by the _beta1 ebuild from this bug. I've committed it to the science overlay (I need it as a dependency for sympy).

I see the following problems with it on my Gentoo laptop:

1. hello_world.py does not show any text, just a black window. I thought that, maybe, pyglet cannot find the requested font, and removed the font name. No effect. All example programs which are supposed to display some texts show nothing. In text_input.py, I can type, the cursor moves, but no characters are displayed.

2. No sound is produced. video.py does display video files, but silently. (Sound works OK on my laptop - ALSA, Intel on-board sound card.)

Do others have these (or some other) problems with pyglet?
Comment 13 Andrey Grozin gentoo-dev 2008-08-26 03:33:46 UTC
I've committed pyglet-1.1.ebuild (and avbin-bin-6.ebuild) to the science overlay. As before, the first "Hello world" example from the documentation does not work. The second example works, but the third does not. People don't like programs with non-working "Hello world". If somebody knew how to make it (and other simple examples) working, it would be possible to discuss moving pyglet to the main tree. The other difficulty is its dependency, avbin. Currently, it is a binary ebuild for x86 and amd64 only (and there are no -6 sources at all, only -5). Instructions about compiling from sources involve fetching a specific cvs snapshot of ffmpeg, and don't mix well with the normal ebuild practices. But this can be circumvented by mirroring this snapshot at Gentoo. So, the main problem is how to make pyglet working.
Comment 14 Thomas Pani 2008-08-28 17:36:43 UTC
(In reply to comment #13)
Hmm... I can't reproduce any of those errors. All the examples work just fine. I sometimes had sound problems with 1.1, but this is now gone in 1.1.1 (renaming ebuild works just fine).
However, I'm running media-libs/mesa-7.0.3 because the stable 6.5.2-r1 version turned out to be very buggy (at least with pyglet).
Comment 15 Cyp 2008-11-30 20:13:25 UTC
(In reply to comment #12)
I installed pyglet from the science overlay.

1. hello_world.py works for me. It displays white text on a black background.

2. video.py crashed with "Illegal instruction", so I can't test sound with that. For sound to work with brainworkshop.pyw (see Bug 248393), I had to install dev-python/pyopenal. (I guess that dev-python/pyalsaaudio would work too, but I haven't tried, as I didn't find that package until just now.) So sound does work with at least one application.
Comment 16 Thomas Pani 2008-12-28 22:49:51 UTC
Created attachment 176697 [details]
pyglet-1.1.2.ebuild

Version bump to 1.1.2, updated some dependencies.
avbin has also been bumped to -7, renaming the ebuild works just fine.
Comment 17 Andrey Grozin gentoo-dev 2008-12-29 16:19:44 UTC
Many thanks. I'll commit this to the science overlay (at the moment, I have problems accessing it, so, probably, a few days later...)

I've installed this version to 2 computers: my laptop and my home desktop. What I observe:

1. Laptop. Hello world does not work - a black window with a small piece of a white curve. All examples which are supposed to display some characters don't do that (e.g., the text input example - no labels; when I type, the cursor moves, but no characters appear). No sound from any example program (video.py shows videos, but silently).

2. Desktop. Hello world shows the label. When I try to close it, the X server crashes. No sound from any example program. Attempts to close any pyglet window, or to click some button, crash the X server.

Not a very stable program :-(
Comment 18 Thomas Pani 2008-12-29 21:43:05 UTC
(In reply to comment #17)
> Not a very stable program :-(
These problems are most probably not caused by pyglet itself.
As for the rendering problems:
 - try disabling compositing window managers
 - consider upgrading to mesa-7 (I've got 7.0.3 here and everything works fine). mesa 6.5.2 is >2 years old, and has lots of known (unfixed) bugs, while 7.0.3 is virtually bug-free.

As for sound: Can you try
In [1]: import pyglet
In [2]: import pyglet.media.drivers.openal
In [3]: import pyglet.media.drivers.alsa
to see if that works? I just noticed the latter one gives me:
AttributeError: /usr/lib/libasound.so.2: undefined symbol: alsa_lisp_default_cfg_free
Comment 19 Thomas Pani 2008-12-29 22:49:40 UTC
(In reply to comment #18)
> AttributeError: /usr/lib/libasound.so.2: undefined symbol:
> alsa_lisp_default_cfg_free
Just a follow-up: See upstream bug #378: http://code.google.com/p/pyglet/issues/detail?id=378
Looks like you'll have to use openal till this is fixed. Or we'll fix it ourselves.
Comment 20 Thomas Pani 2008-12-29 22:51:08 UTC
Created attachment 176805 [details]
pyglet-1.1.2.ebuild

Adds built_with_use for alsa USE flag.
Comment 21 Andrey Grozin gentoo-dev 2009-05-13 17:46:11 UTC
(In reply to comment #18)
>  - try disabling compositing window managers
I'm using kde-3.5 with its window manager.

>  - consider upgrading to mesa-7 (I've got 7.0.3 here and everything works
> fine). mesa 6.5.2 is >2 years old, and has lots of known (unfixed) bugs, while
> 7.0.3 is virtually bug-free.
I've recently upgraded to the newest X and opengl stuff: mesa-7.4.1, xorg-server-1.6.1, intel driver 2.7.0. The result of running hello_world.py is still the same: a black window with a small white line segment, no letters.
Comment 22 Cyp 2010-10-15 18:14:39 UTC
This package (v1.1.4) seems to be in the portage tree now.

Thanks for adding.
Comment 23 Sébastien Fabbro (RETIRED) gentoo-dev 2010-10-15 18:31:25 UTC
yes, in main tree.