Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47070 - emerge sync fails
Summary: emerge sync fails
Status: RESOLVED DUPLICATE of bug 47063
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 04:53 UTC by Thomas Stein
Modified: 2005-07-17 13:06 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 Thomas Stein 2004-04-07 04:53:23 UTC
Hello

I can`t use emerge anymore. Here is the output:

getriebe root # emerge sync
Traceback (most recent call last):
  File "/usr/bin/emerge", line 14, in ?
    import portage
  File "/usr/lib/portage/pym/portage.py", line 6128, in ?
    settings.regenerate() # XXX: Regenerate use after we get a vartree -- GLOBAL
  File "/usr/lib/portage/pym/portage.py", line 1392, in regenerate
    self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 1121, in autouse
    myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3309, in dep_check
    mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
  File "/usr/lib/portage/pym/portage.py", line 3052, in dep_zapdeps
    myresult=dep_zapdeps(unreduced[x],reduced[x])
  File "/usr/lib/portage/pym/portage.py", line 3038, in dep_zapdeps
    elif myportapi.match(x):
AttributeError: 'NoneType' object has no attribute 'match'

Any help would be great.

Thomas

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Kostas Liakakis 2004-04-07 06:41:03 UTC
Had the same problem...
Ended up editting /usr/lib/portage/pym/portage.py, commenting out lines 3038 and 3039. 
It works now, but I don't know what the long term sideffects will be...

I hope developers will comment on this soon.

-K.

PS. It will break again if a new portage is installed, so you have to edit this again.
Comment 2 Panard 2004-04-07 07:07:54 UTC
This problem appear to me after an "emerge sync" which fails at the end during the update of portage cache (I didn't have any output, sorry..., but the end is the same error as in comment 1)
So I change the line 3038 of /usr/lib/portage/pym/portage.py
    elif myportapi.match(x):
by
    elif myportapi is not None and myportapi.match(x):

then I do a 
$ emerge-webrsync
all seems to work again...
Comment 3 Rainer Größlinger (RETIRED) gentoo-dev 2004-04-07 10:58:58 UTC

*** This bug has been marked as a duplicate of 47063 ***