| Summary: | sys-apps/portage: ebuild-ipc ImportError: cannot import name getstatusoutput | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
| Component: | New packages | Assignee: | Portage team <dev-portage> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | bazaar+obsolete |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log | ||
I cannot reproduce. Same set as USE flags and so on. What is your active Python version? (In reply to comment #1) > I cannot reproduce. Same set as USE flags and so on. What is your active > Python version? 2.7 ebuild itself does nothing special in src_prepare:
src_prepare() {
# Remove after release of > 0.99.0
cp "${FILESDIR}"/credits.pickle "${S}"/credits.pickle
}
From build.log:
Traceback (most recent call last):
File "/usr/lib64/portage/bin/ebuild-ipc.py", line 32, in <module>
import portage
File "/usr/lib64/portage/pym/portage/__init__.py", line 25, in <module>
from subprocess import getstatusoutput as subprocess_getstatusoutput
ImportError: cannot import name getstatusoutput
This trace indicates problem in portage not in bzr-gtk.
@portage any ideas here?
(In reply to comment #3) > Traceback (most recent call last): > File "/usr/lib64/portage/bin/ebuild-ipc.py", line 32, in <module> > import portage > File "/usr/lib64/portage/pym/portage/__init__.py", line 25, in <module> > from subprocess import getstatusoutput as subprocess_getstatusoutput > ImportError: cannot import name getstatusoutput Maybe there's a permission issue accessing the commands.py or subprocess.py files in /usr/lib/python-$VERSION, triggered by FEATURES=userpriv. I have the same issue installing bzr-git: In [1]: import subprocess In [2]: subprocess.__file__ Out[2]: '/usr/lib64/python2.7/subprocess.pyc' In [3]: import commands In [4]: from subprocess import getstatusoutput as subprocess_getstatusoutput --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /root/<ipython console> in <module>() ImportError: cannot import name getstatusoutput Current versions of portage do not import getstatusoutput: https://gitweb.gentoo.org/proj/portage.git/commit/?id=09de8dc47ec48af2276dfa098dd5e1d3d09ddbdd Closing as obsolete. |
Created attachment 287675 [details] build.log Strange output, see build log.