minepy / minepy

minepy - Maximal Information-based Nonparametric Exploration
http://minepy.readthedocs.io
213 stars 46 forks source link

Failed building wheel for minepy #40

Open stillakg opened 1 year ago

stillakg commented 1 year ago

I am currently on Mac , with Mac OS Ventura 13.2.1 and Python version 3.9.13 I am trying to install minepy library - which is a python library for Mutual Information Nonparametric exploration statistics (https://minepy.readthedocs.io/en/latest/install.html) in terminal I typed : pip install minepy

and then the process started :

Collecting minepy
Downloading minepy-1.2.6.tar.gz (496 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 497.0/497.0 kB 487.8 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.3.0 in ./opt/anaconda3/lib/python3.9/site-packages (from minepy) (1.24.4)
Building wheels for collected packages: minepy
Building wheel for minepy (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
/private/var/folders/v5/22xy60f97hj81959wt__3k_40000gn/T/pip-install-gqz710rr/minepy_210ed122d529485ea6368d7be1a954d6/setup.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import get_platform
/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-39
creating build/lib.macosx-10.9-x86_64-cpython-39/minepy
copying minepy/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/minepy
running build_ext
building 'minepy.mine' extension
creating build/temp.macosx-10.9-x86_64-cpython-39
creating build/temp.macosx-10.9-x86_64-cpython-39/libmine
creating build/temp.macosx-10.9-x86_64-cpython-39/minepy
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include/python3.9 -I/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include -c libmine/mine.c -o build/temp.macosx-10.9-x86_64-cpython-39/libmine/mine.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include/python3.9 -I/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include -c minepy/mine.c -o build/temp.macosx-10.9-x86_64-cpython-39/minepy/mine.o -Wall
In file included from minepy/mine.c:687:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940:
/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
1 warning generated.
clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib -Wl,-rpath,/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib build/temp.macosx-10.9-x86_64-cpython-39/libmine/mine.o build/temp.macosx-10.9-x86_64-cpython-39/minepy/mine.o -lm -o build/lib.macosx-10.9-x86_64-cpython-39/minepy/mine.cpython-39-darwin.so
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libm.tbd' for architecture x86_64
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for minepy
Running setup.py clean for minepy
Failed to build minepy
ERROR: Could not build wheels for minepy, which is required to install pyproject.toml-based projects
(base) swapnilgupta@Aditya-2 ~ % pip install --use-pep517
ERROR: You must give at least one requirement to install (see "pip help install")
(base) swapnilgupta@Aditya-2 ~ % pip install minepy
Collecting minepy
Using cached minepy-1.2.6.tar.gz (496 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.3.0 in ./opt/anaconda3/lib/python3.9/site-packages (from minepy) (1.24.4)
Building wheels for collected packages: minepy
Building wheel for minepy (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
/private/var/folders/v5/22xy60f97hj81959wt__3k_40000gn/T/pip-install-rhg4rvlh/minepy_69d8c1609db14cd0a28b8de68e3b8cc6/setup.py:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import get_platform
/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-39
creating build/lib.macosx-10.9-x86_64-cpython-39/minepy
copying minepy/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/minepy
running build_ext
building 'minepy.mine' extension
creating build/temp.macosx-10.9-x86_64-cpython-39
creating build/temp.macosx-10.9-x86_64-cpython-39/libmine
creating build/temp.macosx-10.9-x86_64-cpython-39/minepy
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include/python3.9 -I/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include -c libmine/mine.c -o build/temp.macosx-10.9-x86_64-cpython-39/libmine/mine.o -Wall
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include -fPIC -O2 -isystem /Users/swapnilgupta/opt/anaconda3/include -arch x86_64 -I/Users/swapnilgupta/opt/anaconda3/include/python3.9 -I/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include -c minepy/mine.c -o build/temp.macosx-10.9-x86_64-cpython-39/minepy/mine.o -Wall
In file included from minepy/mine.c:687:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940:
/Users/swapnilgupta/opt/anaconda3/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
1 warning generated.
clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib -Wl,-rpath,/Users/swapnilgupta/opt/anaconda3/lib -L/Users/swapnilgupta/opt/anaconda3/lib build/temp.macosx-10.9-x86_64-cpython-39/libmine/mine.o build/temp.macosx-10.9-x86_64-cpython-39/minepy/mine.o -lm -o build/lib.macosx-10.9-x86_64-cpython-39/minepy/mine.cpython-39-darwin.so
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for minepy
Running setup.py clean for minepy
Failed to build minepy
ERROR: Could not build wheels for minepy, which is required to install pyproject.toml-based projects

I get this result at end :

ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd' for architecture x86_64 clang-15: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for minepy Running setup.py clean for minepy Failed to build minepy ERROR: Could not build wheels for minepy, which is required to install pyproject.toml-based projects Can anyone help me in whats the problem in this installation of minepy

thanks in advance

QQLazy commented 1 year ago

41 , try this