matrix-profile-foundation / matrixprofile

A Python 3 library making time series data mining tasks, utilizing matrix profile algorithms, accessible to everyone.
https://matrixprofile.org
Apache License 2.0
363 stars 62 forks source link

fail to install by source code setup.py #77

Open zhouc-adrem opened 3 years ago

zhouc-adrem commented 3 years ago

python setup.py install

logs

running install running bdist_egg running egg_info writing matrixprofile.egg-info/PKG-INFO writing dependency_links to matrixprofile.egg-info/dependency_links.txt writing requirements to matrixprofile.egg-info/requires.txt writing top-level names to matrixprofile.egg-info/top_level.txt reading manifest template 'MANIFEST.in' warning: no files found matching '.csv' under directory '.' warning: no files found matching '.json' under directory '.' writing manifest file 'matrixprofile.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.9-x86_64/egg running install_lib running build_py copying matrixprofile/version.py -> build/lib.macosx-10.9-x86_64-3.7/matrixprofile running build_ext building 'matrixprofile.algorithms.cympx' extension gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/zhoucheng/anaconda3/include -arch x86_64 -I/Users/zhoucheng/anaconda3/include -arch x86_64 -I/usr/local/opt/openblas/include -I/Users/zhoucheng/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/zhoucheng/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/Users/zhoucheng/anaconda3/include/python3.7m -c matrixprofile/algorithms/cympx.c -o build/temp.macosx-10.9-x86_64-3.7/matrixprofile/algorithms/cympx.o -O2 -fopenmp clang: error: unsupported option '-fopenmp' error: command 'gcc' failed with exit status 1

zhouc-adrem commented 3 years ago

Sorry, I found this issure has already solved my problem. https://github.com/matrix-profile-foundation/matrixprofile/issues/2

zhouc-adrem commented 3 years ago

python setup.py install
It looks like installed successfully, but ImportError comes out when I try to use it.


ImportError Traceback (most recent call last)

in 12 import statsmodels.api as sm 13 ---> 14 import matrixprofile as mp 15 from periodicity.utils import acf_harmonic_quality 16 from periodicity.phase import pdm2 ~/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/__init__.py in 6 from matrixprofile.version import __version__, __version_info__ 7 ----> 8 from matrixprofile.compute import compute 9 from matrixprofile.visualize import visualize 10 from matrixprofile.analyze import analyze ~/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/compute.py in 21 from matrixprofile.preprocess import preprocess 22 from matrixprofile.preprocess import validate_preprocess_kwargs ---> 23 from matrixprofile.algorithms.mpx import mpx 24 from matrixprofile.algorithms.scrimp import scrimp_plus_plus 25 from matrixprofile.algorithms.skimp import skimp ~/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/algorithms/__init__.py in 1 from matrixprofile.algorithms.stomp import stomp 2 from matrixprofile.algorithms.mass2 import mass2 ----> 3 from matrixprofile.algorithms.mpdist import mpdist 4 from matrixprofile.algorithms.mpdist import mpdist_vector 5 from matrixprofile.algorithms.mpx import mpx ~/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/algorithms/mpdist.py in 14 15 from matrixprofile import core ---> 16 from matrixprofile.algorithms.cympx import mpx_ab_parallel as cympx_ab_parallel 17 from matrixprofile.algorithms.mass2 import mass2 18 ImportError: dlopen(/Users/zhoucheng/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/algorithms/cympx.cpython-37m-darwin.so, 2): Symbol not found: _GOMP_parallel Referenced from: /Users/zhoucheng/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/algorithms/cympx.cpython-37m-darwin.so Expected in: flat namespace in /Users/zhoucheng/anaconda3/lib/python3.7/site-packages/matrixprofile-1.1.10-py3.7-macosx-10.9-x86_64.egg/matrixprofile/algorithms/cympx.cpython-37m-darwin.so