Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install readline fails for blue-app-monero tool on MacOS Catalina 10.15.7 #90

Open
Jsalas424 opened this issue Jan 16, 2021 · 4 comments

Comments

@Jsalas424
Copy link

I successfully installed pycryptodomex, ECPy, and ledgerblue with pip3 install. Installing readline fails:

jon@Jonathans-MBP ~ % pip3 install readline
Collecting readline
  Using cached readline-6.2.4.1.tar.gz (2.3 MB)
Using legacy 'setup.py install' for readline, since package 'wheel' is not installed.
Installing collected packages: readline
    Running setup.py install for readline ... error
    ERROR: Command errored out with exit status 1:
     command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/readline/setup.py'"'"'; __file__='"'"'/private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/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 /private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-record-i0ja2lie/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/readline
         cwd: /private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/readline/
    Complete output (205 lines):
    
    ============ 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-darwin19.6.0
    checking host system type... i386-apple-darwin19.6.0
    
    Beginning configuration for readline-6.2 for i386-apple-darwin19.6.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/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/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.9-x86_64-3.9
    creating build/temp.macosx-10.9-x86_64-3.9/Modules
    creating build/temp.macosx-10.9-x86_64-3.9/Modules/3.x
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -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.9/include/python3.9 -c Modules/3.x/readline.c -o build/temp.macosx-10.9-x86_64-3.9/Modules/3.x/readline.o -Wno-strict-prototypes -arch i386 -arch x86_64
    Modules/3.x/readline.c:842:19: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                char *s = _PyUnicode_AsString(r);
                      ^   ~~~~~~~~~~~~~~~~~~~~~~
    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;
                                     ^ ~~~~~~~~~~~~~
    2 warnings generated.
    Modules/3.x/readline.c:842:19: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                char *s = _PyUnicode_AsString(r);
                      ^   ~~~~~~~~~~~~~~~~~~~~~~
    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;
                                     ^ ~~~~~~~~~~~~~
    2 warnings generated.
    creating build/lib.macosx-10.9-x86_64-3.9
    gcc -bundle -undefined dynamic_lookup -g build/temp.macosx-10.9-x86_64-3.9/Modules/3.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.macosx-10.9-x86_64-3.9/readline.cpython-39-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/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/readline/setup.py'"'"'; __file__='"'"'/private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-install-d84cdehe/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 /private/var/folders/gk/xk6mdq_d7m7db3_6d4_6sg5w0000gn/T/pip-record-i0ja2lie/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/readline Check the logs for full command output.
@focusmade
Copy link

same here

@scottmcollins
Copy link

Same

@logicalup
Copy link

https://pypi.org/project/readline/ states WARNING: THIS PACKAGE IS DEPRECATED! It has been renamed to GNUREADLINE to resolve a name clash with the standard library module. gnureadline installs for me without an issue.

@logicalup
Copy link

we should still update the instructions before closing this ticket in my opinion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants