View previous topic :: View next topic |
Author |
Message |
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Sun Sep 13, 2009 5:41 pm Post subject: gcc upgrade broke emerge [SOLVED] |
|
|
Hi all,
After having emerged world, I wanted to upgrade gcc.
I followed the gcc upgrade guide and things were running smooth on rebuilding system (emerge -ev system).
However, when rebuilding world, things got suddendly worst :
Quote: |
localhost luc # emerge -pev world
Traceback (most recent call last):
File "/usr/bin/emerge", line 40, in <module>
retval = _emerge.emerge_main()
File "/usr/lib64/portage/pym/_emerge/__init__.py", line 15464, in emerge_main
portdb = trees[settings["ROOT"]]["porttree"].dbapi
File "/usr/lib64/portage/pym/portage/util.py", line 1117, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1121, in __init_
_
settings["PORTDIR"], mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 293, in __init__
self.auxdbmodule = self.mysettings.load_best_module("portdbapi.auxdbmodule")
File "/usr/lib64/portage/pym/portage/__init__.py", line 2011, in load_best_mod
ule
mod = load_mod(best_mod)
File "/usr/lib64/portage/pym/portage/__init__.py", line 171, in load_mod
mod = __import__(modname)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 14, in <module>
from pysqlite2 import dbapi2 as db_module
File "/usr/lib64/python2.6/site-packages/pysqlite2/dbapi2.py", line 27, in <mo
dule>
from pysqlite2._sqlite import *
ImportError: /usr/lib64/python2.6/site-packages/pysqlite2/_sqlite.so: undefined
symbol: PyUnicodeUCS2_DecodeUTF8
|
Any ideas of what went wrong ?
Last edited by E001754 on Sun Sep 13, 2009 9:16 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Sep 13, 2009 6:10 pm Post subject: |
|
|
have you run python-updater? |
|
Back to top |
|
|
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Sun Sep 13, 2009 6:42 pm Post subject: |
|
|
yes. It says nothing.
When I invoke "python" on command line, it enters into a shell that seems to be python and says "python 2.6.2".
eselect python list says that python 2.6 is currently selected (with a '*') and all others python (2.4 and 2.5) are now gone (I ran an emerge --depclean before upgrading gcc). |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Sun Sep 13, 2009 7:01 pm Post subject: |
|
|
There is a Guide here to fix a broken emerge. |
|
Back to top |
|
|
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Sun Sep 13, 2009 8:51 pm Post subject: |
|
|
The guide didn't help.
The error message makes me think about broken mysql. |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Sun Sep 13, 2009 9:10 pm Post subject: |
|
|
Post the output of: Code: | cat /etc/portage/modules
cat /var/db/pkg/dev-lang/python-2.6*/USE |
|
|
Back to top |
|
|
E001754 Guru
Joined: 01 Aug 2004 Posts: 442 Location: Paris, France
|
Posted: Sun Sep 13, 2009 9:16 pm Post subject: |
|
|
Found it : it was pysqlite2 that was broken. Manually re-installing it repaired portage.
For security, I re-emerged portage, mysql and pysqlite2.
Thanks all for your help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|