LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dev-python/pyopengl compilation failed ; why??? (https://www.linuxquestions.org/questions/linux-newbie-8/dev-python-pyopengl-compilation-failed-%3B-why-487671/)

serafean 09-28-2006 08:15 AM

dev-python/pyopengl compilation failed ; why???
 
Hi all,

I'm trying to install gentoo, after struggling with sata, I got a working kernel, and now am stuck in command line. When I try to do emerge gnome xscreensaver; After many succesfuly compiled files (about a 100); I get this :

Code:

!!! ERROR: dev-python/pyopengl-2.0.0.44 failed.
Call stack:
  ebuild.sh, line 1546:  Called dyn_unpack
  ebuild.sh, line 708:  Called src_unpack
  pyopengl-2.0.0.44.ebuild, line 34:  Called built_with_use 'dev-lang/python' 'tk'
  eutils.eclass, line 1614:  Called die

!!! dev-lang/python-2.4.3-r1 does not actually support the tk USE flag!

Any help appreciated, since I have no idea as what to do with this (tried USE="-tk"; USE="-gtk"; USE="-gtk2"). Thanks in advance.

OK, I cheated : did this "emerge --resume --skipfirst" Must sayI'm not really satisfied with this solution, what will the consequences be, is there any way to compile it after? Thanks

reddazz 09-28-2006 05:12 PM

Can you run
Code:

#emerge -pv python
Post back the results. It seems like there is a problem with the tk USE flag in python.

serafean 09-29-2006 05:19 AM

Hi, here is thou output :
Quote:

emerge -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] dev-lang/python-2.4.3-r4 [2.4.3-r1] USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -nocxx -tk% -ucs2 (-X%) (-tcltk%)" 7,827 kB

Total size of downloads: 7,827 kB
Don't know if colors matter, but :
-"berkdb gdbm ipv6 ncurses readline ssl" were red
-"-bootstrap -build -doc -nocxx -ucs2" were blue
-"-tk% (-X%) (-tcltk%) were yellow

thanks for the reply,

Serafean

reddazz 10-02-2006 03:08 AM

Try doing
Code:

#echo "dev-lang/python tk" >> /etc/portage/package.use
#emerge pyopengl


serafean 10-05-2006 11:15 AM

Thanks!! It worked!!pyopengl is installed; however, I find that programs take quite a long time to start (longer than with ubuntu). Any ideas as to the why?

reddazz 10-05-2006 11:39 AM

Quote:

Originally Posted by serafean
Thanks!! It worked!!pyopengl is installed; however, I find that programs take quite a long time to start (longer than with ubuntu). Any ideas as to the why?

I'm not really sure what could be causing that. On my system, KDE apps load up pretty fast (faster than any other distro I use). If you use GNOME, it could be a GNOME specific issue or maybe the options you choose when building the system or compiling packages.

serafean 10-05-2006 12:17 PM

I think I'll recompile (most likely after GNOME 2.16 is unmasked), going through the USE flags very carfully : I just threw in what I thought would be useful. If nothing helps, I'll just try out KDE.

Thanks for your help,

Serafean

granulite 10-10-2006 04:59 AM

Hi y'all,
I had a similar error and google led me here while looking for a solution; sadly,
Code:

#echo "dev-lang/python tk" >> /etc/portage/package.use
did not fix it :( . (Although I do know what it did, which is pretty good for me).
I first came across this error when trying to merge gimp; my very knowledgeable housemate and linux mentor was puzzled and in the end we merged gimp without python; but gimp's not the only thing I want, so i figure I might as well try and get python going.
The ultimate error is as follows:
Code:

!!! ERROR: dev-python/pyopengl-2.0.1.09 failed.
Call stack:
  ebuild.sh, line 1546:  Called dyn_unpack
  ebuild.sh, line 708:  Called src_unpack
  pyopengl-2.0.1.09.ebuild, line 32:  Called built_with_use 'dev-lang/python' 'tk'
  eutils.eclass, line 1619:  Called die

!!! dev-lang/python-2.4.2 does not actually support the tk USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

I've done emerge --sync, in case anything was out of date -- but that didn't help.

Any more ideas?
Thanks

serafean 10-11-2006 01:29 PM

Hi,
You might have luck if you try out :
Code:

USE="tk" emerge pyopengl
And (stupid question but I "must" ask) have you done "echo "dev-lang/python tk" >> /etc/portage/package.use" as root?

granulite 10-12-2006 06:55 AM

Quote:

Originally Posted by serafean
And (stupid question but I "must" ask) have you done "echo "dev-lang/python tk" >> /etc/portage/package.use" as root?

:) yes I did that as root. And it was there when I went into the file to take a look.

this is actually solved... sorry for the delay... I gotta say that I've forgotten exactly how the problem worked, but it boiled down to emerge trying to bring in an old version of python that didn't use tk, but still asked for the tk use flag. I think we ended up emerging the new python, then going on to do everything else, which worked just fine.

So sorry, I know that's not heaps informative for anyone with the same problem: basically, make sure your python is up to date?

navaburo 04-15-2007 12:54 PM

Problem solved
 
I had issues similar to granulite.

To solve do this:

Code:

emerge python
emerge gimp

it seems that tcl/tk is a dependency for python that was not correctly calculated by emerge gimp.


All times are GMT -5. The time now is 10:59 AM.