mitre icon indicating copy to clipboard operation
mitre copied to clipboard

Cannot install mitre

Open pedres opened this issue 5 years ago • 4 comments

Hi, I am not able to install mitre. I created a conda environment conda create -n mitre python=2.7 conda activate mitre pip install mitre The packages are downloaded but the installation fails. I paste below the errors: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Processing ./mitre Requirement already satisfied: numpy in ./lib/python2.7/site-packages (from mitre==1.0b1) (1.16.5) Requirement already satisfied: scipy>=0.17.1 in ./lib/python2.7/site-packages (from mitre==1.0b1) (1.2.2) Requirement already satisfied: pandas>0.20 in ./lib/python2.7/site-packages (from mitre==1.0b1) (0.24.2) Requirement already satisfied: matplotlib in ./lib/python2.7/site-packages (from mitre==1.0b1) (2.2.4) Requirement already satisfied: ete3 in ./lib/python2.7/site-packages (from mitre==1.0b1) (3.1.1) Collecting pypolyagamma (from mitre==1.0b1) Using cached https://files.pythonhosted.org/packages/f1/4f/8f444c95283613ebacb2703905f3454ccd6c045c87f8f3a48d8e3206eb9c/pypolyagamma-1.2.2.tar.gz Requirement already satisfied: scikit-learn in ./lib/python2.7/site-packages (from mitre==1.0b1) (0.20.4) Requirement already satisfied: tqdm in ./lib/python2.7/site-packages (from mitre==1.0b1) (4.36.1) Requirement already satisfied: pytz>=2011k in ./lib/python2.7/site-packages (from pandas>0.20->mitre==1.0b1) (2019.2) Requirement already satisfied: python-dateutil>=2.5.0 in ./lib/python2.7/site-packages (from pandas>0.20->mitre==1.0b1) (2.8.0) Requirement already satisfied: subprocess32 in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (3.5.4) Requirement already satisfied: cycler>=0.10 in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (0.10.0) Requirement already satisfied: six>=1.10 in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (1.12.0) Requirement already satisfied: backports.functools-lru-cache in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (1.5) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (2.4.2) Requirement already satisfied: kiwisolver>=1.0.1 in ./lib/python2.7/site-packages (from matplotlib->mitre==1.0b1) (1.1.0) Requirement already satisfied: setuptools in ./lib/python2.7/site-packages (from kiwisolver>=1.0.1->matplotlib->mitre==1.0b1) (41.2.0) Building wheels for collected packages: mitre, pypolyagamma Building wheel for mitre (setup.py) ... done Created wheel for mitre: filename=mitre-1.0b1-cp27-cp27mu-linux_x86_64.whl size=9823618 sha256=94035897e3407f1d2ce576f66b93d211aa07b4bacc0df1c005e1ffa957a05870 Stored in directory: /tmp/pip-ephem-wheel-cache-qW48N7/wheels/22/54/3f/150f6541708fab7c9be1dbcdfa60f8676fab199bbb5461e638 Building wheel for pypolyagamma (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/fulgencio/miniconda3/envs/MITRE/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"'; file='"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xezIY3 --python-tag cp27 cwd: /tmp/pip-install-VegDx6/pypolyagamma/ Complete output (36 lines): /bin/sh: 1: make: not found /home/fulgencio/miniconda3/envs/MITRE/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'cmd_class' warnings.warn(msg) running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/distributions.py -> build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/init.py -> build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/utils.py -> build/lib.linux-x86_64-2.7/pypolyagamma running build_ext building 'pypolyagamma.pypolyagamma' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/pypolyagamma creating build/temp.linux-x86_64-2.7/pypolyagamma/cpp creating build/temp.linux-x86_64-2.7/pypolyagamma/cpp/include creating build/temp.linux-x86_64-2.7/deps creating build/temp.linux-x86_64-2.7/deps/gsl creating build/temp.linux-x86_64-2.7/deps/gsl/rng creating build/temp.linux-x86_64-2.7/deps/gsl/cdf creating build/temp.linux-x86_64-2.7/deps/gsl/randist creating build/temp.linux-x86_64-2.7/deps/gsl/err creating build/temp.linux-x86_64-2.7/deps/gsl/specfunc creating build/temp.linux-x86_64-2.7/deps/gsl/complex creating build/temp.linux-x86_64-2.7/deps/gsl/sys /home/fulgencio/miniconda3/envs/MITRE/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -Ipypolyagamma/cpp/include -Ideps/gsl -Ideps/gsl/gsl -I/home/fulgencio/miniconda3/envs/MITRE/include/python2.7 -c pypolyagamma/pypolyagamma.cpp -o build/temp.linux-x86_64-2.7/pypolyagamma/pypolyagamma.o -w -DHAVE_INLINE cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ In file included from pypolyagamma/cpp/include/RNG.hpp:33:0, from pypolyagamma/pypolyagamma.cpp:437: pypolyagamma/cpp/include/GRNG.hpp:32:10: fatal error: gsl/gsl_rng.h: No such file or directory #include <gsl/gsl_rng.h> ^~~~~~~~~~~~~~~ compilation terminated. error: command '/home/fulgencio/miniconda3/envs/MITRE/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit status 1

ERROR: Failed building wheel for pypolyagamma Running setup.py clean for pypolyagamma Successfully built mitre Failed to build pypolyagamma Installing collected packages: pypolyagamma, mitre Running setup.py install for pypolyagamma ... error ERROR: Command errored out with exit status 1: command: /home/fulgencio/miniconda3/envs/MITRE/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"'; file='"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-o9GMkl/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-VegDx6/pypolyagamma/ Complete output (36 lines): /bin/sh: 1: make: not found /home/fulgencio/miniconda3/envs/MITRE/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'cmd_class' warnings.warn(msg) running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/distributions.py -> build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/init.py -> build/lib.linux-x86_64-2.7/pypolyagamma copying pypolyagamma/utils.py -> build/lib.linux-x86_64-2.7/pypolyagamma running build_ext building 'pypolyagamma.pypolyagamma' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/pypolyagamma creating build/temp.linux-x86_64-2.7/pypolyagamma/cpp creating build/temp.linux-x86_64-2.7/pypolyagamma/cpp/include creating build/temp.linux-x86_64-2.7/deps creating build/temp.linux-x86_64-2.7/deps/gsl creating build/temp.linux-x86_64-2.7/deps/gsl/rng creating build/temp.linux-x86_64-2.7/deps/gsl/cdf creating build/temp.linux-x86_64-2.7/deps/gsl/randist creating build/temp.linux-x86_64-2.7/deps/gsl/err creating build/temp.linux-x86_64-2.7/deps/gsl/specfunc creating build/temp.linux-x86_64-2.7/deps/gsl/complex creating build/temp.linux-x86_64-2.7/deps/gsl/sys /home/fulgencio/miniconda3/envs/MITRE/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O3 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -Ipypolyagamma/cpp/include -Ideps/gsl -Ideps/gsl/gsl -I/home/fulgencio/miniconda3/envs/MITRE/include/python2.7 -c pypolyagamma/pypolyagamma.cpp -o build/temp.linux-x86_64-2.7/pypolyagamma/pypolyagamma.o -w -DHAVE_INLINE cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ In file included from pypolyagamma/cpp/include/RNG.hpp:33:0, from pypolyagamma/pypolyagamma.cpp:437: pypolyagamma/cpp/include/GRNG.hpp:32:10: fatal error: gsl/gsl_rng.h: No such file or directory #include <gsl/gsl_rng.h> ^~~~~~~~~~~~~~~ compilation terminated. error: command '/home/fulgencio/miniconda3/envs/MITRE/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /home/fulgencio/miniconda3/envs/MITRE/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"'; file='"'"'/tmp/pip-install-VegDx6/pypolyagamma/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-o9GMkl/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

pedres avatar Sep 26 '19 09:09 pedres