On Saturday 15 February 2003 04:41 am, Alex Holden wrote:
> Hi, I'm building a new system, and I've managed to break it just by
> running "emerge python". What happened was that I emerged fetchmail, and
> it said that in order for "fetchmailconf" to work I would have to
> re-emerge python with the tcltk USE flag set. Actually that flag was
> already set, but I think python was built as part of system before I
> emerged ufed and set up the flags. Anyway, I ran "emerge python" and it
> seemed to build and install just fine, but afterwords, every time python
> starts it prints "'import site' failed; use -v for traceback", and when
> I try to run emerge it says:
>
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "/usr/bin/emerge", line 2, in ?
>     import os,sys,portage,xpak,string,re,commands,time,threading,shutil
> ImportError: No module named portage
>
> If I run "python -v /usr/bin/emerge" it says among other things:
> 'import site' failed; traceback:
> Traceback (most recent call last):
>   File "/usr/lib/python2.2/site.py", line 84, in ?
>     if dir and not os.path.exists(dir):
> AttributeError: 'module' object has no attribute 'argv'
>
> Thinking maybe the portage python module had been deleted or corrupted
> or something, I tried untarring the portage rescue tarball (I couldn't
> emerge it of course because emerge is broken). It didn't make any
> difference to the problem (but it did overwrite /etc/make.conf)
>
> Any ideas why Python has broken (was it something I did wrong or a bug
> in the ebuild?) and more importantly, how can I fix it without
> reinstalling from scratch?

This won't help you, but I always add tcltk to USE flags (you need it to get 
tkinter), and python always builds without any problems.  In your current 
situation, get one of the /usr/portage/sys-apps/files/portage-rescue... 
files.

--
Collins - kmail 3.1 test

--
[EMAIL PROTECTED] mailing list

Reply via email to