| Summary: | dev-python/bottleneck-1.0.0 - src_compile(): ModuleNotFoundError: No module named 'numpy' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Gentoo Science Mathematics related packages <sci-mathematics> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | nshephard |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | build.log | ||
|
Description
Juergen Rose
2018-03-17 08:57:09 UTC
>>> Unpacking source...
>>> Unpacking Bottleneck-1.0.0.tar.gz to /home/jer/portage/dev-python/bottleneck-1.0.0/work
>>> Source unpacked in /home/jer/portage/dev-python/bottleneck-1.0.0/work
>>> Preparing source in /home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0 ...
make -j10 PYTHONPATH=. pyx
python -c "from bottleneck.src.template.template import make_pyx; make_pyx();"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0/bottleneck/__init__.py", line 3, in <module>
from . import slow
File "/home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0/bottleneck/slow/__init__.py", line 1, in <module>
from bottleneck.slow.reduce import *
File "/home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0/bottleneck/slow/reduce.py", line 2, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
make: *** [Makefile:23: pyx] Error 1
* ERROR: dev-python/bottleneck-1.0.0::gentoo failed (prepare phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-python/bottleneck-1.0.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-python/bottleneck-1.0.0::gentoo'`.
* The complete build log is located at '/aches/gentoo/emergelogs/wim/dev-python:bottleneck-1.0.0:20180320-051511.log'.
* For convenience, a symlink to the build log is located at '/home/jer/portage/dev-python/bottleneck-1.0.0/temp/build.log'.
* The ebuild environment file is located at '/home/jer/portage/dev-python/bottleneck-1.0.0/temp/environment'.
* Working directory: '/home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0'
* S: '/home/jer/portage/dev-python/bottleneck-1.0.0/work/Bottleneck-1.0.0'
[ebuild R ] dev-python/numpy-1.10.4::gentoo USE="-doc -lapack {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6" 0 KiB
Eselecting python-3.5 instead of python-3.6 solved the issue for me. Just encountered this too after switching to python 3.6 in light of recent news item on it becoming default (https://www.gentoo.org/support/news-items/2018-05-22-python3-6.html) I've solved this on my system. Despite setting having PYTHON_SINGLE_TARGETS="python3_6" PYTHON_TARGETS="python2_7 python3_6" I read in a thread on the forums (https://forums.gentoo.org/viewtopic-p-8228816.html) that perhaps python3.6 wasn't correctly set and checking eselect python list that was true, switched to python3.6 and it compiled fine. # eselect python list Available Python interpreters, in order of preference: [1] python3.5 [2] python3.4 [3] python3.6 (fallback) [4] python2.7 (fallback) # eselect python set 3 # eselect python list Available Python interpreters, in order of preference: [1] python3.6 [2] python3.5 [3] python3.4 [4] python2.7 (fallback) # emerge -1 dev-python/bottleneck >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/bottleneck-1.0.0::gentoo >>> Installing (1 of 1) dev-python/bottleneck-1.0.0::gentoo >>> Jobs: 1 of 1 complete Load avg: 1.69, 1.36, 1.43 So I guess you need to ensure eselect python lists the version of Python that numpy was compiled and installed with and/or matches your portage settings. *** This bug has been marked as a duplicate of bug 634714 *** |