Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639412 - <app-misc/pax-utils-1.2.3-r1 : [TEST] ImportError: No module named elftools
Summary: <app-misc/pax-utils-1.2.3-r1 : [TEST] ImportError: No module named elftools
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-12-01 18:23 UTC by Toralf Förster
Modified: 2018-03-11 05:31 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.89 KB, text/plain)
2017-12-01 18:23 UTC, Toralf Förster
Details
app-misc:pax-utils-1.2.2-r2:20171130-222434.log (app-misc:pax-utils-1.2.2-r2:20171130-222434.log,7.71 KB, text/plain)
2017-12-01 18:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,36.51 KB, text/plain)
2017-12-01 18:24 UTC, Toralf Förster
Details
environment (environment,87.03 KB, text/plain)
2017-12-01 18:24 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.38 KB, application/x-bzip)
2017-12-01 18:24 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.32 KB, application/x-bzip)
2017-12-01 18:24 UTC, Toralf Förster
Details
tests.tbz2 (tests.tbz2,2.71 KB, application/x-bzip)
2017-12-01 18:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-12-01 18:23:53 UTC
  File "/var/tmp/portage/app-misc/pax-utils-1.2.2-r2/work/pax-utils-1.2.2/lddtree.py", line 52, in <module>
    from elftools.elf.elffile import ELFFile
ImportError: No module named 'elftools'
PASS: lddtree.py.smoke
./dotest.cmp
Traceback (most recent call last):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_libressl-test_20171129-194156

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python3.5 (fallback)
  [4]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv app-misc/pax-utils
[ebuild     U ] app-misc/pax-utils-1.2.2-r2 [1.1.7] USE="python* seccomp -caps -debug"
Comment 1 Toralf Förster gentoo-dev 2017-12-01 18:23:56 UTC
Created attachment 507514 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-01 18:23:59 UTC
Created attachment 507516 [details]
app-misc:pax-utils-1.2.2-r2:20171130-222434.log
Comment 3 Toralf Förster gentoo-dev 2017-12-01 18:24:01 UTC
Created attachment 507518 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-01 18:24:04 UTC
Created attachment 507520 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-12-01 18:24:07 UTC
Created attachment 507522 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-01 18:24:10 UTC
Created attachment 507524 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-01 18:24:13 UTC
Created attachment 507526 [details]
tests.tbz2
Comment 8 Juergen Rose 2017-12-15 21:58:38 UTC
'genkernel --oldconfig --udev --lvm all' complains about:
...
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending udev cpio data...
Traceback (most recent call last):
  File "/usr/bin/lddtree", line 52, in <module>
    from elftools.elf.elffile import ELFFile
ModuleNotFoundError: No module named 'elftools'


Is there not any patch?
Comment 9 Juergen Rose 2018-01-30 10:47:14 UTC
Any news?
Comment 10 Juergen Rose 2018-01-30 16:58:37 UTC
I suppose I found the reason for the issue. My active python interpreter is Python 3.6.4 but pyelftools was compiled with -python3_6:

root@cheetahnew:/root(27)# python -V
Python 3.6.4
root@cheetahnew:/root(28)# emerge -pv1 pyelftools

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/pyelftools-0.24::gentoo  USE="examples" PYTHON_TARGETS="python2_7 python3_4 python3_5 -python3_6" 0 KiB
...



After adding python_targets_python3_6 to =dev-python/pyelftools-0.24 in /etc/portage/package.use the issue disappeared.
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2018-02-04 19:19:43 UTC
So likely we need to use one of the python eclasses to ensure the dependencies stay working.
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2018-02-04 20:28:37 UTC
If someone wants to give https://github.com/gentoo/gentoo/pull/7077 a shot, I believe it will fix this issue.
Comment 13 Larry the Git Cow gentoo-dev 2018-03-10 21:45:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1651c6c3a70a1ee310ecb2ad1253683d8dc3c4d7

commit 1651c6c3a70a1ee310ecb2ad1253683d8dc3c4d7
Author:     Doug Goldstein <cardoe@gentoo.org>
AuthorDate: 2018-02-04 19:53:51 +0000
Commit:     Doug Goldstein <cardoe@gentoo.org>
CommitDate: 2018-03-10 21:44:58 +0000

    app-misc/pax-utils: fix python dependencies
    
    Bug: https://bugs.gentoo.org/639412

 app-misc/pax-utils/pax-utils-1.2.3-r1.ebuild | 64 ++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)}
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2018-03-11 05:25:18 UTC
Should be fixed in app-misc/pax-utils-1.2.3-r1