Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406495 - app-portage/gentoolkit-0.3.0.5 equery fails with runtime type error
Summary: app-portage/gentoolkit-0.3.0.5 equery fails with runtime type error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-03-01 22:14 UTC by Guilherme Amadio
Modified: 2013-08-28 17:55 UTC (History)
1 user (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 Guilherme Amadio gentoo-dev 2012-03-01 22:14:22 UTC
I'm not familiar with the internals of gentoolkit, so I'm not sure what change is responsible for this, but equery is broken for me on prefix. I get the following error when I run it:

$ equery l -p povray
Traceback (most recent call last):
  File "/Library/Gentoo/usr/bin/equery", line 38, in <module>
    equery.main()
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/gentoolkit/equery/__init__.py", line 352, in main
    expanded_module_name, globals(), locals(), [], -1
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/gentoolkit/equery/list_.py", line 26, in <module>
    from gentoolkit.package import PackageFormatter, FORMAT_TMPL_VARS
  File "/Library/Gentoo/usr/lib/python2.7/site-packages/gentoolkit/package.py", line 65, in <module>
    default_settings = portage.config(local_config=True, _eprefix=EPREFIX)
TypeError: __init__() got an unexpected keyword argument '_eprefix'

I am going back to gentoolkit-0.3.0.4* for now, since that still works ok.

Reproducible: Always
Comment 1 Richard Yao (RETIRED) gentoo-dev 2012-03-01 22:46:40 UTC
I can confirm this issue on x64-macos. It was introduced in app-portage/gentoolkit-0.3.0.5 and it can be worked around by downgrading to app-portage/gentoolkit-0.3.0.4-r5.

I am marking this as confirmed.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2012-03-02 00:15:24 UTC
I've pushed the fix for this error in:

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4ee500e06ca5625b48ec22e1ba431b191423f6e7

It is available for testing in gentoolkit-9999 now.  -9999 is currently -0.3.0.5 with the addition of this fix.  Also this fix depends on an installed portage version >=sys-apps/portage-2.1.10.40.   2.1.10.44 is the oldest and current stable 2.1.10 version in the tree.