Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13658 - unsubscriptable object
Summary: unsubscriptable object
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-10 13:40 UTC by Colin Burnett
Modified: 2011-10-30 22:17 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 Colin Burnett 2003-01-10 13:40:37 UTC
I'm trying to install the alsa-driver by:  
env ALSA_CARDS='ymf724' emerge alsa-driver  
  
and I get:  
Calculating dependencies   !!! Name error in : category or package part  
missing.  
Traceback (most recent call last):  
  File "/usr/bin/emerge", line 1220, in ?  
    mykey=portage.db[portage.root]["porttree"].dep_bestmatch(mypkg)  
  File "/usr/lib/python2.2/site-packages/portage.py", line 2094, in  
dep_bestmatch  
    mypkgdep=self.dep_pkgcat(mypkgdep)  
  File "/usr/lib/python2.2/site-packages/portage.py", line 2077, in dep_pkgcat  
    if self.hasnode(cat+"/"+mypkgdep_packagename):  
  File "/usr/lib/python2.2/site-packages/portage.py", line 1893, in hasnode  
    myreskey=self.resolve_key(mykey)  
  File "/usr/lib/python2.2/site-packages/portage.py", line 1842, in  
resolve_key  
    self.load(mykey)  
  File "/usr/lib/python2.2/site-packages/portage.py", line 1801, in load  
    self.populate()  
  File "/usr/lib/python2.2/site-packages/portage.py", line 2498, in populate  
    self.domask()  
  File "/usr/lib/python2.2/site-packages/portage.py", line 2506, in domask  
    self.zap(y)  
  File "/usr/lib/python2.2/site-packages/portage.py", line 1813, in zap  
    mykey=cps[0]+"/"+cps[1]  
TypeError: unsubscriptable object  
 
I recently performed an emerge rsync and I could emerge packages before but 
not after (I have tried installing other packages and am left with same 
error).  It seems that I can't perform another emerge rsync as it displays 
 
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage... 
 
and waits.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-01-11 19:04:44 UTC
What version of portage are you using?

emerge -V
if it's older than 2.0.44, then use the rescue portage,
then update portage with an 'emerge portage'.

cd /usr/portage/sys-apps/portage/files/
less README.RESCUE
Comment 2 Colin Burnett 2003-01-11 22:39:30 UTC
# emerge --version 
Portage 1.9.10 
 
I guess that would be less than 2.0.44. :) 
Comment 3 Lim Swee Tat (RETIRED) gentoo-dev 2003-01-20 20:55:26 UTC
I'm not sure if this is related.  But is there any advise for this problem??

[~] $ emerge -p world

These are the packages that I would merge, in order:

Calculating world dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 1547, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 701, in xcreate
    myeb=portage.portdb.xmatch("bestmatch-visible",mydep)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3214, in xmatch
    myval=best(self.xmatch("match-visible",None,mydep,mykey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 3225, in xmatch
    myval=self.match2(mydep,mykey,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/python2.2/site-packages/portage.py", line 3211, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/python2.2/site-packages/portage.py", line 3293, in gvisible
    myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 2972, in aux_get
    myebuild=self.findname(mycpv)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2953, in findname
    myloc=self.oroot+"/"+mysplit[0]+"/"+psplit[0]+"/"+mysplit[1]+".ebuild"
TypeError: unsubscriptable object
[st_lim@rei (Tue Jan 21 10:05:46)]
[~] $ emerge -V
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-02-21 05:46:56 UTC
Try a current portage.
emerge rsync
emerge portage
Comment 5 witr 2003-05-04 18:17:14 UTC
Suddenly, I am having this exact problem:

spooky root # emerge -f xfree
Calculating dependencies ...done!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1862, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1098, in merge
    y=portage.portdb.findname(x[2])
  File "/usr/lib/python2.2/site-packages/portage.py", line 3025, in findname
    myloc=self.oroot+"/"+mysplit[0]+"/"+psplit[0]+"/"+mysplit[1]+".ebuild"
TypeError: unsubscriptable object
spooky root # emerge -V
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)

I get the same result from "emerge -fp world"
Comment 6 witr 2003-05-04 18:30:40 UTC
... and I just discovered that if I unmerged Xft and retried the "emerge -f xfree"
command it worked!  I think this points to the code related to packages that
are blocked...