'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> equery.main(sys.argv) File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/__init__.py", line 357, in main loaded_module.main(module_args) File "/usr/lib64/python2.7/site-packages/gentoolkit/equery/changes.py", line 155, in main changelog = ChangeLog(changelog_path) File "/usr/lib64/python2.7/site-packages/gentoolkit/helpers.py", line 77, in __init__ self.entries = self._split_changelog() File "/usr/lib64/python2.7/site-packages/gentoolkit/helpers.py", 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.
Created attachment 441528 [details] emerge --info
It works in Python3, so I'll figure out what I missed with compatibility and get it fixed.
This has been fixed in git: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=bc92540f8ce498e8305103619c7085b670ba19b1 You can test with gentoolkit-9999 or you can grab the patch from here: https://gitweb.gentoo.org/proj/gentoolkit.git/patch/?id=bc92540f8ce498e8305103619c7085b670ba19b1
This is released in gentoolkit-0.3.2-r1