Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34391 - Examples in pygtkglext need PyOpenGL, PyOpenGL not in the dependency-list of pygtkglext-1.0.0.ebuild, also other minor issues with the examples
Summary: Examples in pygtkglext need PyOpenGL, PyOpenGL not in the dependency-list of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 01:21 UTC by Toon Verstraelen
Modified: 2004-01-04 04:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toon Verstraelen 2003-11-26 01:21:45 UTC
There are af few problems with the examples that are installed with the
pygtkglext-1.0.0.ebuild. The major problem is that all these examples need
PyOpenGL, and that PyOpenGL is not mentioned in the dependencies of pygtkglext.
If PyOpenGL is installed manualy, most of the examples work.

Still some examples don't work when PyOpenGL is installed:

* color.py, gives the following error output
OpenGL extension version - 1.3
 
Traceback (most recent call last):
  File "color.py", line 175, in ?
    app = ColorManagementDemo()
  File "color.py", line 40, in __init__
    self.glconfig = gtk.gdkgl.Config(mode=self.display_mode)
gtk.gdkgl.NoMatches: no frame buffer configurations match the specified attributes

* pixmap.py and pixmap-mixed.py make my nvidia card (Riva TNT2 M64) crash, no
problems with ATI Rage128

* NeHe6Multi.py needs wall.png
Traceback (most recent call last):
  File "/usr/lib/python2.2/site-packages/gtk-2.0/gtk/gtkgl/apputils.py", line
236, in __realize
    self.glscene.init()
  File "NeHe6Multi.py", line 99, in init
    self.__loadTexture('Wall.png')
  File "NeHe6Multi.py", line 72, in __loadTexture
    image = gtk.gdk.pixbuf_new_from_file(fileName)
gobject.GError: Openen van bestand 'Wall.png' mislukt: Onbekend bestand of map


Reproducible: Always
Steps to Reproduce:
1. cd /usr/share/doc/pygtkglext/examples
2. "choose an example"
3. python someexample.py

Actual Results:  
none of the examples work (give error messages and quit) when PyOpenGL is not
installed. When PyOpenGL is installed still having troubles with four
examplescripts (see details)

Expected Results:  
show some of the pygtkglext features

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.belnet.be/mirrors/rsync.gentoo.org/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 arts avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod motif
mpeg ncurses nls pdflib png sdl spell truetype xml2 xmms xv zlib directfb gdbm
berkdb slang readline tetex bonobo svga tcltk java mysql X gpm tcpd pam libwww
ssl perl python esd imlib gnome gtk opengl mozilla ldap cdr atlas curl dga dnd
doc dvd dvdr ethereal fbcon fltk fs ginac gnomedb gtk2 gtkhtml icc ifc imap
libgda mbox md5sum mmx mozsvg mpi nvidia oav parse-clocks prelude qhull sse tiff
usb -oss -apm -kde -oggvorbis -qt -quicktime"
Comment 1 foser (RETIRED) gentoo-dev 2003-12-06 05:30:43 UTC
it does need an rdep on pyopengl to be useful yep

The gdk problem may be a bug or just a bad demo.

The second non-working demo is due to a texture image missing, make sure it is available.

So i'd say adding the PyOpenGL dep should be sufficient.
Comment 2 foser (RETIRED) gentoo-dev 2003-12-06 05:43:44 UTC
while i was at it, added dev-python/PyOpenGL to the deps. Marked 1.0.0 x86 & added 1.0.1 to ~x86.
Comment 3 Aniruddha Shankar 2004-01-03 10:38:09 UTC
confirm bug. 
creating build/temp.linux-i686-2.3/src/interface_util
gcc -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -pipe -ftracer -mfpmath=sse -mmmx -m3dnow -msse -fomit-frame-pointer -fPIC -DGLX_PLATFORM -I/usr/include/python2.3 -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/usr/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.3/src/interface_util/interface_util.o
In file included from /usr/X11R6/include/GL/glx.h:28,
                 from src/config.h:59,
                 from src/interface_util/interface_util.c:1:
/usr/X11R6/include/GL/gl.h:1731: error: conflicting types for `glMultiDrawArrays'
/usr/X11R6/include/GL/glext.h:2618: error: previous declaration of `glMultiDrawArrays'

emerge info: 
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0-gentoo-r1)
=================================================================
System uname: 2.6.0-gentoo-r1 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -ftracer -mfpmath=sse -mmmx -m3dnow -msse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -ftracer -mfpmath=sse -mmmx -m3dnow -msse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="ftp://localhost/ http://gentoo.tiscali.nl/gentoo/ http://128.213.5.34/gentoo/ http://adelie.polymtl.ca/ http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi acpi4linux alsa apm arts artswrappersuid avi berkdb crypt encode esd fam flash foomaticdb gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 imap imlib java javascript jpeg kde libg++ libwww mad maildir matroska mikmod mldonkeypango mmx mng motif mozaccess mozcalendar mozilla mozinterfaceinfo moznoirc mozp3p mozsvg mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png prelude python qt quicktime readline samba sdl slang speex spell sse ssl svga tcltk tcpd tiff truetype unicode usb x86 xml2 xmms xv zlib"

Comment 4 Toon Verstraelen 2004-01-04 04:27:52 UTC
I'm affraid the bug confirmation must be some kind of mistake?