Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244709 - dev-python/pyopengl-2.0.0.44: cannot use textures
Summary: dev-python/pyopengl-2.0.0.44: cannot use textures
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 07:22 UTC by David Honour
Modified: 2009-05-18 13:22 UTC (History)
1 user (show)

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


Attachments
full error from when you run the demo (stack_trace,416 bytes, text/plain)
2008-10-28 07:24 UTC, David Honour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Honour 2008-10-28 07:22:21 UTC
Every time you try to load an image for use (using glTexImage2d()) it fails with an Invalid Enumerant error. This extends to the bundled tutorials.

Reproducible: Always

Steps to Reproduce:
1. run /usr/lib64/python-2.5/site-packages/OpenGL/Demo/NeHe/lesson6.py
Actual Results:  
Fails with invalid enumerant error. Doesn't bind.

Expected Results:  
Bound the texture without error.

I have reproduced this on someone else's machine.
Comment 1 David Honour 2008-10-28 07:24:59 UTC
Created attachment 170062 [details]
full error from when you run the demo

the demo doesn't run through this error, it aborts
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-28 07:32:35 UTC
Please post your `emerge --info' too.
Comment 3 David Honour 2008-10-28 07:41:34 UTC
emerge --info:

Portage 2.1.5.6 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Tue, 28 Oct 2008 05:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ ftp://gentoo.virginmedia.com/sites/gentoo "
LDFLAGS=""
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/portage/local/layman/Spring"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi adns alsa amd64 bash-completion berkdb binary-drivers blender-game caps cdparanoia cdr cdrom cli colordiff cpudetection cracklib crypt ctype cups d dga dia divx dlz dnd doc dri dv dvd dvdr dvdread encode epydoc expat fbcon ffmpeg flac fltk fortran ftp games gd gdbm gif gimpprint glibc-omitfp glut gmedia gphoto2 gpm gsl gtk hal iconv id3 idn ieee1394 imagemagick inkjar iodbc isdnlog jack javascript jbig jpeg jpeg2k ladspa lash libcaca libsamplerate linuxthreads-tls lm_sensors maildir mhash midi minimal mmap mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia objc objc++ objc-gc offensive ogg openal openexr opengl openmp pam pcntl pcre pda pdf perl plotutils plugins png pppd python quicktime readline realmedia recode reflection rtc session sharedmem shorten smp snmp soap sockets spell spl sse sse2 ssl svg tcl tcpd theora threads tiff tk unicode v4l vorbis wddx wma wmf wmp xcomposite xine xml xorg xpm xscreensaver xsl xv xvid xvmc zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-28 17:38:29 UTC
Thanks.
Comment 5 Denilson Sá Maia 2009-04-06 01:49:11 UTC
I can confirm this issue with (stable) dev-python/pyopengl-2.0.0.44 on a stable amd64 machine.

I think this issue is related to bug 239392 and to bug 202921.

I've also stumbled on this issue while trying to run Frets on Fire through the sources:
http://fretsonfire.wikidot.com/compatibility-table

Updating to unstable dev-python/pyopengl-3.0.0_beta8 fixes this issue for me (as mentioned at the third comment from bug 202921).


So, the solution for all these bugs is to stabilize pyopengl-3.x. I propose opening a bug for its stabilization and adding bug 239392, bug 202921 and bug 170490 as dependencies.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-16 23:52:42 UTC
Please test with dev-python/pyopengl-3.0.0.
Comment 7 Denilson Sá Maia 2009-05-18 13:22:40 UTC
(In reply to comment #6)
> Please test with dev-python/pyopengl-3.0.0.

dev-python/pyopengl-3.0.0 works (as well as 3.0.0_beta8) works for me (while 2.x versions didn't).
I guess the bug was somehow related to swig (maye bug in swig, maybe bug in pyopengl). Since 3.x versions use ctypes instead of swig, this bug disappeared.