Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741771 - sci-libs/adolc-2.7.2: ModuleNotFoundError: No module named 'numpy' (when building Python bindings)
Summary: sci-libs/adolc-2.7.2: ModuleNotFoundError: No module named 'numpy' (when buil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-12 09:25 UTC by Toralf Förster
Modified: 2021-06-03 02:05 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.16 KB, text/plain)
2020-09-12 09:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,34.18 KB, text/plain)
2020-09-12 09:25 UTC, Toralf Förster
Details
environment (environment,67.98 KB, text/plain)
2020-09-12 09:26 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.93 KB, application/x-bzip)
2020-09-12 09:26 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.02 KB, application/x-bzip)
2020-09-12 09:26 UTC, Toralf Förster
Details
sci-libs:adolc-2.7.2:20200912-085746.log (sci-libs:adolc-2.7.2:20200912-085746.log,99.72 KB, text/plain)
2020-09-12 09:26 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.21 KB, application/x-bzip)
2020-09-12 09:26 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-09-12 09:25:55 UTC
    from numpy.distutils import misc_util as np_dist
ModuleNotFoundError: No module named 'numpy'
make[3]: *** [Makefile:493: install] Error 1
make[3]: Leaving directory '/var/tmp/portage/sci-libs/adolc-2.7.2/work/ADOL-C-releases-2.7.2/ADOL-C/swig'
make[2]: *** [Makefile:561: install-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-libs/adolc-2.7.2/work/ADOL-C-releases-2.7.2/ADOL-C'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-libressl-20200911-101604

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.46.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Sep 12 06:36:18 AM UTC 2020
/var/db/repos/libressl	Fri Sep 11 04:06:23 PM UTC 2020

emerge -qpvO sci-libs/adolc
[ebuild  N    ] sci-libs/adolc-2.7.2  USE="boost sparse -mpi -static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-09-12 09:25:57 UTC
Created attachment 659652 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-09-12 09:25:58 UTC
Created attachment 659655 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-09-12 09:26:00 UTC
Created attachment 659658 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-09-12 09:26:01 UTC
Created attachment 659661 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-09-12 09:26:02 UTC
Created attachment 659664 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-09-12 09:26:04 UTC
Created attachment 659667 [details]
sci-libs:adolc-2.7.2:20200912-085746.log
Comment 7 Toralf Förster gentoo-dev 2020-09-12 09:26:05 UTC
Created attachment 659670 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-10-18 18:22:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86f3bd3bc5423a5df66dd94387fc6f3dadc90ab9

commit 86f3bd3bc5423a5df66dd94387fc6f3dadc90ab9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-18 18:20:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-18 18:22:47 +0000

    sci-libs/adolc: disable building Python bindings for now
    
    The building of Python bindings with swig was automagic
    and failed for a variety of reasons.
    
    Disabling for now because no consumers known and
    it prevents build.
    
    Upstream patches included to actually get a working
    Python toggle, but some work is needed to get
    the include dir logic right.
    
    Bug: https://bugs.gentoo.org/730750
    Bug: https://bugs.gentoo.org/741771
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/adolc/adolc-2.7.2.ebuild                  |  14 +-
 .../files/adolc-2.7.2-swig-python-configure.patch  | 391 +++++++++++++++++++++
 2 files changed, 398 insertions(+), 7 deletions(-)
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-18 18:32:30 UTC
This is kind of the same problem as bug 730750, but missing dep on the automagic unrequested bindings build. Keeping it open so we don't forget the numpy dep.