lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
219 stars 52 forks source link

Mac sierra installation issue #26

Closed shewmingg closed 7 years ago

shewmingg commented 7 years ago

cannot install it in pycharm, following is the terminal output

Collecting ontospy Using cached ontospy-1.7.3-py2.py3-none-any.whl Requirement already satisfied: rdflib-jsonld in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from ontospy) Collecting pygments (from ontospy) Using cached Pygments-2.2.0-py2.py3-none-any.whl Requirement already satisfied: colorama in /Users/gaozhiming/Library/Python/3.6/lib/python/site-packages (from ontospy) Collecting requests (from ontospy) Using cached requests-2.13.0-py2.py3-none-any.whl Requirement already satisfied: rdflib in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from ontospy) Collecting readline (from ontospy) Using cached readline-6.2.4.1.tar.gz Collecting click (from ontospy) Using cached click-6.7-py2.py3-none-any.whl Requirement already satisfied: pyfiglet in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from ontospy) Collecting django (from ontospy) Using cached Django-1.10.5-py2.py3-none-any.whl Collecting SPARQLWrapper (from ontospy) Using cached SPARQLWrapper-1.8.0.zip Requirement already satisfied: isodate in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from rdflib->ontospy) Requirement already satisfied: pyparsing in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from rdflib->ontospy) Installing collected packages: pygments, requests, readline, click, django, SPARQLWrapper, ontospy Running setup.py install for readline: started Running setup.py install for readline: finished with status 'error' Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pycharm-packaging/readline/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pip-5ntou_qk-record/install-record.txt --single-version-externally-managed --compile:

============ Building the readline library ============

x readline-6.2/
x readline-6.2/doc/
x readline-6.2/doc/Makefile.in
x readline-6.2/doc/texinfo.tex
x readline-6.2/doc/version.texi
x readline-6.2/doc/fdl.texi
x readline-6.2/doc/rlman.texi
x readline-6.2/doc/rltech.texi
x readline-6.2/doc/rluser.texi
x readline-6.2/doc/rluserman.texi
x readline-6.2/doc/history.texi
x readline-6.2/doc/hstech.texi
x readline-6.2/doc/hsuser.texi
x readline-6.2/doc/readline.3
x readline-6.2/doc/history.3
x readline-6.2/doc/texi2dvi
x readline-6.2/doc/texi2html
x readline-6.2/doc/readline.ps
x readline-6.2/doc/history.ps
x readline-6.2/doc/rluserman.ps
x readline-6.2/doc/readline.dvi
x readline-6.2/doc/history.dvi
x readline-6.2/doc/rluserman.dvi
x readline-6.2/doc/readline.info
x readline-6.2/doc/history.info
x readline-6.2/doc/rluserman.info
x readline-6.2/doc/readline.html
x readline-6.2/doc/history.html
x readline-6.2/doc/rluserman.html
x readline-6.2/doc/readline.0
x readline-6.2/doc/history.0
x readline-6.2/doc/readline_3.ps
x readline-6.2/doc/history_3.ps
x readline-6.2/doc/history.pdf
x readline-6.2/doc/readline.pdf
x readline-6.2/doc/rluserman.pdf
x readline-6.2/examples/
x readline-6.2/examples/autoconf/
x readline-6.2/examples/autoconf/BASH_CHECK_LIB_TERMCAP
x readline-6.2/examples/autoconf/RL_LIB_READLINE_VERSION
x readline-6.2/examples/autoconf/wi_LIB_READLINE
x readline-6.2/examples/rlfe/
x readline-6.2/examples/rlfe/ChangeLog
x readline-6.2/examples/rlfe/Makefile.in
x readline-6.2/examples/rlfe/README
x readline-6.2/examples/rlfe/config.h.in
x readline-6.2/examples/rlfe/configure
x readline-6.2/examples/rlfe/configure.in
x readline-6.2/examples/rlfe/extern.h
x readline-6.2/examples/rlfe/os.h
x readline-6.2/examples/rlfe/pty.c
x readline-6.2/examples/rlfe/rlfe.c
x readline-6.2/examples/rlfe/screen.h
x readline-6.2/examples/Makefile.in
x readline-6.2/examples/excallback.c
x readline-6.2/examples/fileman.c
x readline-6.2/examples/manexamp.c
x readline-6.2/examples/readlinebuf.h
x readline-6.2/examples/rl-fgets.c
x readline-6.2/examples/rlcat.c
x readline-6.2/examples/rlevent.c
x readline-6.2/examples/rltest.c
x readline-6.2/examples/rl.c
x readline-6.2/examples/rlptytest.c
x readline-6.2/examples/rlversion.c
x readline-6.2/examples/histexamp.c
x readline-6.2/examples/Inputrc
x readline-6.2/examples/rlwrap-0.30.tar.gz
x readline-6.2/support/
x readline-6.2/support/config.guess
x readline-6.2/support/config.rpath
x readline-6.2/support/config.sub
x readline-6.2/support/install.sh
x readline-6.2/support/mkdirs
x readline-6.2/support/mkdist
x readline-6.2/support/mkinstalldirs
x readline-6.2/support/shobj-conf
x readline-6.2/support/shlib-install
x readline-6.2/support/wcwidth.c
x readline-6.2/shlib/
x readline-6.2/shlib/Makefile.in
x readline-6.2/COPYING
x readline-6.2/README
x readline-6.2/MANIFEST
x readline-6.2/INSTALL
x readline-6.2/CHANGELOG
x readline-6.2/CHANGES
x readline-6.2/NEWS
x readline-6.2/USAGE
x readline-6.2/aclocal.m4
x readline-6.2/config.h.in
x readline-6.2/configure
x readline-6.2/configure.in
x readline-6.2/Makefile.in
x readline-6.2/ansi_stdlib.h
x readline-6.2/chardefs.h
x readline-6.2/history.h
x readline-6.2/histlib.h
x readline-6.2/keymaps.h
x readline-6.2/posixdir.h
x readline-6.2/posixjmp.h
x readline-6.2/readline.h
x readline-6.2/posixselect.h
x readline-6.2/posixstat.h
x readline-6.2/rlconf.h
x readline-6.2/rldefs.h
x readline-6.2/rlmbutil.h
x readline-6.2/rlprivate.h
x readline-6.2/rlshell.h
x readline-6.2/rlstdc.h
x readline-6.2/rltty.h
x readline-6.2/rltypedefs.h
x readline-6.2/rlwinsize.h
x readline-6.2/tcap.h
x readline-6.2/tilde.h
x readline-6.2/xmalloc.h
x readline-6.2/bind.c
x readline-6.2/callback.c
x readline-6.2/compat.c
x readline-6.2/complete.c
x readline-6.2/display.c
x readline-6.2/emacs_keymap.c
x readline-6.2/funmap.c
x readline-6.2/input.c
x readline-6.2/isearch.c
x readline-6.2/keymaps.c
x readline-6.2/kill.c
x readline-6.2/macro.c
x readline-6.2/mbutil.c
x readline-6.2/misc.c
x readline-6.2/nls.c
x readline-6.2/parens.c
x readline-6.2/readline.c
x readline-6.2/rltty.c
x readline-6.2/savestring.c
x readline-6.2/search.c
x readline-6.2/shell.c
x readline-6.2/signals.c
x readline-6.2/terminal.c
x readline-6.2/text.c
x readline-6.2/tilde.c
x readline-6.2/undo.c
x readline-6.2/util.c
x readline-6.2/vi_keymap.c
x readline-6.2/vi_mode.c
x readline-6.2/xfree.c
x readline-6.2/xmalloc.c
x readline-6.2/history.c
x readline-6.2/histexpand.c
x readline-6.2/histfile.c
x readline-6.2/histsearch.c
x readline-6.2/patchlevel
patching file vi_mode.c
patching file callback.c
patching file support/shobj-conf
patching file patchlevel
patching file input.c
patching file patchlevel
patching file vi_mode.c
patching file patchlevel
checking build system type... i386-apple-darwin16.4.0
checking host system type... i386-apple-darwin16.4.0

Beginning configuration for readline-6.2 for i386-apple-darwin16.4.0

checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/private/var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pycharm-packaging/readline/rl/readline-lib':
configure: error: C compiler cannot create executables
See `config.log' for more details.

============ Building the readline extension module ============

running install
running build
running build_ext
building 'readline' extension
creating build
creating build/temp.macosx-10.6-intel-3.6
creating build/temp.macosx-10.6-intel-3.6/Modules
creating build/temp.macosx-10.6-intel-3.6/Modules/3.x
/usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -g -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c Modules/3.x/readline.c -o build/temp.macosx-10.6-intel-3.6/Modules/3.x/readline.o -Wno-strict-prototypes -arch i386 -arch x86_64
Modules/3.x/readline.c:1179:34: warning: incompatible pointer types assigning to 'char *(*)(FILE *, FILE *, const char *)' (aka 'char *(*)(struct __sFILE *, struct __sFILE *, const char *)') from 'char *(FILE *, FILE *, char *)' (aka 'char *(struct __sFILE *, struct __sFILE *, char *)') [-Wincompatible-pointer-types]
    PyOS_ReadlineFunctionPointer = call_readline;
                                 ^ ~~~~~~~~~~~~~
1 warning generated.
Modules/3.x/readline.c:1179:34: warning: incompatible pointer types assigning to 'char *(*)(FILE *, FILE *, const char *)' (aka 'char *(*)(struct __sFILE *, struct __sFILE *, const char *)') from 'char *(FILE *, FILE *, char *)' (aka 'char *(struct __sFILE *, struct __sFILE *, char *)') [-Wincompatible-pointer-types]
    PyOS_ReadlineFunctionPointer = call_readline;
                                 ^ ~~~~~~~~~~~~~
1 warning generated.
creating build/lib.macosx-10.6-intel-3.6
/usr/bin/clang -bundle -undefined dynamic_lookup -g build/temp.macosx-10.6-intel-3.6/Modules/3.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.macosx-10.6-intel-3.6/readline.cpython-36m-darwin.so -arch i386 -arch x86_64
clang: error: no such file or directory: 'readline/libreadline.a'
clang: error: no such file or directory: 'readline/libhistory.a'
error: command '/usr/bin/clang' failed with exit status 1

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;file='/private/var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pycharm-packaging/readline/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pip-5ntou_qk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/fg/frswgnts1m953d1kfcwm_2t40000gn/T/pycharm-packaging/readline/

lambdamusic commented 7 years ago

Not sure what's going on. What about trying to install from the command line?

lambdamusic commented 7 years ago

Seems to be an error with readline, which has been removed on v1.7.6

Should be fine now.