Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715670 - dev-libs/libjcat-0.1.0 : ModuleNotFoundError: No module named pkg_resources
Summary: dev-libs/libjcat-0.1.0 : ModuleNotFoundError: No module named pkg_resources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-31 19:44 UTC by Toralf Förster
Modified: 2020-03-31 23:04 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,14.84 KB, text/plain)
2020-03-31 19:44 UTC, Toralf Förster
Details
dev-libs:libjcat-0.1.0:20200331-194250.log (dev-libs:libjcat-0.1.0:20200331-194250.log,27.59 KB, text/plain)
2020-03-31 19:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,48.14 KB, text/plain)
2020-03-31 19:44 UTC, Toralf Förster
Details
environment (environment,97.17 KB, text/plain)
2020-03-31 19:44 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.61 KB, application/x-bzip)
2020-03-31 19:44 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.48 KB, application/x-bzip)
2020-03-31 19:44 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 2020-03-31 19:44:40 UTC
  File /var/tmp/portage/dev-libs/libjcat-0.1.0/work/libjcat-0.1.0/contrib/generate-version-script.py, line 11, in <module>
    from pkg_resources import parse_version
ModuleNotFoundError: No module named pkg_resources
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/libjcat-0.1.0::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 -C /var/tmp/portage/dev-libs/libjcat-0.1.0/work/libjcat-0.1.0-build failed

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20200330-171543

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *
The Glorious Glasgow Haskell Compilation System, version 8.0.2

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue 31 Mar 2020 06:07:48 PM UTC

emerge -qpvO dev-libs/libjcat
[ebuild  N    ] dev-libs/libjcat-0.1.0  USE="introspection man -gpg -gtk-doc -pkcs7 -test"
Comment 1 Toralf Förster gentoo-dev 2020-03-31 19:44:43 UTC
Created attachment 628106 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-31 19:44:46 UTC
Created attachment 628108 [details]
dev-libs:libjcat-0.1.0:20200331-194250.log
Comment 3 Toralf Förster gentoo-dev 2020-03-31 19:44:50 UTC
Created attachment 628110 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-31 19:44:53 UTC
Created attachment 628112 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-31 19:44:56 UTC
Created attachment 628114 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-31 19:44:58 UTC
Created attachment 628116 [details]
temp.tbz2
Comment 7 Marek Szuba archtester gentoo-dev 2020-03-31 21:36:17 UTC
I think I see what the problem is. Is the PYTHON_TARGETS value for dev-python/setuptools the same as the global one, i.e. only 3.6 and 2.7?
Comment 8 Marek Szuba archtester gentoo-dev 2020-03-31 22:58:18 UTC
Actually, no need - I have managed to reproduce the problem without having to mess with my system too much. Fix inbound!
Comment 9 Larry the Git Cow gentoo-dev 2020-03-31 23:04:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=345a4b1cd1d77d1db99515bc64a71ee546142294

commit 345a4b1cd1d77d1db99515bc64a71ee546142294
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-03-31 22:54:14 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-03-31 23:03:39 +0000

    dev-libs/libjcat: better control over build-time Python used
    
    libjcat/meson.build calls a helper Python script which depends on
    modules 'sys' (core, always present), 'xml' (core, controlled by USE=xml)
    and 'pkg_resources' (from dev-python/setuptools) - using whatever Python
    version /usr/bin/python3 points to, which may well provide neither of
    the latter two modules. Make sure the helper script is invoked using the
    Python interpreter used to run meson itself, as that one is guaranteed
    to both provide XML support (the very same import line appears all over
    the package mesonbuild) and have setuptools (it's in RDEPEND of
    dev-util/meson).
    
    Closes: https://bugs.gentoo.org/715670
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/libjcat-0.1.0-use_right_python.patch     | 29 ++++++++++++++++++++++
 dev-libs/libjcat/libjcat-0.1.0.ebuild              |  1 +
 2 files changed, 30 insertions(+)