Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 606856

Summary: app-portage/gentoolkit-0.3.2-r1: python2/python3 confusion in revdep-rebuild?
Product: Gentoo Linux Reporter: Ian Zimmerman <nobrowser>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ian Zimmerman 2017-01-22 22:58:02 UTC
Trying to run the new python based revdep-rebuild, I always get this:

root@matica portage # revdep-rebuild
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
	Could not save cache: write() argument 1 must be unicode, not str

To me this looks like the typical example of trying to run a python2 script under python3.

I have both python2.7 and python3.4 installed, but the default (via eselect) is python2.7.  Unfortunately I don't understand the gentoo python infra (python-exec etc.) well enough yet to go deeper.  But if you tell me how to dig out relevant details I surely will.





Reproducible: Always
Comment 1 Guillaume Seren 2017-01-24 15:29:51 UTC
Hey behemothchess,
I can not reproduce your problem, please give more information about your system

```
sudo revdep-rebuild
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Checking dynamic linking consistency
```
Comment 2 Paul Varner (RETIRED) gentoo-dev 2017-01-24 20:37:22 UTC
This bug is fixed in gentoolkit-0.3.3 

You can ignore the error if you don't want to upgrade to an unstable version. It doesn't impact the ability of revdep-rebuild to find problems. It only impacts the ability to write the cache for speeding up future runs of the tool.

*** This bug has been marked as a duplicate of bug 589130 ***