Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69897 - Pysol won't build
Summary: Pysol won't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 15:28 UTC by Brett I. Holcomb
Modified: 2004-12-16 04:49 UTC (History)
0 users

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 Brett I. Holcomb 2004-11-02 15:28:53 UTC
It's broken again.  I'm running the portage with info below and I get this even after reemerging python with 

USE="tcltk" emerge python and then trying emerge pysol.

Any ideas?

root@gandalf files # emerge pysol
Calculating dependencies ...done!
>>> emerge (1 of 1) games-board/pysol-4.82 to /
>>> md5 src_uri ;-) pysol-4.82.tar.bz2
 * You need to recompile python with Tkinter support.
 * That means: USE='tcltk' emerge python


!!! ERROR: games-board/pysol-4.82 failed.
!!! Function pkg_setup, Line 25, Exitcode 0
!!! missing tkinter support with installed python
!!! If you need support, post the topmost build error, NOT this status message.

root@gandalf files # emerge --info
Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.2
fs-r8 i686)
=================================================================
System uname: 2.4.24-xfs-r8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/
hare/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/
.d"
CXXFLAGS="-march=pentium3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety
p.ecn.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ 
://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gento
tp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ f
//gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acpi alsa apm berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 fbco
oomaticdb gdbm gpm gtk2 java jpeg libg++ mad ncurses nls odbc opengl pam pass
e perl postgres python readline samba slang slp snmp ssl svga tcltk tcpd true
e usb x86 zlib"
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2004-11-02 18:25:56 UTC
What version of Python?
Comment 2 Brett I. Holcomb 2004-11-02 19:09:42 UTC
Sorry.  Forgot the most important thing! Python 2.3.4.

Python 2.3.4 (#1, Oct 30 2004, 19:45:59) 
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.3/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.3/lib-dynload/readline.so
>>> 
Comment 3 Brett I. Holcomb 2004-11-02 19:10:17 UTC
Sorry, forgot the most important thing!  Version 2.3.4

Python 2.3.4 (#1, Oct 30 2004, 19:45:59) 
[GCC 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.3/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib/python2.3/lib-dynload/readline.so
>>> 
Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2004-11-03 10:49:31 UTC
What error do you get when you run this:
python -c "import Tkinter"

This may be the same problem in bug# 61870
If you have dev-tcltk/blt emerged, could you please take a look at that bug and let us know if its the same? Thanks.
Comment 5 Brett I. Holcomb 2004-11-03 15:35:38 UTC
This is what I get:

root@gandalf root # python -c "import Tkinter"
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named Tkinter

I do not have blt installed.

root@gandalf root # emerge -s blt | more
Searching...   ..... ..... ..... ..... ..... ..... ..... ..... ..... ..... .....
 ..... ..... ..... ..... ..  
[ Results for search key : blt ]
[ Applications found : 1 ]
 
*  dev-tcltk/blt
      Latest version available: 2.4z
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 2,149 kB
      Homepage:    http://blt.sf.net
      Description: BLT is an extension to the Tk toolkit adding new widgets, geo
metry managers, and miscellaneous commands.
      License:     BSD
Comment 6 Brett I. Holcomb 2004-11-14 11:05:18 UTC
Any progress on this?  Do you need more information?

Comment 7 Rob Cakebread (RETIRED) gentoo-dev 2004-11-18 15:11:17 UTC
WHat version of dev-lang/tcl and dev-lang/tk do you have? Have you tried re-emerging those?
Comment 8 Brett I. Holcomb 2004-11-18 17:45:26 UTC
Here it is.   I remerged these and still get the error w

USE="tcltk" emerge pysol
Calculating dependencies  ...done!
>>> emerge (1 of 1) games-board/pysol-4.82 to /
>>> md5 src_uri ;-) pysol-4.82.tar.bz2
 * You need to recompile python with Tkinter support.


*  dev-lang/tcl
      Latest version available: 8.4.6
      Latest version installed: 8.4.6
      Size of downloaded files: 3,367 kB
      Homepage:    http://dev.scriptics.com/software/tcltk/
      Description: Tool Command Language
      License:     BSD

*  dev-lang/tk
      Latest version available: 8.4.6-r1
      Latest version installed: 8.4.6-r1
      Size of downloaded files: 3,155 kB
      Homepage:    http://dev.scriptics.com/software/tcltk/
      Description: Tk Widget Set
      License:     BSD
Comment 9 Brett I. Holcomb 2004-11-30 17:07:41 UTC
Any progress on this - do you need more info?
Comment 10 Rob Cakebread (RETIRED) gentoo-dev 2004-12-09 16:05:25 UTC
I'm using the exact versions as you, Brett but can't reproduce this on any of my machines.
Do these files and directory exist?
/usr/lib/python2.3/lib-tk/
/usr/lib/python2.3/lib-tk/Tkinter.py
/usr/lib/python2.3/lib-tk/Tkinter.pyc
/usr/lib/python2.3/lib-tk/Tkinter.pyo
Comment 11 Brett I. Holcomb 2004-12-09 18:14:12 UTC
Strange!  

root@gandalf root # ls /usr/lib/python2.3/lib-tk
ls: /usr/lib/python2.3/lib-tk: No such file or directory

But (as listed previously) they show installed.  I reinstall tk and tcl and still don't have the directory.

*  dev-lang/tk
      Latest version available: 8.4.6-r1
      Latest version installed: 8.4.6-r1
      Size of downloaded files: 3,155 kB
      Homepage:    http://dev.scriptics.com/software/tcltk/
      Description: Tk Widget Set
      License:     BSD
*  dev-lang/tcl
      Latest version available: 8.4.6
      Latest version installed: 8.4.6
      Size of downloaded files: 3,367 kB
      Homepage:    http://dev.scriptics.com/software/tcltk/
      Description: Tool Command Language
      License:     BSD
Comment 12 Brett I. Holcomb 2004-12-10 20:22:13 UTC
Tonight I went to run fetchmailconf and got the error below.  I then remerged Python with 

 USE="tcltk" emerge python

Still can't install pysol or run fetchmailconf.

Any ideas on what might be broken?


root@gandalf root # fetchmailconf
Traceback (most recent call last):
  File "/usr/bin/fetchmailconf", line 9, in ?
    from Tkinter import *
ImportError: No module named Tkinter
Comment 13 Brett I. Holcomb 2004-12-11 09:34:52 UTC
More info.  I went to install Spamassassin last night and it installed some Perl stuff such as HTML parser.  However, spamd or spamassassin would not run and gave an error (lots of errors) such  as

"Can't locate HTML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.2/i686-linux "
/usr/lib/perl5/vendo"

Today my emerge -uD world -p showed I needed to update HTML Parser which I did.  Now SA works but pysol still won't merge.

However, I tried to run ufed and got more messages about perl stuff missing.

Can't locate Term/ReadKey.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux .) at /usr/sbin/ufed line 11.
BEGIN failed--compilation aborted at /usr/sbin/ufed line 11.

I'm beginning to think something is broken here.  This has been a 2.4 running for a year, I upgraded to 2.6.9 in the last month but haven't seen anything else break.

revdep-rebuild says I'm consistant. 

When I add tcltk to the /etc/portage/package.use or do USES=tcltk and then remerge python pysol still tells me to install python with TKINTER support!

Any ideas on what to do next?  Should I rebuild everything with the emerge -eUd world (or something else)?

Thanks.
Comment 14 Brett I. Holcomb 2004-12-13 16:41:49 UTC
Grr!  I ran 

sh /usr/portage/dev-lang/perl/files/libperl_rebuilde

and now perl stuff like ufed work so that's fixed.

Any ideas on pysol?
Comment 15 Rob Cakebread (RETIRED) gentoo-dev 2004-12-15 12:32:36 UTC
Do you see any directories like /usr/lib/python**/lib-tk
when you run:
qpkg -l dev-lang/python |grep tk

Is there any lib-tk directories on your system, checking with 'locate lib-tk'?

If not, emerge python with USE='-build X tcltk' and see if theres some error in the compile output when it tries to build the tcltk portion.
Comment 16 Brett I. Holcomb 2004-12-15 18:11:14 UTC
qpkg -l dev-lang/python |grep tk gives this:

/usr/lib/python2.2/lib-tk only.


locate lib-tk gives:

Yes, /usr/lib/python2.2/lib-tk

but I show version 2.3.4 of python installed.

If not, emerge python with USE='-build X tcltk' and see if theres some error in the compile output when it tries to build the tcltk portion.

Doing that now and will let you know.
Comment 17 Brett I. Holcomb 2004-12-15 18:19:41 UTC
Re merging as instructed worked - pysol built.  Now I have lib2.3 versions.

Boy do I feel stupid <G>.  I had -X in /etc/make.conf.  I apologize and thank you for the help.  My only excuse - and a poor one at that <G> is that this machine is basically a file server and has been for a long time.  I'm only using it now because my main machine has a ghost ex machinus <G>.  Every so often my regular machine - at irregular times, sometimes 6 months apart, sometimes a week, a drive in the RAID 5 array dies.  When I try to recover another drive get's marked bad.  I've swapped RAID cards (Adaptec 3210S, drives, drive caddys, cables, everything) and it still happens.  It appears to be a hardware issue but I can't find it.  I may swap the motherboard next (an Asus dual AMD 1.9 board)!  In short, until I figure out what to do I made this machine my main machine so I'm adding mail, etc. to it!  

Thank you and sorry to have caused a wild goose chase.
Comment 18 Rob Cakebread (RETIRED) gentoo-dev 2004-12-15 20:11:50 UTC
No, problem, Brett. Closing.
Comment 19 Brett I. Holcomb 2004-12-16 04:49:52 UTC
Thanks.  I just wish I could find out what's wrong with my main system.  I may pull the Adaptec RAID and put in a normal SCSI card.