Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589686 - app-portage/gentoolkit-0.3.2: TypeError on 'equery changes'
Summary: app-portage/gentoolkit-0.3.2: TypeError on 'equery changes'
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Portage Tools Team
Keywords: InVCS
Depends on:
Blocks: 346443
  Show dependency tree
Reported: 2016-07-25 16:34 UTC by Thomas Schneider
Modified: 2016-07-26 19:39 UTC (History)
1 user (show)

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

emerge --info (file_589686.txt,18.33 KB, text/plain)
2016-07-25 16:36 UTC, Thomas Schneider

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schneider 2016-07-25 16:34:56 UTC
'equery c any-existing/package' fails with TypeError: 'encoding' is an invalid keyword argument for this function

Reproducible: Always

Steps to Reproduce:
'equery c any-existing/package'
Actual Results:  
% equery c app-editors/emacs
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/equery", line 38, in <module>
  File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/", line 357, in main
  File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/", line 155, in main
    changelog = ChangeLog(changelog_path)
  File "/usr/lib64/python2.7/site-packages/gentoolkit/", line 77, in __init__
    self.entries = self._split_changelog()
  File "/usr/lib64/python2.7/site-packages/gentoolkit/", line 199, in _split_changelog
    encoding=_encodings['content']) as log:
TypeError: 'encoding' is an invalid keyword argument for this function
$? = 1

Expected Results:  
Show the ChangeLog for the requested package or a sensible error.

For a nonexisting package, it silently fails with $? = 1.
Comment 1 Thomas Schneider 2016-07-25 16:36:34 UTC
Created attachment 441528 [details]
emerge --info
Comment 2 Paul Varner (RETIRED) gentoo-dev 2016-07-25 17:25:15 UTC
It works in Python3, so I'll figure out what I missed with compatibility and get it fixed.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2016-07-25 18:07:23 UTC
This has been fixed in git: 

You can test with gentoolkit-9999 or you can grab the patch from here:
Comment 4 Paul Varner (RETIRED) gentoo-dev 2016-07-26 19:39:06 UTC
This is released in gentoolkit-0.3.2-r1