-
Notifications
You must be signed in to change notification settings - Fork 1.6k
ImportError: No module named _math #2299
Comments
@dbl001 Unfortunately, we haven't had much success building on Anaconda. We don't officially support it. If you figure this out, please let us know. |
Will it build if I run python in the virtual environment (and skip Anaconda)? |
I hope so! 😄 |
Can you point me to instructions for building / install nupic in the virtual env? |
Look here, specifically use the https://github.com/numenta/nupic-linux64 or https://github.com/numenta/nupic-darwin64 repos, which use virtual env (see their READMEs). |
cc @oxtopus |
505 git clone https://github.com/numenta/nupic-darwin64.git David-Laxers-MacBook-Pro:nupic davidlaxer$ ARCHFLAGS="-arch x86_64" python setup.py install Target nupic.core package already exists at /Users/davidlaxer/nupic/extensions/core/nupic_core-de7052fa535cb55ba97d6dd37950d9aab998b35c-darwin64.tar.gz.
|
David-Laxers-MacBook-Pro:nupic davidlaxer$ gcc --version |
@dbl001 Have you tried CLang? |
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later) David-Laxers-MacBook-Pro:nupic davidlaxer$ sudo CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python setup.py install
|
David-Laxers-MacBook-Pro:nupic davidlaxer$ clang --version
|
Is this relevant? -o build/temp.macosx-10.5-x86_64-2.7/extensions/py_support/NumpyVector.o http://stackoverflow.com/questions/24243176/how-to-specify-target-mac-os-x-version-using-qmake http://stackoverflow.com/questions/24243176/how-to-specify-target-mac-os-x-version-using-qmake
|
I think I remember having a similar problem a long time ago when I had a Matt Taylor On Fri, Jul 10, 2015 at 9:42 AM, dbl001 notifications@github.com wrote:
|
I update numpy to 1.92 in the virtualenv. Same thing:’ clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later) David-Laxers-MacBook-Pro:~ davidlaxer$ cd nupic IPython 3.2.0 -- An enhanced Interactive Python. In [1]: import numpy In [2]: numpy.version.version In [3]:
|
I'm running on OS X 10.10.3, with Anaconda.
conda info -a
Current conda install:
conda-build version : 1.11.0
python version : 2.7.10.final.0
requests version : 2.7.0
root environment : /Users/davidlaxer/anaconda (writable)
default environment : /Users/davidlaxer/anaconda
envs directories : /Users/davidlaxer/anaconda/envs
package cache : /Users/davidlaxer/anaconda/pkgs
channel URLs : https://repo.continuum.io/pkgs/free/osx-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/osx-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : None
is foreign system : False
conda environments:
root * /Users/davidlaxer/anaconda
sys.version: 2.7.10 |Anaconda 2.3.0 (x86_64)| (defaul...
sys.prefix: /Users/davidlaxer/anaconda
sys.executable: /Users/davidlaxer/anaconda/bin/python
conda location: /Users/davidlaxer/anaconda/lib/python2.7/site-packages/conda
conda-build: /Users/davidlaxer/anaconda/bin/conda-build
conda-convert: /Users/davidlaxer/anaconda/bin/conda-convert
conda-develop: /Users/davidlaxer/anaconda/bin/conda-develop
conda-env: /Users/davidlaxer/anaconda/bin/conda-env
conda-index: /Users/davidlaxer/anaconda/bin/conda-index
conda-inspect: /Users/davidlaxer/anaconda/bin/conda-inspect
conda-metapackage: /Users/davidlaxer/anaconda/bin/conda-metapackage
conda-pipbuild: /Users/davidlaxer/anaconda/bin/conda-pipbuild
conda-server: /Users/davidlaxer/anaconda/bin/conda-server
conda-skeleton: /Users/davidlaxer/anaconda/bin/conda-skeleton
user site dirs: ~/.local/lib/python2.7
$NUPIC/scripts/run_nupic_tests -i --coverage
============================= test session starts ==============================
platform darwin -- Python 2.7.10 -- pytest-2.4.2 -- /Users/davidlaxer/anaconda/bin/python
plugins: cov, xdist
collecting 0 items / 1 errors
==================================== ERRORS ====================================
ERROR collecting tests/integration/nupic/algorithms/extensive_temporal_memory_test.py
tests/integration/nupic/algorithms/extensive_temporal_memory_test.py:27: in
from nupic.test.abstract_temporal_memory_test import AbstractTemporalMemoryTest
../anaconda/lib/python2.7/site-packages/pytest/assertion/rewrite.py:154: in load_module
py.builtin.exec(co, mod.dict)
nupic/test/abstract_temporal_memory_test.py:27: in
from nupic.research.temporal_memory import TemporalMemory
nupic/research/temporal_memory.py:29: in
from nupic.bindings.math import Random
nupic/bindings/math.py:28: in
_math = swig_import_helper()
nupic/bindings/math.py:20: in swig_import_helper
import _math
E ImportError: No module named _math
The problem was discussed in this issue.
#1579
The text was updated successfully, but these errors were encountered: