Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33756 - emerge sync crashed with AttributeError
Summary: emerge sync crashed with AttributeError
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 07:12 UTC by Gunar Dierigen
Modified: 2011-10-30 22:18 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 Gunar Dierigen 2003-11-18 07:12:11 UTC
>>> Updating Portage cache...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1820, in ?
    portage.db["/"]["porttree"].dbapi.flush_auxcache()
AttributeError: portdbapi instance has no attribute 'flush_auxcache'


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2.
3.

Actual Results:  
>>> Updating Portage cache...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1820, in ?
    portage.db["/"]["porttree"].dbapi.flush_auxcache()
AttributeError: portdbapi instance has no attribute 'flush_auxcache'
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-18 11:04:09 UTC
please post the following:

emerge -V
ls -l /usr/lib/portage/pym/portage.py
ls -l /usr/lib/python2.2/site-packages/portage.py
ls -d /var/db/pkg/sys-apps/portage*
Comment 2 Gunar Dierigen 2003-11-18 11:23:22 UTC
#emerge -V
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)

#ls -l /usr/lib/portage/pym/portage.py
-rw-r--r--    1 root     root       172266 Oct 13 21:39 /usr/lib/portage/pym/portage.py

#ls -l /usr/lib/python2.2/site-packages/portage.py
ls: /usr/lib/python2.2/site-packages/portage.py: No such file or directory

#ls -d /var/db/pkg/sys-apps/portage*
/var/db/pkg/sys-apps/portage-2.0.49-r14
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-11-24 21:28:24 UTC
Hmm, what python version do you have ?
Comment 4 Gunar Dierigen 2003-11-25 01:12:26 UTC
How can I check my python version?
Comment 5 Gunar Dierigen 2003-11-25 04:48:04 UTC
# emerge -up system

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

Calculating system dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 2103, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1034, in xcreate
    if not self.create(myk):
  File "/usr/bin/emerge", line 747, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/usr/bin/emerge", line 846, in select_dep
    mycheck=portage.dep_check(depstring,self.mydbapi[myroot],myuse=myuse)
  File "/usr/lib/portage/pym/portage.py", line 2617, in dep_check
    prefix=mydep[:2]
  File "/usr/lib/python2.2/string.py", line 122, in split
    return s.split(sep, maxsplit)
AttributeError: 'list' object has no attribute 'split'
#
Comment 6 Gunar Dierigen 2003-11-25 04:49:24 UTC
My Python Version:

# python
Python 2.2.3 (#1, Sep 11 2003, 08:34:13)
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
#
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2003-11-27 21:54:55 UTC
rm /usr/lib/python2.2/site-packages/*.py[co]

Comment 8 Gunar Dierigen 2003-11-30 11:46:00 UTC
It works now but I don't know if it was a bug.
Something was wrong with python...

Thanks to Marius, Nicholas!