Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192019 - dev-python/pyopengl-2.0.0.44 doesn't work w/ python-2.5
Summary: dev-python/pyopengl-2.0.0.44 doesn't work w/ python-2.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 18:26 UTC by Santiago Gala
Modified: 2008-01-30 22:56 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 Santiago Gala 2007-09-10 18:26:16 UTC
I'm seeing both keyjnote and glchess give errors. I'm betting for python 2.5 native problems with 64 bits, but I'm not really sure.

Example keyjnote problem:
$ keyjnote.py /tmp/slidy.pdf Welcome to KeyJnote version 0.10.0
Detected screen size: 1280x800 pixels
Using GL_ARB_texture_rectangle.
Traceback (most recent call last):
  File "/usr/bin/keyjnote.py", line 3233, in <module>
    run_main()
  File "/usr/bin/keyjnote.py", line 3208, in run_main
    main()
  File "/usr/bin/keyjnote.py", line 2709, in main
    glTexImage2D(GL_TEXTURE_2D, 0, 1, 256, 64, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, LogoImage.tostring())
OpenGL.GL.GLerror: [Errno 1282] invalid operation


Example glchess:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/glchess/gtkui/gtkui.py", line 174, in __expose
    self.view.feedback.renderGL()
  File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 409, in renderGL
    self.scene.render()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 274, in render
    self.__drawBoard()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 608, in __drawBoard
    self.__whiteTexture.bind() #blackTexture
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 131, in bind
    self.__texture = self.__generate()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 121, in __generate
    gluBuild2DMipmaps(GL_TEXTURE_2D, GL_LUMINANCE, self.__width, self.__height, self.__format, GL_UNSIGNED_BYTE, self.__data)
GLUerror: [Errno 100900] invalid enumerant


Reproducible: Always




$ emerge --info
Portage 2.1.2.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.0, glibc-2.5-r4, 2.6.23-rc5-hrt1 x86_64)
=================================================================
System uname: 2.6.23-rc5-hrt1 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 10 Sep 2007 12:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES en"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/voip /usr/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi aiglx alsa amd64 apache2 arts avahi avi bash-completion berkdb bitmap-fonts bluetooth bonjour cairo cdr cli cracklib crypt cups curl dbus dlloader dri dvd dvdr dvdread eds emboss encode esd evdev evo fam firefox fortran galago gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv icu iproute2 ipv6 isdnlog java jpeg kde kdehiddenvisibility kerberos lcms ldap libg++ libnotify logrotate lucene mad midi mikmod mmx mono mouse mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin obex ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vorbis xinerama xml xorg xrandr xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="synaptics mouse evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en" USERLAND="GNU" VIDEO_CARDS="vesa i810 intel"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Santiago Gala 2007-09-10 18:31:52 UTC
Doh, I noticed I was running stable (dev-python/pyopengl-2.0.0.44)

When I keyworded ~amd64 (dev-python/pyopengl-2.0.1.09-r1) things started to work again. I'm running unstable X, cairo, mesa... (with a mostly stable box) so I'm not sure how it will work with a stable setup. Here definitely it needed to be bumped.
Comment 2 Santiago Gala 2007-09-10 18:34:17 UTC
Oops, I was too fast to post. Switching to unstable fixed keyjnote, but glchess (in gnome-games) still fails, with a different error now:

Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/glchess/gtkui/gtkui.py", line 174, in __expose
    self.view.feedback.renderGL()
  File "/usr/lib64/python2.5/site-packages/glchess/main.py", line 409, in renderGL
    self.scene.render()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 274, in render
    self.__drawBoard()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/opengl.py", line 608, in __drawBoard
    self.__whiteTexture.bind() #blackTexture
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 131, in bind
    self.__texture = self.__generate()
  File "/usr/lib64/python2.5/site-packages/glchess/scene/opengl/texture.py", line 121, in __generate
    gluBuild2DMipmaps(GL_TEXTURE_2D, GL_LUMINANCE, self.__width, self.__height, self.__format, GL_UNSIGNED_BYTE, self.__data)
GLUerror: [Errno 100901] invalid value
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-10 18:53:44 UTC
Yeah, you won't have much luck with mixing stable ebuilds with unstable python. Anything else -> new bug.
Comment 4 Andreas Røsdal 2008-01-30 22:56:57 UTC
There seems to be a problem with pyopengl in Gentoo, take a look at
all these bugreports to glChess in GNOME:

http://bugzilla.gnome.org/show_bug.cgi?id=442933