Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43011 - portage broken after upgrading to 2.0.50-r1, 'TypeError: dep_check() takes at least 3 non-keyword arguments (2 given)'
Summary: portage broken after upgrading to 2.0.50-r1, 'TypeError: dep_check() takes at...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Portage team
URL: http://ian.n0de.ca/error.txt
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-26 11:34 UTC by Ian Frazer
Modified: 2004-04-10 19:30 UTC (History)
2 users (show)

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 Ian Frazer 2004-02-26 11:34:37 UTC
Upgrading to portage-2.0.50-r1 gives me this error everytime i try and run emerge -p anypackage

madbox root # emerge -p portage

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

--- DEPRECATED call to getvirtual
Calculating dependencies \
!!! Problem in sys-apps/portage dependencies.
!!! dep_check() takes at least 3 non-keyword arguments (2 given)

and this with emerge -pu world

madbox root # emerge -pu world

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

--- DEPRECATED call to getvirtual
Calculating world dependencies \Traceback (most recent call last):
  File "/bin/emerge", line 2103, in ?
    if not mydepgraph.xcreate(myaction):
  File "/bin/emerge", line 1034, in xcreate
    if not self.create(myk):
  File "/bin/emerge", line 747, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/bin/emerge", line 846, in select_dep
    mycheck=portage.dep_check(depstring,self.mydbapi[myroot],myuse=myuse)
TypeError: dep_check() takes at least 3 non-keyword arguments (2 given)

and this when i run emerge sync

madbox root # emerge sync
>>> starting rsync with rsync://server.n0de.ca/gentoo-portage...
Traceback (most recent call last):
  File "/bin/emerge", line 1754, in ?
    exitcode=portage.spawn(mycommand,free=1)
TypeError: spawn() takes at least 2 non-keyword arguments (1 given)

dropping back to portage-2.0.49-r21 fixes the problem, but thats not really acceptable.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3. 




madbox root # emerge info 
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 
2.6.3-gentoo-r2) 
================================================================= 
System uname: 2.6.3-gentoo-r2 i686 AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.3.13 
distcc 2.12 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] 
ccache version 2.3 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.2/share/config:/usr/kde/cvs/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-xp -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache" 
GENTOO_MIRRORS="http://adelie.polymtl.ca http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages/athlon-xp" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://server.n0de.ca/gentoo-portage" 
USE="3dnow S3TC X aalib acpi acpi4linux alsa altivec applypatches arts 
artswrappersuid autofs avi berkdb canna cdr cjk crypt cups directfb doc dvd 
emacs encode esd faad fbcon ffmpeg flash foomaticdb foreign-package 
freewnn gdbm ggi gif gphoto2 gpm gtk gtk2 hyriand imap imlib ipv6 java 
javascript jpeg kde kerberos ldap leim libg++ libwww linguas_en_GB linguas_ja 
lirc mad maildir matroska mikmod motif mpeg nas ncurses nls nowin oav 
offensive oggvorbis opengl pam pdflib perl pic png ppds psyco python qt qt-mt 
qtmt quicktime readline rplay samba sdl snmp spell sse ssl stroke tcltk tcpd tiff 
truetype usb wxwindows x86 xine xinerama xml xml2 xmms xv xvid zlib" 
 
this is my first bug report so please let me know what more information you 
might need.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-04-08 19:31:22 UTC
This seems that the upgrade of portage did not complete successfully and a mix of files from the two versions is being used.

Can you try the upgrade again? If it still doesn't work, please attach the output of "python -v /usr/bin/emerge".
Comment 2 Ian Frazer 2004-04-09 22:03:39 UTC
The output from python -v /usr/bin/emerge as you requested,
This is with portage-2.0.50-r3.

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.3/site.pyc matches /usr/lib/python2.3/site.py
import site # precompiled from /usr/lib/python2.3/site.pyc
# /usr/lib/python2.3/os.pyc matches /usr/lib/python2.3/os.py
import os # precompiled from /usr/lib/python2.3/os.pyc
import posix # builtin
# /usr/lib/python2.3/posixpath.pyc matches /usr/lib/python2.3/posixpath.py
import posixpath # precompiled from /usr/lib/python2.3/posixpath.pyc
# /usr/lib/python2.3/stat.pyc matches /usr/lib/python2.3/stat.py
import stat # precompiled from /usr/lib/python2.3/stat.pyc
# /usr/lib/python2.3/UserDict.pyc matches /usr/lib/python2.3/UserDict.py
import UserDict # precompiled from /usr/lib/python2.3/UserDict.pyc
# /usr/lib/python2.3/copy_reg.pyc matches /usr/lib/python2.3/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.3/copy_reg.pyc
# /usr/lib/python2.3/types.pyc matches /usr/lib/python2.3/types.py
import types # precompiled from /usr/lib/python2.3/types.pyc
# /usr/lib/python2.3/warnings.pyc matches /usr/lib/python2.3/warnings.py
import warnings # precompiled from /usr/lib/python2.3/warnings.pyc
# /usr/lib/python2.3/linecache.pyc matches /usr/lib/python2.3/linecache.py
import linecache # precompiled from /usr/lib/python2.3/linecache.pyc
import encodings # directory /usr/lib/python2.3/encodings
# /usr/lib/python2.3/encodings/__init__.pyc matches /usr/lib/python2.3/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.3/encodings/__init__.pyc
# /usr/lib/python2.3/codecs.pyc matches /usr/lib/python2.3/codecs.py
import codecs # precompiled from /usr/lib/python2.3/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.3/encodings/utf_8.pyc matches /usr/lib/python2.3/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.3/encodings/utf_8.pyc
Python 2.3.3 (#1, Feb  6 2004, 20:42:02)
[GCC 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# /usr/lib/portage/pym/emergehelp.pyc matches /usr/lib/portage/pym/emergehelp.py
import emergehelp # precompiled from /usr/lib/portage/pym/emergehelp.pyc
# /usr/lib/portage/pym/output.pyc matches /usr/lib/portage/pym/output.py
import output # precompiled from /usr/lib/portage/pym/output.pyc
# /usr/lib/portage/pym/xpak.pyc matches /usr/lib/portage/pym/xpak.py
import xpak # precompiled from /usr/lib/portage/pym/xpak.pyc
# /usr/lib/python2.3/string.pyc matches /usr/lib/python2.3/string.py
import string # precompiled from /usr/lib/python2.3/string.pyc
dlopen("/usr/lib/python2.3/lib-dynload/strop.so", 2);
import strop # dynamically loaded from /usr/lib/python2.3/lib-dynload/strop.so
# /usr/lib/python2.3/re.pyc matches /usr/lib/python2.3/re.py
import re # precompiled from /usr/lib/python2.3/re.pyc
# /usr/lib/python2.3/sre.pyc matches /usr/lib/python2.3/sre.py
import sre # precompiled from /usr/lib/python2.3/sre.pyc
# /usr/lib/python2.3/sre_compile.pyc matches /usr/lib/python2.3/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.3/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.3/sre_constants.pyc matches /usr/lib/python2.3/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.3/sre_constants.pyc
# /usr/lib/python2.3/sre_parse.pyc matches /usr/lib/python2.3/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.3/sre_parse.pyc
# /usr/lib/python2.3/commands.pyc matches /usr/lib/python2.3/commands.py
import commands # precompiled from /usr/lib/python2.3/commands.pyc
dlopen("/usr/lib/python2.3/lib-dynload/time.so", 2);
import time # dynamically loaded from /usr/lib/python2.3/lib-dynload/time.so
# /usr/lib/python2.3/shutil.pyc matches /usr/lib/python2.3/shutil.py
import shutil # precompiled from /usr/lib/python2.3/shutil.pyc
# /usr/lib/python2.3/traceback.pyc matches /usr/lib/python2.3/traceback.py
import traceback # precompiled from /usr/lib/python2.3/traceback.pyc
# /usr/lib/python2.3/atexit.pyc matches /usr/lib/python2.3/atexit.py
import atexit # precompiled from /usr/lib/python2.3/atexit.pyc
# /usr/lib/python2.3/socket.pyc matches /usr/lib/python2.3/socket.py
import socket # precompiled from /usr/lib/python2.3/socket.pyc
dlopen("/usr/lib/python2.3/lib-dynload/_socket.so", 2);
import _socket # dynamically loaded from /usr/lib/python2.3/lib-dynload/_socket.so
dlopen("/usr/lib/python2.3/lib-dynload/_ssl.so", 2);
import _ssl # dynamically loaded from /usr/lib/python2.3/lib-dynload/_ssl.so
import errno # builtin
# /usr/lib/portage/pym/portage.pyc matches /usr/lib/portage/pym/portage.py
import portage # precompiled from /usr/lib/portage/pym/portage.pyc
# /usr/lib/python2.3/shlex.pyc matches /usr/lib/python2.3/shlex.py
import shlex # precompiled from /usr/lib/python2.3/shlex.pyc
dlopen("/usr/lib/python2.3/lib-dynload/cStringIO.so", 2);
import cStringIO # dynamically loaded from /usr/lib/python2.3/lib-dynload/cStringIO.so
dlopen("/usr/lib/python2.3/lib-dynload/fcntl.so", 2);
import fcntl # dynamically loaded from /usr/lib/python2.3/lib-dynload/fcntl.so
dlopen("/usr/lib/python2.3/lib-dynload/cPickle.so", 2);
import cPickle # dynamically loaded from /usr/lib/python2.3/lib-dynload/cPickle.so
dlopen("/usr/lib/python2.3/lib-dynload/grp.so", 2);
import grp # dynamically loaded from /usr/lib/python2.3/lib-dynload/grp.so
dlopen("/usr/lib/python2.3/lib-dynload/pwd.so", 2);
import pwd # dynamically loaded from /usr/lib/python2.3/lib-dynload/pwd.so
# /usr/lib/portage/pym/cvstree.pyc matches /usr/lib/portage/pym/cvstree.py
import cvstree # precompiled from /usr/lib/portage/pym/cvstree.pyc
# /usr/lib/python2.3/copy.pyc matches /usr/lib/python2.3/copy.py
import copy # precompiled from /usr/lib/python2.3/copy.pyc
# /usr/lib/portage/pym/getbinpkg.pyc matches /usr/lib/portage/pym/getbinpkg.py
import getbinpkg # precompiled from /usr/lib/portage/pym/getbinpkg.pyc
# /usr/lib/python2.3/htmllib.pyc matches /usr/lib/python2.3/htmllib.py
import htmllib # precompiled from /usr/lib/python2.3/htmllib.pyc
# /usr/lib/python2.3/sgmllib.pyc matches /usr/lib/python2.3/sgmllib.py
import sgmllib # precompiled from /usr/lib/python2.3/sgmllib.pyc
# /usr/lib/python2.3/markupbase.pyc matches /usr/lib/python2.3/markupbase.py
import markupbase # precompiled from /usr/lib/python2.3/markupbase.pyc
# /usr/lib/python2.3/formatter.pyc matches /usr/lib/python2.3/formatter.py
import formatter # precompiled from /usr/lib/python2.3/formatter.pyc
# /usr/lib/python2.3/htmlentitydefs.pyc matches /usr/lib/python2.3/htmlentitydefs.py
import htmlentitydefs # precompiled from /usr/lib/python2.3/htmlentitydefs.pyc
# /usr/lib/python2.3/HTMLParser.pyc matches /usr/lib/python2.3/HTMLParser.py
import HTMLParser # precompiled from /usr/lib/python2.3/HTMLParser.pyc
# /usr/lib/python2.3/tempfile.pyc matches /usr/lib/python2.3/tempfile.py
import tempfile # precompiled from /usr/lib/python2.3/tempfile.pyc
# /usr/lib/python2.3/random.pyc matches /usr/lib/python2.3/random.py
import random # precompiled from /usr/lib/python2.3/random.pyc
dlopen("/usr/lib/python2.3/lib-dynload/math.so", 2);
import math # dynamically loaded from /usr/lib/python2.3/lib-dynload/math.so
dlopen("/usr/lib/python2.3/lib-dynload/_random.so", 2);
import _random # dynamically loaded from /usr/lib/python2.3/lib-dynload/_random.so
import thread # builtin
# /usr/lib/python2.3/base64.pyc matches /usr/lib/python2.3/base64.py
import base64 # precompiled from /usr/lib/python2.3/base64.pyc
dlopen("/usr/lib/python2.3/lib-dynload/binascii.so", 2);
import binascii # dynamically loaded from /usr/lib/python2.3/lib-dynload/binascii.so
# /usr/lib/python2.3/ftplib.pyc matches /usr/lib/python2.3/ftplib.py
import ftplib # precompiled from /usr/lib/python2.3/ftplib.pyc
# /usr/lib/python2.3/httplib.pyc matches /usr/lib/python2.3/httplib.py
import httplib # precompiled from /usr/lib/python2.3/httplib.pyc
# /usr/lib/python2.3/mimetools.pyc matches /usr/lib/python2.3/mimetools.py
import mimetools # precompiled from /usr/lib/python2.3/mimetools.pyc
# /usr/lib/python2.3/rfc822.pyc matches /usr/lib/python2.3/rfc822.py
import rfc822 # precompiled from /usr/lib/python2.3/rfc822.pyc
# /usr/lib/python2.3/urlparse.pyc matches /usr/lib/python2.3/urlparse.py
import urlparse # precompiled from /usr/lib/python2.3/urlparse.pyc
dlopen("/usr/lib/python2.3/lib-dynload/select.so", 2);
import select # dynamically loaded from /usr/lib/python2.3/lib-dynload/select.so
dlopen("/usr/lib/python2.3/site-packages/fchksum.so", 2);
import fchksum # dynamically loaded from /usr/lib/python2.3/site-packages/fchksum.so
# /usr/lib/portage/pym/portage_db_cpickle.pyc matches /usr/lib/portage/pym/portage_db_cpickle.py
import portage_db_cpickle # precompiled from /usr/lib/portage/pym/portage_db_cpickle.pyc
# /usr/lib/python2.3/anydbm.pyc matches /usr/lib/python2.3/anydbm.py
import anydbm # precompiled from /usr/lib/python2.3/anydbm.pyc
# /usr/lib/python2.3/dbhash.pyc matches /usr/lib/python2.3/dbhash.py
import dbhash # precompiled from /usr/lib/python2.3/dbhash.pyc
import bsddb # directory /usr/lib/python2.3/bsddb
# /usr/lib/python2.3/bsddb/__init__.pyc matches /usr/lib/python2.3/bsddb/__init__.py
import bsddb # precompiled from /usr/lib/python2.3/bsddb/__init__.pyc
dlopen("/usr/lib/python2.3/lib-dynload/gdbm.so", 2);
import gdbm # dynamically loaded from /usr/lib/python2.3/lib-dynload/gdbm.so
dlopen("/usr/lib/python2.3/lib-dynload/dbm.so", 2);
import dbm # dynamically loaded from /usr/lib/python2.3/lib-dynload/dbm.so
# /usr/lib/python2.3/dumbdbm.pyc matches /usr/lib/python2.3/dumbdbm.py
import dumbdbm # precompiled from /usr/lib/python2.3/dumbdbm.pyc
# /usr/lib/portage/pym/portage_db_template.pyc matches /usr/lib/portage/pym/portage_db_template.py
import portage_db_template # precompiled from /usr/lib/portage/pym/portage_db_template.pyc
# /usr/lib/portage/pym/portage_db_flat.pyc matches /usr/lib/portage/pym/portage_db_flat.py
import portage_db_flat # precompiled from /usr/lib/portage/pym/portage_db_flat.pyc
emerge: please tell me what to do.


Usage:
   emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < sync | info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge help [ system | config | sync ]
Options: -[abcCdDefhikKlnoOpPsSuUvV] [--oneshot] [--noconfmem]
                                    [--columns] [--nospinner]
Actions: [ clean | depclean | inject | prune | regen | search | unmerge ]


   For more help try 'emerge --help' or consult the man page.

# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] cStringIO
# cleanup[1] site
# cleanup[1] encodings
# cleanup[1] select
# cleanup[1] portage
# cleanup[1] getbinpkg
# cleanup[1] grp
# cleanup[1] sre_constants
# cleanup[1] _codecs
# cleanup[1] portage_db_cpickle
# cleanup[1] emergehelp
# cleanup[1] formatter
# cleanup[1] htmlentitydefs
# cleanup[1] math
# cleanup[1] ftplib
# cleanup[1] zipimport
# cleanup[1] warnings
# cleanup[1] cPickle
# cleanup[1] encodings.utf_8
# cleanup[1] pwd
# cleanup[1] anydbm
# cleanup[1] xpak
# cleanup[1] urlparse
# cleanup[1] httplib
# cleanup[1] codecs
# cleanup[1] copy
# cleanup[1] strop
# cleanup[1] commands
# cleanup[1] socket
# cleanup[1] sre
# cleanup[1] portage_db_flat
# cleanup[1] signal
# cleanup[1] traceback
# cleanup[1] sgmllib
# cleanup[1] random
# cleanup[1] linecache
# cleanup[1] htmllib
# cleanup[1] posix
# cleanup[1] shlex
# cleanup[1] dbm
# cleanup[1] output
# cleanup[1] sre_parse
# cleanup[1] mimetools
# cleanup[1] base64
# cleanup[1] sre_compile
# cleanup[1] rfc822
# cleanup[1] _sre
# cleanup[1] fchksum
# cleanup[1] atexit
# cleanup[1] _ssl
# cleanup[1] HTMLParser
# cleanup[1] cvstree
# cleanup[1] gdbm
# cleanup[1] shutil
# cleanup[1] markupbase
# cleanup[1] tempfile
# cleanup[1] errno
# cleanup[1] _socket
# cleanup[1] binascii
# cleanup[1] dumbdbm
# cleanup[1] re
# cleanup[1] portage_db_template
# cleanup[1] fcntl
# cleanup[1] string
# cleanup[1] types
# cleanup[1] _random
# cleanup[1] thread
# cleanup[1] time
# cleanup[1] exceptions
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] os.path
# cleanup[2] stat
# cleanup[2] UserDict
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 34 unfreed ints in 20 out of 116 blocks
# cleanup floats: 28 unfreed floats in 1 out of 1 block
Comment 3 Ian Frazer 2004-04-09 22:07:55 UTC
Interesting if i use python to execute emerge(python /usr/bin/emerge) it works fine?
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2004-04-09 22:19:55 UTC
How about a `which emerge`?

There should be no difference between "emerge" and "python -v /usr/bin/emerge" other than verbose output about loading modules. Perhaps you have a copy of an old version of emerge in your path?
Comment 5 Ian Frazer 2004-04-10 18:39:45 UTC
hrm there was a copy of emerge in /bin.
deleting that fixed everything up, thanks for the help.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2004-04-10 19:30:26 UTC
Closing as invalid.