Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to install by source code setup.py #77

Open
zhouc-adrem opened this issue Apr 6, 2021 · 2 comments
Open

fail to install by source code setup.py #77

zhouc-adrem opened this issue Apr 6, 2021 · 2 comments

Comments

@zhouc-adrem
Copy link

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
Copy link
Author

Sorry, I found this issure has already solved my problem.
#2

@zhouc-adrem
Copy link
Author

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

@zhouc-adrem zhouc-adrem reopened this Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant