Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352887 - sys-apps/portage-2.1.9.35: Equo (from sabayon) shows error "unexpected keyword argument mytree" from file /usr/lib64/portage/pym/portage/package/ebuild/doebuild.py
Summary: sys-apps/portage-2.1.9.35: Equo (from sabayon) shows error "unexpected keywor...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL: http://gitweb.sabayon.org/?p=entropy....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 05:13 UTC by Matt Peterson
Modified: 2011-01-27 14:35 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 Matt Peterson 2011-01-27 05:13:22 UTC
Copied from /var/log/entropy/spm.log:

[22:05:04 26/01/2011 MST] INFO: Traceback (most recent call last):
  File "/usr/lib/entropy/libraries/entropy/spm/plugins/interfaces/portage_plugin/__init__.py", line 1985, in _portage_doebuild
    debug = etpUi['debug']
  File "/usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 31, in __call__
    return result(*args, **kwargs)
  File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 562, in doebuild
    use_cache, mydbapi)
  File "/usr/lib64/portage/pym/portage/package/ebuild/doebuild.py", line 248, in doebuild_environment
    ["SRC_URI"], mytree=mytree)
TypeError: aux_get() got an unexpected keyword argument 'mytree'

[22:05:04 26/01/2011 MST] INFO: [PRE] ATTENTION Cannot properly run SPM prerm phase for dev-db/phpmyadmin-3.3.8.1. Something bad happened. Exception <type 'exceptions.Exception'> [aux_get() got an unexpected keyword argument 'mytree']


This happens for every package I install with equo. I recently installed the latest portage with "emerge portage"

Reproducible: Always

Steps to Reproduce:
1. Install any package with equo (sabayon linux).
Comment 1 Zac Medico gentoo-dev 2011-01-27 05:27:01 UTC
It seems as if entropy is passing in a dbapi instance that implements getFetchMap() but doesn't support the mytree parameter for aux_get().

This is inconsistent with the portage api, where portdbapi is the only class that implements getFetchMap(), and it supports the mytree parameter for both getFetchMap() and aux_get().

So, the entropy api needs to be consistent with the portage api in this way.
Comment 2 Fabio Erculiani (RETIRED) gentoo-dev 2011-01-27 12:55:01 UTC
Given the discussion we had some time ago with Zac, fakedbapi didn't expose getFetchMap(), if I remember correctly.
So, a workaround was applied in commit ed4544228fb45d61437fab6f80b84da2f775ecdb on the entropy.git repository (see URL).
User seems having an outdated Entropy version installed, despite we write everywhere to keep entropy updated.
The bug has been already fixed, if zmedico thinks there's a better way to fix it, just REOPEN.
Comment 3 Matt Peterson 2011-01-27 14:35:01 UTC
(In reply to comment #2)
> Given the discussion we had some time ago with Zac, fakedbapi didn't expose
> getFetchMap(), if I remember correctly.
> So, a workaround was applied in commit ed4544228fb45d61437fab6f80b84da2f775ecdb
> on the entropy.git repository (see URL).
> User seems having an outdated Entropy version installed, despite we write
> everywhere to keep entropy updated.
> The bug has been already fixed, if zmedico thinks there's a better way to fix
> it, just REOPEN.
> 

Well I don't know if the fix has made it out of git and into the released version or not, but I have the latest entropy installed (1.0_alpha9) as of right now. So despite what you write everywhere, keeping entropy updated isn't helping.