Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32070 - PyOpenGL-2.0.0.44 Fails to Emerge
Summary: PyOpenGL-2.0.0.44 Fails to Emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 34873 35169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-26 15:32 UTC by Ray Morehead
Modified: 2004-01-05 15:02 UTC (History)
6 users (show)

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


Attachments
emerge dialog (log,102.25 KB, text/plain)
2003-10-26 15:46 UTC, Ray Morehead
Details
Proposed patch to PyOpenGL-2.0.0.44-r1 (PyOpenGL-2.0.0.44-r1.diff,543 bytes, patch)
2003-11-11 21:46 UTC, Eamon Caddigan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Morehead 2003-10-26 15:32:08 UTC
Python 2.2.3 (#1, Oct 24 2003, 01:22:47)
[GCC 3.3.1 20030927 (Gentoo Linux 3.3.1-r5, propolice)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/var/tmp/portage/PyOpenGL-2.0.0.44/image/usr/lib/python2.2/site-packages',
'/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2',
'/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload',
'/usr/lib/python2.2/site-packages', '/usr/lib/python2.2/site-packages/gtk-2.0']
>>>

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
See Attached File


Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r8)
=================================================================
System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.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 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm
berkdb slang readline arts tetex bonobo svga java guile ruby postgres X sdl gpm
tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif
opengl mozilla cdr cups tcltk alsa"
Comment 1 Ray Morehead 2003-10-26 15:46:21 UTC
Created attachment 19835 [details]
emerge dialog
Comment 2 Lieven Van Acker 2003-11-04 08:20:38 UTC
I resolved this issue downgrading tcl to 8.3.4 (was 8.4.4). 

Must have something to do with a bug in tcl-8.4.4
Comment 3 Shoshannah Forbes 2003-11-09 06:26:05 UTC
I am seeing the same thing:
Traceback (most recent call last):
  File "setup.py", line 118, in ?
  File "/usr/lib/python2.2/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/lib/python2.2/distutils/dist.py", line 902, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.2/distutils/dist.py", line 922, in run_command
    cmd_obj.run()
  File "setup.py", line 69, in run
  File "setup/togl_setup.py", line 149, in togl_install
TclError: can't read "::tcl::direct": no such variable

!!! ERROR: dev-python/PyOpenGL-2.0.0.44 failed.
!!! Function src_install, Line 50, Exitcode 1
!!! (no error message)

====
==


Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-xfs-r3)
=================================================================
System uname: 2.4.20-xfs-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/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="/usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ libwww
mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms
xv zlib gdbm berkdb slang readline arts nas svga X sdl gpm tcpd pam ssl perl
python esd imlib oggvorbis gnome gtk qt motif opengl mozilla acpi acpi4linux
alsa amd bidi bonobo cdr dvd evo flash foreign-package gtk2 imap java mule
samba sis tiff transcode unicode usb v4l pda tcltk mysql 3dnow mmx sse wmf"

Comment 4 Eamon Caddigan 2003-11-11 21:43:54 UTC
I get the same error, also using Tcl/Tk 8.4.4

I made an ebuild that implements the tcltk USE variable, '-tcltk' prevents Togl from being built and the error from occurring. I'm not sure if this will break anything, but bittorrent seems to work, and that's the only reason I needed PyOpenGL. 

HTH.
Comment 5 Eamon Caddigan 2003-11-11 21:46:51 UTC
Created attachment 20631 [details, diff]
Proposed patch to PyOpenGL-2.0.0.44-r1
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2003-11-19 17:31:04 UTC
Got bitten by the same issue.
The patch by Eamon Caddigan does what it should, when invoking
USE="-tcltk" emerge PyOpenGL

Please either commit that, or fix it through other means. This blocks pysoulseek and bittorrent.
Comment 7 Eamon Caddigan 2003-11-20 19:49:59 UTC
I've taken the first steps toward a better solution at Bug 4450 (http://bugs.gentoo.org/show_bug.cgi?id=4450). Once this work is done, users will be able to have both versions 8.3 and 8.4 of Tcl/Tk installed. 
Comment 8 Alastair Tse (RETIRED) gentoo-dev 2003-11-21 02:32:50 UTC
i'm not sure if slotting tcl/tk will help anything here. the problem is that the pyopengl guys are having trouble with tcl/tk 8.4.x and are going to drop support for togl in the next stable release. the togl stuff had worked previously with older versions of tk-8.4.x, just not 8.4.4.

i actually have no idea why bittorrent uses pyopengl :/ that probably gets pulled from wxPython which it depends on. bittorrent doesn't use opengl at all, so if you have -opengl when you merge bittorrent, it shouldn't pull it in. there maybe a couple of apps that use togl (tk opengl component)
Comment 9 Eamon Caddigan 2003-11-21 10:50:04 UTC
In that case, perhaps a tcltk USE flag *is* the better solution after all. I don't 
think PyOpenGL should drop a potentially useful part of the package yet -- USE 
flags seem to be perfectly suited to this task, since people can choose if they 
want it or not. 

Thanks for the tip about "-opengl"; I hadn't thought of that one. 
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-11-21 13:10:18 UTC
well, it is not up to us to maintain parts which are not maintained by pyopengl. also, nothing in portage uses the togl components from pyopengl. 

the next pyopengl release will most likely not even have the togl stuff included according to their mailing list.
Comment 11 Simon Cooper 2003-12-05 14:53:14 UTC
same problem for me when upgrading to python2.3 & rebuilding directly linked packages. the tcltk use flag patch works fine for me
Comment 12 Alastair Tse (RETIRED) gentoo-dev 2003-12-05 18:39:15 UTC
*** Bug 35169 has been marked as a duplicate of this bug. ***
Comment 13 Alastair Tse (RETIRED) gentoo-dev 2003-12-05 19:51:11 UTC
*** Bug 34873 has been marked as a duplicate of this bug. ***
Comment 14 Alastair Tse (RETIRED) gentoo-dev 2003-12-05 19:57:40 UTC
i've disabled togl with Eamon's solution. My apologies for this taking so long to solve, which in fact was a simple workaround in the first place.

i'm keeping this open until we have a real solution to this. i'd like to see how much effort it is to get togl working for tk-8.4.4.
Comment 15 Mikael Andersson 2003-12-31 21:49:51 UTC
im traing to build PyOpenGL-2.0.0.44 becus im wanto us  bittorrent  do eney bodey cnown what is wrong?  im using gnome whit swedis in gnome-terminal the problem is i can onley get the errors in swe do sombodey cnown how i do to get error in eng

//Im dyslectic


copying OpenGL/Demo/dek/PILNumeric.py -> build/lib.linux-i686-2.2/OpenGL/Demo/de k
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/texturesurf.py to 1007 55
warning: build_py: package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' no t found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/Geometry.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/triangle.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface/triangle.py  to 100755
copying OpenGL/Demo/dek/OglSurface/NumericPDB.py -> build/lib.linux-i686-2.2/Ope nGL/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/OglFrame.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface/OglFrame.py  to 100755
warning: build_py: package init file 'OpenGL/Demo/GLE/__init__.py' not found (or  not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/GLE
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/cone.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/maintest.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/texas.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/helix.py to 100755
warning: build_py: package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/da
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/da/dots.py to 100755
warning: build_py: package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/scripts
changing mode of build/lib.linux-i686-2.2/OpenGL/scripts/info.py to 100755
warning: build_py: package init file 'OpenGL/Demo/twburton/__init__.py' not foun d (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/simple/__init__.py' not found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/redbook/__init__.py' not found  (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/NeHe/__init__.py' not found (o r not a regular file)
warning: build_py: package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not  found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/tom/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/dek/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' no t found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/GLE/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file)
warning: build_py: package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file)
running build_clib
building 'interface_util' library
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -fPIC -DGLX_PLATFORM -I/usr/include/python2.2 -I/usr/include -I/usr /local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/us r/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Is rc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.2/i nterface_util.o
I fil includerad fr
Comment 16 Mikael Andersson 2003-12-31 21:49:51 UTC
im traing to build PyOpenGL-2.0.0.44 becus im wanto us  bittorrent  do eney bodey cnown what is wrong?  im using gnome whit swedis in gnome-terminal the problem is i can onley get the errors in swe do sombodey cnown how i do to get error in eng

//Im dyslectic


copying OpenGL/Demo/dek/PILNumeric.py -> build/lib.linux-i686-2.2/OpenGL/Demo/de k
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/texturesurf.py to 1007 55
warning: build_py: package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' no t found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/Geometry.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/triangle.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface/triangle.py  to 100755
copying OpenGL/Demo/dek/OglSurface/NumericPDB.py -> build/lib.linux-i686-2.2/Ope nGL/Demo/dek/OglSurface
copying OpenGL/Demo/dek/OglSurface/OglFrame.py -> build/lib.linux-i686-2.2/OpenG L/Demo/dek/OglSurface
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/dek/OglSurface/OglFrame.py  to 100755
warning: build_py: package init file 'OpenGL/Demo/GLE/__init__.py' not found (or  not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/GLE
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/cone.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/maintest.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/texas.py to 100755
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/GLE/helix.py to 100755
warning: build_py: package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/Demo/da
changing mode of build/lib.linux-i686-2.2/OpenGL/Demo/da/dots.py to 100755
warning: build_py: package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file)
creating build/lib.linux-i686-2.2/OpenGL/scripts
changing mode of build/lib.linux-i686-2.2/OpenGL/scripts/info.py to 100755
warning: build_py: package init file 'OpenGL/Demo/twburton/__init__.py' not foun d (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/simple/__init__.py' not found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/redbook/__init__.py' not found  (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/NeHe/__init__.py' not found (o r not a regular file)
warning: build_py: package init file 'OpenGL/Demo/GLUT/examples/__init__.py' not  found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/tom/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/dek/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/dek/OglSurface/__init__.py' no t found (or not a regular file)
warning: build_py: package init file 'OpenGL/Demo/GLE/__init__.py' not found (or  not a regular file)
warning: build_py: package init file 'OpenGL/Demo/da/__init__.py' not found (or not a regular file)
warning: build_py: package init file 'OpenGL/scripts/__init__.py' not found (or not a regular file)
running build_clib
building 'interface_util' library
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -fPIC -DGLX_PLATFORM -I/usr/include/python2.2 -I/usr/include -I/usr /local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Isrc/gle/src -I/us r/include -I/usr/local/include -I/usr/X11R6/include -I/usr/lib/tk8.4/include -Is rc/gle/src -c src/interface_util/interface_util.c -o build/temp.linux-i686-2.2/i nterface_util.o
I fil includerad från /usr/X11R6/include/GL/glx.h:28,
                 från src/config.h:59,
                 från src/interface_util/interface_util.c:1:
/usr/X11R6/include/GL/gl.h:1731: motstridiga typer på "glMultiDrawArrays"
/usr/X11R6/include/GL/glext.h:2618: tidigare deklaration av "glMultiDrawArrays"
error: command 'gcc' failed with exit status 1
 
!!! ERROR: dev-python/PyOpenGL-2.0.0.44 failed.
!!! Function distutils_src_compile, Line 38, Exitcode 1
!!! compilation failed
Comment 17 Simon Cooper 2004-01-05 14:16:04 UTC
the -r1 ebuild works fine, I suggest committing it until a better solution is found.
Comment 18 Alastair Tse (RETIRED) gentoo-dev 2004-01-05 15:02:22 UTC
togl is disabled in the current pyopengl .. the comment 15 is not related to this problem, but something wrong with the user's opengl headers. please file another bug about it.

this bug should of been closed a while back. in fact we should look into upgrading to the latest pyopengl .. ;)