Hello, After doing a update of overlays with `layman -S`, everytime returns exit code 1, and displays this message: * CLI: Errors occurred processing action sync_all * update_news() failed running portage news reporter function * Error was; No module named _emerge.actions No idea about this, but I found the same bug report in 2013-08 or Gentoo's forum (https://forums.gentoo.org/viewtopic-t-968780-start-0.html) Packages informations: sys-apps/portage-2.2.8-r1 USE="(ipc) python3 (xattr) -build -doc -epydoc (-pypy2_0) -python2 (-selinux)" LINGUAS="-ru" PYTHON_TARGETS="python3_3 (-pypy2_0) -python2_6 -python2_7 -python3_2 (-python3_4)" app-portage/layman-2.0.0-r1 USE="git mercurial -bazaar -cvs -darcs -subversion {-test}" PYTHON_TARGETS="python2_7 (-pypy2_0) -python2_6" But I found how to fix this bug: layman should check python dependencies with portage too (like “sys-apps/portage[${PYTHON_USEDEP}]”). I re-emerge portage with "python_targets_python2_7" USE flag for sys-apps/portage, and it works. Same error in layman-2.0.0-r2's ebuild (based on looking into this file). Reproducible: Always Steps to Reproduce: 1. Emerge portage without python 2 support (USE="-python_targets_python2_7") 2. Emerge layman (USE="python_targets_python2_7" is mandatory, otherwise it won't compile because of “The following REQUIRED_USE flag constraints are unsatisfied: any-of ( python_targets_python2_6 python_targets_python2_7 python_targets_pypy2_0 )”) 3. updating overlays (layman -S) 4. showing the error. Actual Results: Stop doing the error when portage has python2 support, has satisfied dependency for layman. Expected Results: Portage should check “sys-apps/portage[${PYTHON_USEDEP}]” when emerging.
Created attachment 372198 [details] emerge --info
This error occurs because you do not have portage installed to the same version of python that layman is installed to. You are most likely running emerge/portage with python3 and likely don't have portage installed to python-2.7. Currently layman does not support python-3. The fix is to set the python use flag in /etc/portage/package.use sys-apps/portage python_targets_python_2_7 and re-emerge portage.
Fixed in layman-2.0.0-r3 and layman-9999. Waiting stabilization before closing.
(In reply to Brian Dolbec from comment #2) ../.. > The fix is to set the python use flag in /etc/portage/package.use > > sys-apps/portage python_targets_python_2_7 > > and re-emerge portage. That's what I did when I said “But I found how to fix this bug”. ;-) (In reply to Brian Dolbec from comment #3) > Fixed in layman-2.0.0-r3 and layman-9999. > > Waiting stabilization before closing. Thanks for your work. :-) Best regards.
layman-2.1.0 is now python2.7 and python3.x compatible, closing bug.