Can not install RPy2 - python

While trying to install RPy2 I get the below output. What am I doing wrong? Which preconditions are not met?
username#usernameVB:~$ pip install rpy2
Collecting rpy2
Using cached https://files.pythonhosted.org/packages/f1/98/c7652cc9d7fc0afce74d2c30a52b9c9ac391713a63d037e4ab8feb56c530/rpy2-2.9.4.tar.gz
Requirement already satisfied: six in ./miniconda3/lib/python3.6/site-packages (from rpy2) (1.11.0)
Requirement already satisfied: jinja2 in ./miniconda3/lib/python3.6/site-packages (from rpy2) (2.10)
Requirement already satisfied: MarkupSafe>=0.23 in ./miniconda3/lib/python3.6/site-packages (from jinja2->rpy2) (1.0)
Building wheels for collected packages: rpy2
Running setup.py bdist_wheel for rpy2 ... error
Complete output from command /home/username/miniconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9d74vjq7/rpy2/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-e0iufv00 --python-tag cp36:
R version 3.5.1 (2018-07-02) -- "Feather Spray"
/usr/lib/R/bin/R CMD config --ldflags
/usr/lib/R/bin/R CMD config --cppflags
Compilation parameters for rpy2's C components:
include_dirs = ['/usr/share/R/include']
library_dirs = ['/usr/lib/R/lib']
libraries = ['R', 'pcre', 'lzma', 'bz2', 'z', 'rt', 'dl', 'm', 'icuuc', 'icui18n']
extra_link_args = ['-Wl,--export-dynamic', '-fopenmp', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro']
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/situation.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/__init__.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/tests.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/tests_rpy_classic.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/rpy_classic.py -> build/lib.linux-x86_64-3.6/rpy2
creating build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/functional.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/container.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/indexing.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
creating build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_functional.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_container.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_indexing.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
creating build/lib.linux-x86_64-3.6/rpy2/rinterface
copying ./rpy/rinterface/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface
creating build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_EmbeddedR.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpEnvironment.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpVectorNumeric.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_Device.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_Sexp.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpExtPtr.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpVector.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpClosure.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpSymbol.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
creating build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/help.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/environments.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/methods.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/language.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/packages.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/functions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/vectors.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/conversion.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/packages_utils.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/constants.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/pandas2ri.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/robject.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/numpy2ri.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
creating build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testDataFrame.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testPackages.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testFunction.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testFormula.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testMethods.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testRObject.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testEnvironment.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testArray.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testNumpyConversions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testLanguage.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testVector.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testPandasConversions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testHelp.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testRobjects.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
creating build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/ggplot2.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/tidyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/grid.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/dbplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/test_dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/grdevices.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
creating build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_grdevices.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_ggplot2.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
creating build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/process_revents.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/packages.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
creating build/lib.linux-x86_64-3.6/rpy2/interactive/tests
copying ./rpy/interactive/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/interactive/tests
creating build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/ggplot.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/html.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/rmagic.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
creating build/lib.linux-x86_64-3.6/rpy2/ipython/tests
copying ./rpy/ipython/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/ipython/tests
copying ./rpy/ipython/tests/test_rmagic.py -> build/lib.linux-x86_64-3.6/rpy2/ipython/tests
running build_clib
building 'r_utils' library
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/rpy
creating build/temp.linux-x86_64-3.6/rpy/rinterface
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./rpy/rinterface -I/usr/share/R/include -c ./rpy/rinterface/r_utils.c -o build/temp.linux-x86_64-3.6/./rpy/rinterface/r_utils.o
In file included from /usr/share/R/include/Rdefines.h:36:0,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/R_ext/Memory.h:48:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int R_gc_running();
^~~
In file included from /usr/share/R/include/Rinternals.h:51:0,
from /usr/share/R/include/Rdefines.h:40,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/R_ext/Rdynload.h:38:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
typedef void * (*DL_FUNC)();
^~~~~~~
In file included from /usr/share/R/include/Rdefines.h:40:0,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/Rinternals.h:1040:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
const char *R_curErrorBuf();
^~~~~
/usr/share/R/include/Rinternals.h:1115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void R_init_altrep();
^~~~
/usr/share/R/include/Rinternals.h:1128:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SEXP R_MakeUnwindCont();
^~~~
ar rc build/temp.linux-x86_64-3.6/libr_utils.a build/temp.linux-x86_64-3.6/./rpy/rinterface/r_utils.o
running build_ext
R version 3.5.1 (2018-07-02) -- "Feather Spray"
building 'rpy2.rinterface._rinterface' extension
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DRIF_HAS_RSIGHAND=1 -DCSTACK_DEFNS=1 -DHAS_READLINE=1 -I./rpy/rinterface -I/usr/share/R/include -I/home/username/miniconda3/include/python3.6m -c ./rpy/rinterface/_rinterface.c -o build/temp.linux-x86_64-3.6/./rpy/rinterface/_rinterface.o
In file included from /usr/share/R/include/R.h:87:0,
from ./rpy/rinterface/_rinterface.h:8,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/R_ext/Memory.h:48:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int R_gc_running();
^~~
In file included from /usr/share/R/include/Rinternals.h:51:0,
from ./rpy/rinterface/_rinterface.h:9,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/R_ext/Rdynload.h:38:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
typedef void * (*DL_FUNC)();
^~~~~~~
In file included from ./rpy/rinterface/_rinterface.h:9:0,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/Rinternals.h:1040:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
const char *R_curErrorBuf();
^~~~~
/usr/share/R/include/Rinternals.h:1115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void R_init_altrep();
^~~~
/usr/share/R/include/Rinternals.h:1128:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SEXP R_MakeUnwindCont();
^~~~
In file included from ./rpy/rinterface/_rinterface.c:64:0:
/usr/share/R/include/Rinterface.h:157:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
extern void (*ptr_R_ProcessEvents)();
^~~~~~
./rpy/rinterface/_rinterface.c:80:10: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for rpy2
Running setup.py clean for rpy2
Failed to build rpy2
Installing collected packages: rpy2
Running setup.py install for rpy2 ... error
Complete output from command /home/username/miniconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9d74vjq7/rpy2/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-hf8g7yqq/install-record.txt --single-version-externally-managed --compile:
R version 3.5.1 (2018-07-02) -- "Feather Spray"
/usr/lib/R/bin/R CMD config --ldflags
/usr/lib/R/bin/R CMD config --cppflags
Compilation parameters for rpy2's C components:
include_dirs = ['/usr/share/R/include']
library_dirs = ['/usr/lib/R/lib']
libraries = ['R', 'pcre', 'lzma', 'bz2', 'z', 'rt', 'dl', 'm', 'icuuc', 'icui18n']
extra_link_args = ['-Wl,--export-dynamic', '-fopenmp', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro']
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/situation.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/__init__.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/tests.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/tests_rpy_classic.py -> build/lib.linux-x86_64-3.6/rpy2
copying ./rpy/rpy_classic.py -> build/lib.linux-x86_64-3.6/rpy2
creating build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/functional.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/container.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
copying ./rpy/rlike/indexing.py -> build/lib.linux-x86_64-3.6/rpy2/rlike
creating build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_functional.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_container.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
copying ./rpy/rlike/tests/test_indexing.py -> build/lib.linux-x86_64-3.6/rpy2/rlike/tests
creating build/lib.linux-x86_64-3.6/rpy2/rinterface
copying ./rpy/rinterface/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface
creating build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_EmbeddedR.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpEnvironment.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpVectorNumeric.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_Device.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_Sexp.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpExtPtr.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpVector.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpClosure.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
copying ./rpy/rinterface/tests/test_SexpSymbol.py -> build/lib.linux-x86_64-3.6/rpy2/rinterface/tests
creating build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/help.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/environments.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/methods.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/language.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/packages.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/functions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/vectors.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/conversion.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/packages_utils.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/constants.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/pandas2ri.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/robject.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
copying ./rpy/robjects/numpy2ri.py -> build/lib.linux-x86_64-3.6/rpy2/robjects
creating build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testDataFrame.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testPackages.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testFunction.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testFormula.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testMethods.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testRObject.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testEnvironment.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testArray.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testNumpyConversions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testLanguage.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testVector.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testPandasConversions.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testHelp.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
copying ./rpy/robjects/tests/testRobjects.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/tests
creating build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/ggplot2.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/tidyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/grid.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/dbplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/test_dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
copying ./rpy/robjects/lib/grdevices.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib
creating build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_grdevices.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_dplyr.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
copying ./rpy/robjects/lib/tests/test_ggplot2.py -> build/lib.linux-x86_64-3.6/rpy2/robjects/lib/tests
creating build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/process_revents.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
copying ./rpy/interactive/packages.py -> build/lib.linux-x86_64-3.6/rpy2/interactive
creating build/lib.linux-x86_64-3.6/rpy2/interactive/tests
copying ./rpy/interactive/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/interactive/tests
creating build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/ggplot.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/html.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
copying ./rpy/ipython/rmagic.py -> build/lib.linux-x86_64-3.6/rpy2/ipython
creating build/lib.linux-x86_64-3.6/rpy2/ipython/tests
copying ./rpy/ipython/tests/__init__.py -> build/lib.linux-x86_64-3.6/rpy2/ipython/tests
copying ./rpy/ipython/tests/test_rmagic.py -> build/lib.linux-x86_64-3.6/rpy2/ipython/tests
running build_clib
building 'r_utils' library
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/rpy
creating build/temp.linux-x86_64-3.6/rpy/rinterface
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I./rpy/rinterface -I/usr/share/R/include -c ./rpy/rinterface/r_utils.c -o build/temp.linux-x86_64-3.6/./rpy/rinterface/r_utils.o
In file included from /usr/share/R/include/Rdefines.h:36:0,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/R_ext/Memory.h:48:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int R_gc_running();
^~~
In file included from /usr/share/R/include/Rinternals.h:51:0,
from /usr/share/R/include/Rdefines.h:40,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/R_ext/Rdynload.h:38:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
typedef void * (*DL_FUNC)();
^~~~~~~
In file included from /usr/share/R/include/Rdefines.h:40:0,
from ./rpy/rinterface/r_utils.c:24:
/usr/share/R/include/Rinternals.h:1040:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
const char *R_curErrorBuf();
^~~~~
/usr/share/R/include/Rinternals.h:1115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void R_init_altrep();
^~~~
/usr/share/R/include/Rinternals.h:1128:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SEXP R_MakeUnwindCont();
^~~~
ar rc build/temp.linux-x86_64-3.6/libr_utils.a build/temp.linux-x86_64-3.6/./rpy/rinterface/r_utils.o
running build_ext
R version 3.5.1 (2018-07-02) -- "Feather Spray"
building 'rpy2.rinterface._rinterface' extension
gcc -pthread -B /home/username/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DRIF_HAS_RSIGHAND=1 -DCSTACK_DEFNS=1 -DHAS_READLINE=1 -I./rpy/rinterface -I/usr/share/R/include -I/home/username/miniconda3/include/python3.6m -c ./rpy/rinterface/_rinterface.c -o build/temp.linux-x86_64-3.6/./rpy/rinterface/_rinterface.o
In file included from /usr/share/R/include/R.h:87:0,
from ./rpy/rinterface/_rinterface.h:8,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/R_ext/Memory.h:48:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
int R_gc_running();
^~~
In file included from /usr/share/R/include/Rinternals.h:51:0,
from ./rpy/rinterface/_rinterface.h:9,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/R_ext/Rdynload.h:38:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
typedef void * (*DL_FUNC)();
^~~~~~~
In file included from ./rpy/rinterface/_rinterface.h:9:0,
from ./rpy/rinterface/_rinterface.c:52:
/usr/share/R/include/Rinternals.h:1040:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
const char *R_curErrorBuf();
^~~~~
/usr/share/R/include/Rinternals.h:1115:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
void R_init_altrep();
^~~~
/usr/share/R/include/Rinternals.h:1128:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
SEXP R_MakeUnwindCont();
^~~~
In file included from ./rpy/rinterface/_rinterface.c:64:0:
/usr/share/R/include/Rinterface.h:157:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
extern void (*ptr_R_ProcessEvents)();
^~~~~~
./rpy/rinterface/_rinterface.c:80:10: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/username/miniconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-9d74vjq7/rpy2/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-hf8g7yqq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-9d74vjq7/rpy2/
Is there an issue in my R installation (it is a default R installed on Ubuntu)?
I need to add "more details" since my post can not be submitted since it appears to include only code. So here are more details: blah blah, detail 1, detail 2, detail 3, ...

You need to install the library readline and its headers.
The hint was near the end of the terminal output:
./rpy/rinterface/_rinterface.c:80:10: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Related

Cannot install pyobjc-core MacOs for python 3.8.0 (command 'gcc' failed with exit status 1)

OS: macOS Big Sur: 11.0.1
Python: 3.8.0
trying to install pyobjc-core==5.2 to fulfill the requirements for the "automate the boring stuff" book.
I have tried many suggested fixes online and have yet to find a solution in this particular case. Was able to get this all installed on my windows machine but I am not familiar with macOS.
Here is the output:
Running setup.py install for pyobjc-core ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-0ayo2s8h/pyobjc-core/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-0ayo2s8h/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-record-xdak7whs/install-record.txt --single-version-externally-managed --compile --user --prefix=
cwd: /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-0ayo2s8h/pyobjc-core/
Complete output (195 lines):
running install
running build
running build_py
Overriding build_packages to copy PyObjCTest
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_bridges.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_protocols.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_sequence.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsset.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_pycoder.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_lazyimport.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsstring.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_framework.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsdecimal.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_properties.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_callable_docstr.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_context.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_locking.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_descriptors.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_bridgesupport.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsdictionary.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_pythonify.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsarray.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsobject.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_category.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_compat.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_mapping.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_dyld.py -> build/lib.macosx-10.9-x86_64-3.8/objc
copying Lib/objc/_convenience_nsdata.py -> build/lib.macosx-10.9-x86_64-3.8/objc
creating build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
copying Lib/PyObjCTools/Signals.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
copying Lib/PyObjCTools/TestSupport.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
copying Lib/PyObjCTools/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
copying Lib/PyObjCTools/KeyValueCoding.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
copying Lib/PyObjCTools/MachSignals.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTools
creating build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_voidpointer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_unichar.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test2_filepointer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_fsref.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methodedits.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_bundleFunctions.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_struct.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_dict_proxy.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_callbacks.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_unicode.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_weakref.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_testsupport.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_protocol.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methods.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_objcpointer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_inspect_signatures.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_archiving_interop.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_dyld.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_copying.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_nsdate_proxy.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata_inheritance.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_assocations.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_classandinst.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_archiving_secure_interop.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_splitsig.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_pickling_objc.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_pickle.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_clinmeth.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test3_filepointer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_bridges.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_convenience.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata_function.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_version_support.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_bundleVariables.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test3_dict_interface.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_list_proxy.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_blocks.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_array_interface.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_allocatebuffer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_deprecations.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_synthesize.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_propertiesforclass.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charbyte.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_varargs.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_usekvo.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_exceptions.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_hidden_selector.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_bridgesupport.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_keyvalue.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_nsbool.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_subclass.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test2_dict_interface.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_nsdecimal.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_pointer_compat.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_set_interface.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_NULL.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_protocolNamed.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_signatures.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_classhooks.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_conversion.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_python_method.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_arrays.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata_py2py.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_set_property.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methods2.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methres.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/fnd.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_initialized.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_method_prototypes.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charint.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/loader.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_keyvaluecoding.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata_py.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_default_selector.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_objc.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_structs.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test3_protocol.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_corefoundation.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_identity.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_compat.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_imp.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test3_typecheck.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_regr.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_nsdata.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_outputinitializer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_set_proxy.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_locking.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/helper_bridgesupport.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_archive_python.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_array_property.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_object_property.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_context.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_structpointer.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_lazy_import.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/dejagnu.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_number_proxy.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_dict_property.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methodlookup.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_ivar.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_descriptors.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_protected.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_callable_docstr.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_framework.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_ctests.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test2_dictviews.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/keyvaluehelper.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_sockaddr.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_keyvalue_prop.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_constants.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_posing.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_bridged_classes.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_metadata_imp.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_methodaccess.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_opaque.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_leaks.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
copying PyObjCTest/test_specialtypecodes_methdef.py -> build/lib.macosx-10.9-x86_64-3.8/PyObjCTest
running build_ext
building 'objc._objc' extension
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/Modules
creating build/temp.macosx-10.9-x86_64-3.8/Modules/objc
creating build/temp.macosx-10.9-x86_64-3.8/libffi-src
creating build/temp.macosx-10.9-x86_64-3.8/libffi-src/powerpc
creating build/temp.macosx-10.9-x86_64-3.8/libffi-src/x86
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c Modules/objc/OC_PythonData.m -o build/temp.macosx-10.9-x86_64-3.8/Modules/objc/OC_PythonData.o -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pragmas -Wshorten-64-to-32 -Ilibffi-src/include -Ilibffi-src/powerpc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -DPyObjC_BUILD_RELEASE=1100
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c Modules/objc/objc_support.m -o build/temp.macosx-10.9-x86_64-3.8/Modules/objc/objc_support.o -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pragmas -Wshorten-64-to-32 -Ilibffi-src/include -Ilibffi-src/powerpc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -DPyObjC_BUILD_RELEASE=1100
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c Modules/objc/helpers-foundation-nscoder.m -o build/temp.macosx-10.9-x86_64-3.8/Modules/objc/helpers-foundation-nscoder.o -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pragmas -Wshorten-64-to-32 -Ilibffi-src/include -Ilibffi-src/powerpc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -DPyObjC_BUILD_RELEASE=1100
Modules/objc/helpers-foundation-nscoder.m:335:37: error: too many arguments to function call, expected 0, have 4
(void)objc_msgSendSuper(&super,
~~~~~~~~~~~~~~~~~ ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/message.h:66:1: note: 'objc_msgSendSuper' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/objc-api.h:242:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/objc-api.h:231:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
Modules/objc/helpers-foundation-nscoder.m:451:37: error: too many arguments to function call, expected 0, have 5
(void)objc_msgSendSuper(&super,
~~~~~~~~~~~~~~~~~ ^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/message.h:66:1: note: 'objc_msgSendSuper' declared here
OBJC_EXPORT void
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/objc-api.h:242:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/objc-api.h:231:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
2 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-0ayo2s8h/pyobjc-core/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-0ayo2s8h/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-record-xdak7whs/install-record.txt --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
WARNING: You are using pip version 19.3.1; however, version 20.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
****#****s-MacBook-Air desktop %
Alright I installed brew and then using brew installed zlib and libpng, the resulting error is a CalledProcessError after attempting to install pyobjc-core again.
****#****s-MacBook-Air desktop % pip3 install --user pyobjc-core==5.2
Collecting pyobjc-core==5.2
Using cached https://files.pythonhosted.org/packages/d3/f5/07579f2986f2eb639932626f69a082598f5e6d4535e1f54a331d9efa97d7/pyobjc-core-5.2.tar.gz
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/setup.py'"'"'; __file__='"'"'/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info
cwd: /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/
Complete output (47 lines):
running egg_info
creating /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info
writing include/pyobjc-compat.h to /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/include/pyobjc-compat.h
writing include/pyobjc-api.h to /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/include/pyobjc-api.h
writing /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/dependency_links.txt
writing namespace_packages to /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/namespace_packages.txt
writing top-level names to /private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/top_level.txt
writing manifest file '/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/pip-egg-info/pyobjc_core.egg-info/SOURCES.txt'
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/setup.py", line 695, in <module>
setup(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/setup.py", line 364, in run
egg_info.egg_info.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 296, in run
self.find_sources()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 303, in find_sources
mm.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 534, in run
self.add_defaults()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 570, in add_defaults
sdist.add_defaults(self)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/sdist.py", line 228, in add_defaults
self._add_defaults_ext()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/sdist.py", line 311, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 299, in get_finalized_command
cmd_obj.ensure_finalized()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/private/var/folders/fc/z49hllzx5s7_s2wbbtpn3j4r0000gn/T/pip-install-v4_nrcm7/pyobjc-core/setup.py", line 535, in finalize_options
self.sdk_root = subprocess.check_output(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/xcodebuild', '-version', '-sdk', 'macosx', 'Path']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Welp, im assuming that newer versions of pyobjc/core/frameworkQuartz will work similarly when it comes to following along the book ive been reading. so I went ahead and stopped trying to install those particular versions mentioned in said book.
Had no more issues after I installed the newest version being 7.0.1

Error in installing JPype1 in Python 3.7 on Mac OS 10.14.2

I am getting error while installing JPype1 in my system. I am using Python 3.7. JPype1 is required as dependency for Jaydebeapi.
pip install Jpype1
Following are the error message:
Collecting jpype1
Using cached
https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz
Building wheels for collected packages: jpype1
Running setup.py bdist_wheel for jpype1 ... error
Complete output from command /Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/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 /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-wheel-swsvni4l --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jcollection.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_classpath.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_pykeywords.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jproxy.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_gui.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_darwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/nio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_cygwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_properties.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_refdaemon.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jboxed.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/JClassUtil.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jvmfinder.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/imports.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_core.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_linux.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jarray.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jobject.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jclass.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_windows.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jwrapper.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jexception.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/reflect.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jpackage.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt
copying jpype/awt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/WindowAdapter.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
creating build/lib.macosx-10.7-x86_64-3.6/jpypex
copying jpypex/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex
creating build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/AbstractAction.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/pyutils.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
running build_ext
/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/native
creating build/temp.macosx-10.7-x86_64-3.6/native/python
creating build/temp.macosx-10.7-x86_64-3.6/native/common
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/citius/anaconda3/include -arch x86_64 -I/Users/citius/anaconda3/include -arch x86_64 -DMACOSX=1 -DHAVE_NUMPY=1 -Inative/common/include -Inative/python/include -Inative/jni_include -I/Users/citius/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/citius/anaconda3/include/python3.6m -c native/python/jpype_python.cpp -o build/temp.macosx-10.7-x86_64-3.6/native/python/jpype_python.o -ggdb
In file included from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/citius/anaconda3/include/python3.6m/Python.h:11,
from native/python/include/jpype_python.h:23,
from native/python/jpype_python.cpp:19:
/Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for jpype1
Running setup.py clean for jpype1
Failed to build jpype1
Installing collected packages: jpype1
Running setup.py install for jpype1 ... error
Complete output from command /Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-record-3pg5yd08/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jcollection.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_classpath.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_pykeywords.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jproxy.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_gui.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_darwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/nio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_cygwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_properties.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_refdaemon.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jboxed.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/JClassUtil.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jvmfinder.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/imports.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_core.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_linux.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jarray.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jobject.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jclass.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_windows.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jwrapper.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jexception.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/reflect.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jpackage.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt
copying jpype/awt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/WindowAdapter.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
creating build/lib.macosx-10.7-x86_64-3.6/jpypex
copying jpypex/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex
creating build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/AbstractAction.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/pyutils.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
running build_ext
/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/native
creating build/temp.macosx-10.7-x86_64-3.6/native/python
creating build/temp.macosx-10.7-x86_64-3.6/native/common
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/citius/anaconda3/include -arch x86_64 -I/Users/citius/anaconda3/include -arch x86_64 -DMACOSX=1 -DHAVE_NUMPY=1 -Inative/common/include -Inative/python/include -Inative/jni_include -I/Users/citius/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/citius/anaconda3/include/python3.6m -c native/python/jpype_python.cpp -o build/temp.macosx-10.7-x86_64-3.6/native/python/jpype_python.o -ggdb
In file included from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/citius/anaconda3/include/python3.6m/Python.h:11,
from native/python/include/jpype_python.h:23,
from native/python/jpype_python.cpp:19:
/Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-record-3pg5yd08/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/
First install gcc using conda
conda install gcc
Then use binary installation for jpype1. Install it from the conda-forge software channel.
conda install -c conda-forge jpype1
It worked for me.
It also works for Python2.7
For Amazon Linux or other RedHat-based:
dnf install redhat-rpm-config gcc-c++ python3-devel unixODBC-devel

OpenSSL and Cryptography issue while trying to install a Python package

Trying to run make dev on a python package and getting this log, any idea?
Using cached futures-3.2.0-py2-none-any.whl
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /opt/h/.venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lwPWQH/cryptography/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/tmpfQphoRpip-wheel- --python-tag cp27:
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/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Installing collected packages: cryptography, zope.deprecation, peppercorn, deform, jinja2, deform-jinja2, urllib3, elasticsearch, functools32, greenlet, gevent, gunicorn, itsdangerous, jsonpointer, jsonschema, mistune, newrelic, oauthlib, passlib, pastedeploy, psycogreen, psycopg2, pyjwt, venusian, repoze.lru, webob, zope.interface, pyramid, pyramid-services, pyramid-authsanity, pyramid-jinja2, pyramid-layout, transaction, repoze.sendmail, pyramid-mailer, pyramid-tm, unidecode, python-slugify, raven, requests, requests-aws4auth, statsd, ws4py, wsaccel, zope.sqlalchemy, pyflakes, configparser, pycodestyle, mccabe, flake8, honcho, pep257, flake8-polyfill, pep8-naming, setoptconf, dodgy, wrapt, singledispatch, lazy-object-proxy, astroid, requirements-detector, futures, isort, pylint, pylint-plugin-utils, pylint-django, snowballstemmer, pydocstyle, pylint-celery, pylint-common, pyyaml, pylint-flask, docutils, pyroma, prospector, pyramid-mako, Pygments, pyramid-debugtoolbar, alabaster, babel, imagesize, typing, sphinxcontrib-websupport, sphinx, sphinx-rtd-theme
Found existing installation: cryptography 2.1.4
Uninstalling cryptography-2.1.4:
Successfully uninstalled cryptography-2.1.4
Running setup.py install for cryptography ... error
Complete output from command /opt/h/.venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lwPWQH/cryptography/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-f6jEfJ-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/h/.venv/include/site/python2.7/cryptography:
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/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of cryptography
Command "/opt/h/.venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lwPWQH/cryptography/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-f6jEfJ-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/h/.venv/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-lwPWQH/cryptography/
Makefile:68: recipe for target '.pydeps' failed
make: *** [.pydeps] Error 1
You're missing python headers (install the appropriate -dev package on debian-based linux or -devel on the redhat-based one), or the building process searches for them in the wrong place. In the latter case, either correct the building tools or override the header search path with various CFLAGS variables.

Python cryptography module import error

I am attempting to run a website that is built on CherryPy and working on deploying it in a new environment with Python 2.7.13 and been working to get everything necessary setup. Currently I am stuck on importing pyOpenSSL to enable SSL support but pyOpenSSL is unable to install because a required module, Cryptography, is not installing. So I have been working on installing just Cryptography for the time being as all other required modules are installed.
Earlier, after I had used pip2.7 install cryptography > /tmp/piplog.txt to attempt to install the module and log the whole output to a separate file and I was able to see errors like these
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c:434:30: error: openssl/opensslv.h: No such file or directory
build/temp.linux-x86_64-2.7/_openssl.c:448:27: error: openssl/e_os2.h: No such file or directory
build/temp.linux-x86_64-2.7/_openssl.c:468:25: error: openssl/aes.h: No such file or directory
build/temp.linux-x86_64-2.7/_openssl.c:471:26: error: openssl/asn1.h: No such file or directory
This lead me to see where those files currently actually were installed with find / -name opensslv.h and then I copied the files from my install of openssl with
cp -rf /usr/local/ssl/inclue/openssl/* /usr/local/include/python2.7/openssl
so that the cryptography module would find the appropriate files and it seems like the installer got a bit farther, but I am not able to currently make sense of the errors I am seeing in the output. The full output is below
Collecting cryptography
Using cached cryptography-1.9.tar.gz
Requirement already satisfied: idna>=2.1 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from cryptography)
Requirement already satisfied: enum34 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: ipaddress in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: cffi>=1.7 in /usr/local/lib/python2.7/site-packages (from cryptography)
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/site-packages (from cffi>=1.7->cryptography)
Installing collected packages: cryptography
Running setup.py install for cryptography: started
Running setup.py install for cryptography: finished with status 'error'
Complete output from command /usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-VvLC6F/cryptography/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-iAcBaS-record/install-record.txt --single-version-externally-managed --compile:
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/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography
creating build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-2.7/cryptography/x509
creating build/lib.linux-x86_64-2.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/mac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c: In function ‘_setup_ssl_threads’:
build/temp.linux-x86_64-2.7/_openssl.c:3400: warning: comparison is always false due to limited range of data type
gcc -pthread -shared build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o -lssl -lcrypto -o build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/_openssl.so
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Well, it seems that I was running into a similar error as before since once I added symbolic links to the libssl.so and libcrypto.so files to my /usr/lib/ directory. As root I did
ln -s /usr/local/ssl/lib/libssl.so /usr/lib/libssl.so
ln -s /usr/local/ssl/lib/libcrypto.so /usr/lib/libcrypto.so
After that I was able to successfully do pip2.7 install cryptography and pip2.7 install pyOpenSSL
Now when I start up my cherrypy website I no longer get errors about the pyOpenSSL being required.
Possibly some rookie mistakes with my previous software install caused the files to be not where the new installer was looking, or I should have known to put the symbolic link there to avoid these types of issues. But a good learning experience

Error in installing pycrypto-2.3 on fedora 15

Hi i am trying to install pycrypto-2.3 from here
I downloaded and run the following command
cd pycrypto-2.3/
python setup.py install
I am getting the following error,
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/Crypto
copying lib/Crypto/pct_warnings.py -> build/lib.linux-x86_64-2.7/Crypto
copying lib/Crypto/__init__.py -> build/lib.linux-x86_64-2.7/Crypto
creating build/lib.linux-x86_64-2.7/Crypto/Hash
copying lib/Crypto/Hash/SHA.py -> build/lib.linux-x86_64-2.7/Crypto/Hash
copying lib/Crypto/Hash/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Hash
copying lib/Crypto/Hash/MD5.py -> build/lib.linux-x86_64-2.7/Crypto/Hash
copying lib/Crypto/Hash/RIPEMD.py -> build/lib.linux-x86_64-2.7/Crypto/Hash
copying lib/Crypto/Hash/HMAC.py -> build/lib.linux-x86_64-2.7/Crypto/Hash
creating build/lib.linux-x86_64-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher
creating build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/_number_new.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/python_compat.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/RFC1751.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/asn1.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/randpool.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/Counter.py -> build/lib.linux-x86_64-2.7/Crypto/Util
copying lib/Crypto/Util/number.py -> build/lib.linux-x86_64-2.7/Crypto/Util
creating build/lib.linux-x86_64-2.7/Crypto/Random
copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.linux-x86_64-2.7/Crypto/Random
copying lib/Crypto/Random/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random
copying lib/Crypto/Random/random.py -> build/lib.linux-x86_64-2.7/Crypto/Random
creating build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna
creating build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest
copying lib/Crypto/SelfTest/st_common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest
copying lib/Crypto/SelfTest/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG
creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util
creating build/lib.linux-x86_64-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/Chaffing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol
creating build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/qNEW.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/pubkey.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey
running build_ext
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
can anyone please let me know how to solve this and install pycrypto-2.3 successfully on my machine.
PyCrypto is called python-crypto in Fedora, and can be installed with:
yum install python-crypto
It's always worth reading the documentation first. I'll quote from pycrypto's README:
Red Hat users often run into this because they don't have the
python2-devel RPM installed. The fix is to simply install the
requisite RPM.
edit I'll add, don't get your software from a website like softpedia (especially not crypto software!). Get it from the pycrypto website and verify the signature and file hash.
To solve this, you only need to install python-devel beforehand.
But if you are using Fedora-23 like me, you may face another problem before this one. So you need to install one more package.
sudo dnf install redhat-rpm-config python-devel
In some versions of Fedora it's necessary to install the following package:
dnf install deluge.

Categories