Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41540 - portage crash; File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expand....
Summary: portage crash; File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expa...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Portage team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-14 00:49 UTC by Christoph Doblander
Modified: 2004-04-09 13:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
my /usr/bin/emerge (emerge,73.73 KB, application/octet-stream)
2004-02-14 00:53 UTC, Christoph Doblander
Details
my /usr/lib/portage/pym/portage.py file (portage.py,169.93 KB, text/x-python)
2004-02-14 00:54 UTC, Christoph Doblander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Doblander 2004-02-14 00:49:18 UTC
"Bad example: I can't emerge anything! Gentoo is broken!"
Yes it's true. I made a emerge -u world, and  then get lots auf errors. I haven't done something special. I just wanted "emerge ddd".

Reproducible: Couldn't Reproduce
Steps to Reproduce:
1.
2.
3.




root@buzz bin # emerge info
 
 
Performing Global Updates: /usr/portage/profiles/updates/1Q-2004
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
portage: Update type "" not recognized.
 
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1954, in ?
    print getportageversion()
  File "/usr/bin/emerge", line 309, in getportageversion
    for x in portage.vardbapi(portage.root).match("glibc"):
  File "/usr/lib/portage/pym/portage.py", line 3362, in match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/portage/pym/portage.py", line 2694, in cpv_expand
    if mydb.cp_list(x+"/"+myp):
  File "/usr/lib/portage/pym/portage.py", line 3311, in cp_list
    mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str
root@buzz bin #

root@buzz bin # emerge -up world
 
 
Performing Global Updates: /usr/portage/profiles/updates/1Q-2004
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
portage: Update type "" not recognized.
 
 
These are the packages that I would merge, in order:
 
Calculating world dependencies ...done!
INCOMPLETE MERGE: /var/db/pkg/sys-fs/-MERGING-devfsd-1.3.25-r3
[ebuild  N    ] sys-fs/devfsd-1.3.25-r3
[ebuild     U ] sys-apps/portage-2.0.50-r1 [2.0.49-r21]
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.
 
[ebuild     UD] sys-apps/findutils-4.1.7-r1 [4.1.20-r1]
INCOMPLETE MERGE: /var/db/pkg/sys-kernel/-MERGING-linux-headers-2.4.21
[ebuild  N    ] sys-kernel/linux-headers-2.4.21
[ebuild     U ] sys-apps/baselayout-1.8.6.13 [1.8.6.10-r1]
 
root@buzz bin #

root@buzz bin # emerge ddd
 
 
Performing Global Updates: /usr/portage/profiles/updates/1Q-2004
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
portage: Update type "" not recognized.
 
Calculating dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2181, in ?
    retval,favorites=mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 794, in select_files
    mykey=portage.dep_expand(x,portage.portdb)
  File "/usr/lib/portage/pym/portage.py", line 2748, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/portage/pym/portage.py", line 2694, in cpv_expand
    if mydb.cp_list(x+"/"+myp):
  File "/usr/lib/portage/pym/portage.py", line 4024, in cp_list
    list=listdir(self.root+"/"+mycp,EmptyOnError=1)
  File "/usr/lib/portage/pym/portage.py", line 225, in listdir
    if os.path.isdir(mypath):
  File "/usr/lib/python2.3/posixpath.py", line 187, in isdir
    st = os.stat(path)
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str
root@buzz bin #



Have a look here: http://forums.gentoo.org/viewtopic.php?p=864890#864890

If you need some special files, please mail to me. I send you my config files
and everything you need.
Comment 1 Christoph Doblander 2004-02-14 00:53:27 UTC
Created attachment 25577 [details]
my /usr/bin/emerge
Comment 2 Christoph Doblander 2004-02-14 00:54:35 UTC
Created attachment 25578 [details]
my /usr/lib/portage/pym/portage.py file
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 11:48:25 UTC
The bug happens yet?
let us know.
Comment 4 Christoph Doblander 2004-04-09 13:11:07 UTC
My Harddisk carshed => reinstalled gentoo 2004.0

I can't reproduce it, and it seems that I'm the only one who had/have this problem.
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 13:48:05 UTC
OK, thanks for reporting.