Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503984 - =app-portage/layman-2.0.0-r1 update_news() failed running portage news reporter function Error was; No module named _emerge.actions
Summary: =app-portage/layman-2.0.0-r1 update_news() failed running portage news report...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Brian Dolbec
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-09 13:46 UTC by Thibaud CANALE
Modified: 2014-07-25 23:23 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info_2014-03-09T13:47.txt,5.11 KB, text/plain)
2014-03-09 13:48 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2014-03-09 13:46:00 UTC
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.
Comment 1 Thibaud CANALE 2014-03-09 13:48:17 UTC
Created attachment 372198 [details]
emerge --info
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2014-03-10 01:58:57 UTC
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.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2014-03-10 03:34:17 UTC
Fixed in layman-2.0.0-r3 and layman-9999.

Waiting stabilization before closing.
Comment 4 Thibaud CANALE 2014-03-10 22:00:11 UTC
(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.
Comment 5 Devan Franchini (RETIRED) gentoo-dev 2014-07-25 23:23:42 UTC
layman-2.1.0 is now python2.7 and python3.x compatible, closing bug.