You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was trying to install pymrmr with pip, installation was failed with the following error.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
gcc, build-essential, python-dev and python3.7-dev already installed in the system.
What I Did
python3.7 -m pip install pymrmr
Collecting pymrmr
Using cached https://files.pythonhosted.org/packages/b3/ab/903712947a2f5cd1af249132885dbd81ae8bf8cfd30fb3b3f2beddab23e8/pymrmr-0.1.8.tar.gz
Requirement already satisfied: numpy>=1.12.0 in ./.local/lib/python3.7/site-packages (from pymrmr) (1.15.0)
Building wheels for collected packages: pymrmr
Running setup.py bdist_wheel for pymrmr ... error
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-febd25wn/pymrmr/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-4_ly8i5r --python-tag cp37:
running bdist_wheel
running build
running build_py
package init file 'pymrmr/__init__.py' not found (or not a regular file)
running egg_info
writing pymrmr.egg-info/PKG-INFO
writing dependency_links to pymrmr.egg-info/dependency_links.txt
writing requirements to pymrmr.egg-info/requires.txt
writing top-level names to pymrmr.egg-info/top_level.txt
reading manifest file 'pymrmr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file 'pymrmr.egg-info/SOURCES.txt'
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/crank.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/mrmr.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/nrutil.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/nrutil.h -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pbetai.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pymrmr.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pymrmr.pyx -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/sort2.cpp -> build/lib.linux-x86_64-3.7/pymrmr
running build_ext
skipping 'pymrmr/pymrmr.cpp' Cython extension (up-to-date)
building 'pymrmr' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/pymrmr
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/ssec/.local/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -c pymrmr/pymrmr.cpp -o build/temp.linux-x86_64-3.7/pymrmr/pymrmr.o -fopenmp -Ofast
In file included from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pymrmr/pymrmr.cpp:455:
/home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from pymrmr/mrmr.cpp:23:0,
from pymrmr/pymrmr.cpp:457:
pymrmr/pbetai.cpp: In function ‘float betacf(float, float, float)’:
pymrmr/pbetai.cpp:74:72: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (m > MAXIT) nrerror("a or b too big, or MAXIT too small in betacf");
^
pymrmr/pbetai.cpp: In function ‘float betai(float, float, float)’:
pymrmr/pbetai.cpp:87:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (x < 0.0 || x > 1.0) nrerror("Bad x in routine betai");
^
In file included from pymrmr/sort2.cpp:3:0,
from pymrmr/mrmr.cpp:24,
from pymrmr/pymrmr.cpp:457:
pymrmr/nrutil.cpp: In function ‘float* vector(long int, long int)’:
pymrmr/nrutil.cpp:31:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in vector()");
^
pymrmr/nrutil.cpp: In function ‘float* vector_phc(long int, long int)’:
pymrmr/nrutil.cpp:41:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in vector()");
^
pymrmr/nrutil.cpp: In function ‘int* ivector(long int, long int)’:
pymrmr/nrutil.cpp:51:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in ivector()");
^
pymrmr/nrutil.cpp: In function ‘unsigned char* cvector(long int, long int)’:
pymrmr/nrutil.cpp:61:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in cvector()");
^
pymrmr/nrutil.cpp: In function ‘long unsigned int* lvector(long int, long int)’:
pymrmr/nrutil.cpp:71:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in lvector()");
^
pymrmr/nrutil.cpp: In function ‘double* dvector(long int, long int)’:
pymrmr/nrutil.cpp:81:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in dvector()");
^
pymrmr/nrutil.cpp: In function ‘float** matrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:93:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:99:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘double** dmatrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:117:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:123:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘int** imatrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:141:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:148:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘float** submatrix(float**, long int, long int, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:167:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure in submatrix()");
^
pymrmr/nrutil.cpp: In function ‘float** convert_matrix(float*, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:189:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure in convert_matrix()");
^
pymrmr/nrutil.cpp: In function ‘float*** f3tensor(long int, long int, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:208:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t) nrerror("allocation failure 1 in f3tensor()");
^
pymrmr/nrutil.cpp:214:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t[nrl]) nrerror("allocation failure 2 in f3tensor()");
^
pymrmr/nrutil.cpp:220:64: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t[nrl][ncl]) nrerror("allocation failure 3 in f3tensor()");
^
In file included from pymrmr/mrmr.cpp:24:0,
from pymrmr/pymrmr.cpp:457:
pymrmr/sort2.cpp: In function ‘void sort2(long unsigned int, float*, float*)’:
pymrmr/sort2.cpp:68:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (jstack > NSTACK) nrerror("NSTACK too small in sort2.");
^
pymrmr/pymrmr.cpp: In function ‘PyObject* __Pyx_PyCFunction_FastCall(PyObject*, PyObject**, Py_ssize_t)’:
pymrmr/pymrmr.cpp:5418:69: error: too many arguments to function
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
^
pymrmr/pymrmr.cpp: In function ‘void __Pyx__ExceptionSave(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pymrmr/pymrmr.cpp:5990:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
*type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:5991:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:5992:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp: In function ‘void __Pyx__ExceptionReset(PyThreadState*, PyObject*, PyObject*, PyObject*)’:
pymrmr/pymrmr.cpp:5999:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6000:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6001:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp:6002:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6003:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6004:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pymrmr/pymrmr.cpp:6059:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6060:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6061:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp:6062:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = local_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6063:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6064:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
In file included from pymrmr/nrutil.cpp:7:0,
from pymrmr/sort2.cpp:3,
from pymrmr/mrmr.cpp:24,
from pymrmr/pymrmr.cpp:457:
pymrmr/nrutil.h: At global scope:
pymrmr/nrutil.h:38:21: warning: ‘iminarg2’ defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
pymrmr/nrutil.h:38:12: warning: ‘iminarg1’ defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
pymrmr/nrutil.h:34:21: warning: ‘imaxarg2’ defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
pymrmr/nrutil.h:34:12: warning: ‘imaxarg1’ defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
pymrmr/nrutil.h:30:22: warning: ‘lminarg2’ defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
pymrmr/nrutil.h:30:13: warning: ‘lminarg1’ defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
pymrmr/nrutil.h:26:22: warning: ‘lmaxarg2’ defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:26:13: warning: ‘lmaxarg1’ defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:22:22: warning: ‘minarg2’ defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
pymrmr/nrutil.h:22:14: warning: ‘minarg1’ defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
pymrmr/nrutil.h:18:22: warning: ‘maxarg2’ defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
pymrmr/nrutil.h:18:14: warning: ‘maxarg1’ defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
pymrmr/nrutil.h:14:24: warning: ‘dminarg2’ defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
pymrmr/nrutil.h:14:15: warning: ‘dminarg1’ defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
pymrmr/nrutil.h:10:24: warning: ‘dmaxarg2’ defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:10:15: warning: ‘dmaxarg1’ defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:7:15: warning: ‘dsqrarg’ defined but not used [-Wunused-variable]
static double dsqrarg;
^~~~~~~
pymrmr/nrutil.h:4:14: warning: ‘sqrarg’ defined but not used [-Wunused-variable]
static float sqrarg;
^~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pymrmr
Running setup.py clean for pymrmr
Failed to build pymrmr
Installing collected packages: pymrmr
Running setup.py install for pymrmr ... error
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-febd25wn/pymrmr/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-j0lzuj61/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
package init file 'pymrmr/__init__.py' not found (or not a regular file)
running egg_info
writing pymrmr.egg-info/PKG-INFO
writing dependency_links to pymrmr.egg-info/dependency_links.txt
writing requirements to pymrmr.egg-info/requires.txt
writing top-level names to pymrmr.egg-info/top_level.txt
reading manifest file 'pymrmr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file 'pymrmr.egg-info/SOURCES.txt'
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/crank.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/mrmr.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/nrutil.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/nrutil.h -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pbetai.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pymrmr.cpp -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/pymrmr.pyx -> build/lib.linux-x86_64-3.7/pymrmr
copying pymrmr/sort2.cpp -> build/lib.linux-x86_64-3.7/pymrmr
running build_ext
skipping 'pymrmr/pymrmr.cpp' Cython extension (up-to-date)
building 'pymrmr' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/pymrmr
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/ssec/.local/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -c pymrmr/pymrmr.cpp -o build/temp.linux-x86_64-3.7/pymrmr/pymrmr.o -fopenmp -Ofast
In file included from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from pymrmr/pymrmr.cpp:455:
/home/ssec/.local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^~~~~~~
In file included from pymrmr/mrmr.cpp:23:0,
from pymrmr/pymrmr.cpp:457:
pymrmr/pbetai.cpp: In function ‘float betacf(float, float, float)’:
pymrmr/pbetai.cpp:74:72: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (m > MAXIT) nrerror("a or b too big, or MAXIT too small in betacf");
^
pymrmr/pbetai.cpp: In function ‘float betai(float, float, float)’:
pymrmr/pbetai.cpp:87:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (x < 0.0 || x > 1.0) nrerror("Bad x in routine betai");
^
In file included from pymrmr/sort2.cpp:3:0,
from pymrmr/mrmr.cpp:24,
from pymrmr/pymrmr.cpp:457:
pymrmr/nrutil.cpp: In function ‘float* vector(long int, long int)’:
pymrmr/nrutil.cpp:31:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in vector()");
^
pymrmr/nrutil.cpp: In function ‘float* vector_phc(long int, long int)’:
pymrmr/nrutil.cpp:41:50: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in vector()");
^
pymrmr/nrutil.cpp: In function ‘int* ivector(long int, long int)’:
pymrmr/nrutil.cpp:51:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in ivector()");
^
pymrmr/nrutil.cpp: In function ‘unsigned char* cvector(long int, long int)’:
pymrmr/nrutil.cpp:61:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in cvector()");
^
pymrmr/nrutil.cpp: In function ‘long unsigned int* lvector(long int, long int)’:
pymrmr/nrutil.cpp:71:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in lvector()");
^
pymrmr/nrutil.cpp: In function ‘double* dvector(long int, long int)’:
pymrmr/nrutil.cpp:81:51: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!v) nrerror("allocation failure in dvector()");
^
pymrmr/nrutil.cpp: In function ‘float** matrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:93:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:99:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘double** dmatrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:117:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:123:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘int** imatrix(long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:141:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure 1 in matrix()");
^
pymrmr/nrutil.cpp:148:57: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m[nrl]) nrerror("allocation failure 2 in matrix()");
^
pymrmr/nrutil.cpp: In function ‘float** submatrix(float**, long int, long int, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:167:53: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure in submatrix()");
^
pymrmr/nrutil.cpp: In function ‘float** convert_matrix(float*, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:189:58: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!m) nrerror("allocation failure in convert_matrix()");
^
pymrmr/nrutil.cpp: In function ‘float*** f3tensor(long int, long int, long int, long int, long int, long int)’:
pymrmr/nrutil.cpp:208:54: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t) nrerror("allocation failure 1 in f3tensor()");
^
pymrmr/nrutil.cpp:214:59: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t[nrl]) nrerror("allocation failure 2 in f3tensor()");
^
pymrmr/nrutil.cpp:220:64: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (!t[nrl][ncl]) nrerror("allocation failure 3 in f3tensor()");
^
In file included from pymrmr/mrmr.cpp:24:0,
from pymrmr/pymrmr.cpp:457:
pymrmr/sort2.cpp: In function ‘void sort2(long unsigned int, float*, float*)’:
pymrmr/sort2.cpp:68:61: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
if (jstack > NSTACK) nrerror("NSTACK too small in sort2.");
^
pymrmr/pymrmr.cpp: In function ‘PyObject* __Pyx_PyCFunction_FastCall(PyObject*, PyObject**, Py_ssize_t)’:
pymrmr/pymrmr.cpp:5418:69: error: too many arguments to function
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
^
pymrmr/pymrmr.cpp: In function ‘void __Pyx__ExceptionSave(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pymrmr/pymrmr.cpp:5990:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
*type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:5991:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:5992:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp: In function ‘void __Pyx__ExceptionReset(PyThreadState*, PyObject*, PyObject*, PyObject*)’:
pymrmr/pymrmr.cpp:5999:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6000:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6001:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp:6002:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6003:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6004:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
pymrmr/pymrmr.cpp:6059:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tmp_type = tstate->exc_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6060:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6061:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
pymrmr/pymrmr.cpp:6062:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
tstate->exc_type = local_type;
^~~~~~~~
curexc_type
pymrmr/pymrmr.cpp:6063:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
pymrmr/pymrmr.cpp:6064:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
In file included from pymrmr/nrutil.cpp:7:0,
from pymrmr/sort2.cpp:3,
from pymrmr/mrmr.cpp:24,
from pymrmr/pymrmr.cpp:457:
pymrmr/nrutil.h: At global scope:
pymrmr/nrutil.h:38:21: warning: ‘iminarg2’ defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
pymrmr/nrutil.h:38:12: warning: ‘iminarg1’ defined but not used [-Wunused-variable]
static int iminarg1,iminarg2;
^~~~~~~~
pymrmr/nrutil.h:34:21: warning: ‘imaxarg2’ defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
pymrmr/nrutil.h:34:12: warning: ‘imaxarg1’ defined but not used [-Wunused-variable]
static int imaxarg1,imaxarg2;
^~~~~~~~
pymrmr/nrutil.h:30:22: warning: ‘lminarg2’ defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
pymrmr/nrutil.h:30:13: warning: ‘lminarg1’ defined but not used [-Wunused-variable]
static long lminarg1,lminarg2;
^~~~~~~~
pymrmr/nrutil.h:26:22: warning: ‘lmaxarg2’ defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:26:13: warning: ‘lmaxarg1’ defined but not used [-Wunused-variable]
static long lmaxarg1,lmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:22:22: warning: ‘minarg2’ defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
pymrmr/nrutil.h:22:14: warning: ‘minarg1’ defined but not used [-Wunused-variable]
static float minarg1,minarg2;
^~~~~~~
pymrmr/nrutil.h:18:22: warning: ‘maxarg2’ defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
pymrmr/nrutil.h:18:14: warning: ‘maxarg1’ defined but not used [-Wunused-variable]
static float maxarg1,maxarg2;
^~~~~~~
pymrmr/nrutil.h:14:24: warning: ‘dminarg2’ defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
pymrmr/nrutil.h:14:15: warning: ‘dminarg1’ defined but not used [-Wunused-variable]
static double dminarg1,dminarg2;
^~~~~~~~
pymrmr/nrutil.h:10:24: warning: ‘dmaxarg2’ defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:10:15: warning: ‘dmaxarg1’ defined but not used [-Wunused-variable]
static double dmaxarg1,dmaxarg2;
^~~~~~~~
pymrmr/nrutil.h:7:15: warning: ‘dsqrarg’ defined but not used [-Wunused-variable]
static double dsqrarg;
^~~~~~~
pymrmr/nrutil.h:4:14: warning: ‘sqrarg’ defined but not used [-Wunused-variable]
static float sqrarg;
^~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-febd25wn/pymrmr/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-j0lzuj61/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-febd25wn/pymrmr/
The text was updated successfully, but these errors were encountered:
Description
While I was trying to install pymrmr with pip, installation was failed with the following error.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
gcc, build-essential, python-dev and python3.7-dev already installed in the system.
What I Did
python3.7 -m pip install pymrmr
The text was updated successfully, but these errors were encountered: