ofek/coincurve

Pip installation error on MacOS 11 and Python3.9

alphabet5 opened this issue · 1 comments

python3.9 -m pip install coincurve
Collecting coincurve
  Using cached coincurve-13.0.0.tar.gz (961 kB)
Requirement already satisfied: asn1crypto in /usr/local/lib/python3.9/site-packages (from coincurve) (1.4.0)
Requirement already satisfied: cffi>=1.3.0 in /usr/local/lib/python3.9/site-packages (from coincurve) (1.14.3)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.3.0->coincurve) (2.20)
Building wheels for collected packages: coincurve
  Building wheel for coincurve (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py'"'"'; __file__='"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/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/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-wheel-0jctn3d1
       cwd: /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/
  Complete output (238 lines):
  Warning: 'keywords' should be a list, got type 'tuple'
  running bdist_wheel
  The [wheel] section is deprecated. Use [bdist_wheel] instead.
  running build
  running build_py
  creating build
  creating build/lib.macosx-11-x86_64-3.9
  creating build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/_windows_libsecp256k1.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/flags.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/__init__.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/keys.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/context.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/utils.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  copying coincurve/ecdsa.py -> build/lib.macosx-11-x86_64-3.9/coincurve
  running build_clib
  checking build system type... x86_64-apple-darwin20.2.0
  checking host system type... x86_64-apple-darwin20.2.0
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d
  checking for gawk... no
  checking for mawk... no
  checking for nawk... no
  checking for awk... awk
  checking whether make sets $(MAKE)... yes
  checking whether make supports nested variables... yes
  checking how to print strings... printf
  checking for style of include used by make... GNU
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... none needed
  checking whether gcc understands -c and -o together... yes
  checking dependency style of gcc... none
  checking for a sed that does not truncate output... /usr/bin/sed
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking for fgrep... /usr/bin/grep -F
  checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
  checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  checking the name lister (/usr/bin/nm -B) interface... BSD nm
  checking whether ln -s works... yes
  checking the maximum length of command line arguments... 786432
  checking how to convert x86_64-apple-darwin20.2.0 file names to x86_64-apple-darwin20.2.0 format... func_convert_file_noop
  checking how to convert x86_64-apple-darwin20.2.0 file names to toolchain format... func_convert_file_noop
  checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
  checking for objdump... objdump
  checking how to recognize dependent libraries... pass_all
  checking for dlltool... no
  checking how to associate runtime and link libraries... printf %s\n
  checking for ar... ar
  checking for archiver @FILE support... no
  checking for strip... strip
  checking for ranlib... ranlib
  checking command to parse /usr/bin/nm -B output from gcc object... ok
  checking for sysroot... no
  checking for a working dd... /bin/dd
  checking how to truncate binary pipes... /bin/dd bs=4096 count=1
  checking for mt... no
  checking if : is a manifest tool... no
  checking for dsymutil... dsymutil
  checking for nmedit... nmedit
  checking for lipo... lipo
  checking for otool... otool
  checking for otool64... no
  checking for -single_module linker flag... yes
  checking for -exported_symbols_list linker flag... yes
  checking for -force_load linker flag... yes
  checking how to run the C preprocessor... gcc -E
  checking for ANSI C header files... yes
  checking for sys/types.h... yes
  checking for sys/stat.h... yes
  checking for stdlib.h... yes
  checking for string.h... yes
  checking for memory.h... yes
  checking for strings.h... yes
  checking for inttypes.h... yes
  checking for stdint.h... yes
  checking for unistd.h... yes
  checking for dlfcn.h... yes
  checking for objdir... .libs
  checking if gcc supports -fno-rtti -fno-exceptions... yes
  checking for gcc option to produce PIC... -fno-common -DPIC
  checking if gcc PIC flag -fno-common -DPIC works... yes
  checking if gcc static flag -static works... no
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.o... (cached) yes
  checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
  checking dynamic linker characteristics... darwin20.2.0 dyld
  checking how to hardcode library paths into programs... immediate
  checking whether stripping libraries is possible... yes
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... no
  checking whether to build static libraries... yes
  checking whether make supports nested variables... (cached) yes
  checking for pkg-config... /usr/local/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  checking for ar... /usr/bin/ar
  checking for ranlib... /usr/bin/ranlib
  checking for strip... /usr/bin/strip
  checking for gcc... gcc
  checking whether we are using the GNU C compiler... (cached) yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ISO C89... (cached) none needed
  checking whether gcc understands -c and -o together... (cached) yes
  checking dependency style of gcc... (cached) none
  checking how to run the C preprocessor... gcc -E
  checking for gcc option to accept ISO C89... (cached) none needed
  checking dependency style of gcc... none
  checking for brew... /usr/local/bin/brew
  checking if gcc supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes
  checking if gcc supports -fvisibility=hidden... yes
  checking for __int128... yes
  checking if native gcc supports -Wall -Wextra -Wno-unused-function... yes
  checking for working native compiler: gcc... yes
  checking for x86_64 assembly availability... yes
  checking gmp.h usability... yes
  checking gmp.h presence... yes
  checking for gmp.h... yes
  checking for __gmpz_init in -lgmp... yes
  checking for CRYPTO... yes
  checking for main in -lcrypto... yes
  checking for EC functions in libcrypto... no
  checking whether byte ordering is bigendian... no
  configure: ******
  configure: WARNING: experimental build
  configure: Experimental features do not have stable APIs or properties, and may not be safe for production use.
  configure: Building ECDH module: yes
  configure: ******
  checking that generated files are newer than configure... done
  configure: creating ./config.status
  config.status: creating Makefile
  config.status: creating libsecp256k1.pc
  config.status: creating src/libsecp256k1-config.h
  config.status: executing depfiles commands
  config.status: executing libtool commands

  Build Options:
    with endomorphism       = no
    with ecmult precomp     = yes
    with external callbacks = no
    with jni                = no
    with benchmarks         = no
    with coverage           = no
    module ecdh             = yes
    module recovery         = yes

    asm                     = x86_64
    bignum                  = gmp
    field                   = 64bit
    scalar                  = 64bit
    ecmult window size      = 15
    ecmult gen prec. bits   = 4

    CC                      = gcc
    CFLAGS                  = -g -O2 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -O3
    CPPFLAGS                =
    LDFLAGS                 =

  gcc -I/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1 -I./src -g -O2 -Wall -Wextra -Wno-unused-function -c /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/src/gen_context.c -o gen_context.o
  gcc -g -O2 -Wall -Wextra -Wno-unused-function  gen_context.o -o gen_context
  ./gen_context
    CC       src/libsecp256k1_la-secp256k1.lo
    CCLD     libsecp256k1.la
    CC       src/tests-tests.o
    CCLD     tests
    CC       src/exhaustive_tests-tests_exhaustive.o
    CCLD     exhaustive_tests
   /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib'
   /bin/sh ./libtool   --mode=install /usr/bin/install -c   libsecp256k1.la '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib'
  libtool: install: /usr/bin/install -c .libs/libsecp256k1.lai /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.la
  libtool: install: /usr/bin/install -c .libs/libsecp256k1.a /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
  libtool: install: chmod 644 /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
  libtool: install: /usr/bin/ranlib /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
   /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include'
   /usr/bin/install -c -m 644 /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_preallocated.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_ecdh.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_recovery.h '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include'
   /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/pkgconfig'
   /usr/bin/install -c -m 644 libsecp256k1.pc '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/pkgconfig'
  running build_ext
  generating cffi module 'build/temp.macosx-11-x86_64-3.9/_libsecp256k1.c'
  building '_libsecp256k1' extension
  creating build/temp.macosx-11-x86_64-3.9/build
  creating build/temp.macosx-11-x86_64-3.9/build/temp.macosx-11-x86_64-3.9
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DCFFI_ENABLE_RECOVERY -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Ibuild/temp.macosx-11-x86_64-3.9/include -I/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include -c build/temp.macosx-11-x86_64-3.9/_libsecp256k1.c -o build/temp.macosx-11-x86_64-3.9/build/temp.macosx-11-x86_64-3.9/_libsecp256k1.o
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py", line 250, in <module>
      setup(
    File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py", line 93, in run
      _bdist_wheel.run(self)
    File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 290, in run
      self.run_command('build')
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.9/site-packages/cffi/setuptools_ext.py", line 144, in run
      base_class.run(self)
    File "/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py", line 209, in run
      return _build_ext.run(self)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
      objects = self.compiler.compile(sources,
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 117, in _compile
      self.spawn(compiler_so + cc_args + [src, '-o', obj] +
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 66, in spawn
      if _cfg_target_split > [int(x) for x in cur_target.split('.')]:
  AttributeError: 'int' object has no attribute 'split'
  ----------------------------------------
  ERROR: Failed building wheel for coincurve
  Running setup.py clean for coincurve
Failed to build coincurve
Installing collected packages: coincurve
    Running setup.py install for coincurve ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py'"'"'; __file__='"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/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/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-record-7ieb6o21/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/coincurve
         cwd: /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/
    Complete output (237 lines):
    Warning: 'keywords' should be a list, got type 'tuple'
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11-x86_64-3.9
    creating build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/_windows_libsecp256k1.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/flags.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/__init__.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/keys.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/context.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/utils.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    copying coincurve/ecdsa.py -> build/lib.macosx-11-x86_64-3.9/coincurve
    running build_clib
    checking build system type... x86_64-apple-darwin20.2.0
    checking host system type... x86_64-apple-darwin20.2.0
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking how to print strings... printf
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... none
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 786432
    checking how to convert x86_64-apple-darwin20.2.0 file names to x86_64-apple-darwin20.2.0 format... func_convert_file_noop
    checking how to convert x86_64-apple-darwin20.2.0 file names to toolchain format... func_convert_file_noop
    checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... no
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dsymutil... dsymutil
    checking for nmedit... nmedit
    checking for lipo... lipo
    checking for otool... otool
    checking for otool64... no
    checking for -single_module linker flag... yes
    checking for -exported_symbols_list linker flag... yes
    checking for -force_load linker flag... yes
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... yes
    checking for gcc option to produce PIC... -fno-common -DPIC
    checking if gcc PIC flag -fno-common -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... darwin20.2.0 dyld
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... no
    checking whether to build static libraries... yes
    checking whether make supports nested variables... (cached) yes
    checking for pkg-config... /usr/local/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for ar... /usr/bin/ar
    checking for ranlib... /usr/bin/ranlib
    checking for strip... /usr/bin/strip
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) none
    checking how to run the C preprocessor... gcc -E
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... none
    checking for brew... /usr/local/bin/brew
    checking if gcc supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes
    checking if gcc supports -fvisibility=hidden... yes
    checking for __int128... yes
    checking if native gcc supports -Wall -Wextra -Wno-unused-function... yes
    checking for working native compiler: gcc... yes
    checking for x86_64 assembly availability... yes
    checking gmp.h usability... yes
    checking gmp.h presence... yes
    checking for gmp.h... yes
    checking for __gmpz_init in -lgmp... yes
    checking for CRYPTO... yes
    checking for main in -lcrypto... yes
    checking for EC functions in libcrypto... no
    checking whether byte ordering is bigendian... no
    configure: ******
    configure: WARNING: experimental build
    configure: Experimental features do not have stable APIs or properties, and may not be safe for production use.
    configure: Building ECDH module: yes
    configure: ******
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libsecp256k1.pc
    config.status: creating src/libsecp256k1-config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands

    Build Options:
      with endomorphism       = no
      with ecmult precomp     = yes
      with external callbacks = no
      with jni                = no
      with benchmarks         = no
      with coverage           = no
      module ecdh             = yes
      module recovery         = yes

      asm                     = x86_64
      bignum                  = gmp
      field                   = 64bit
      scalar                  = 64bit
      ecmult window size      = 15
      ecmult gen prec. bits   = 4

      CC                      = gcc
      CFLAGS                  = -g -O2 -W -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings -fvisibility=hidden -O3
      CPPFLAGS                =
      LDFLAGS                 =

    gcc -I/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1 -I./src -g -O2 -Wall -Wextra -Wno-unused-function -c /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/src/gen_context.c -o gen_context.o
    gcc -g -O2 -Wall -Wextra -Wno-unused-function  gen_context.o -o gen_context
    ./gen_context
      CC       src/libsecp256k1_la-secp256k1.lo
      CCLD     libsecp256k1.la
      CC       src/tests-tests.o
      CCLD     tests
      CC       src/exhaustive_tests-tests_exhaustive.o
      CCLD     exhaustive_tests
     /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib'
     /bin/sh ./libtool   --mode=install /usr/bin/install -c   libsecp256k1.la '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib'
    libtool: install: /usr/bin/install -c .libs/libsecp256k1.lai /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.la
    libtool: install: /usr/bin/install -c .libs/libsecp256k1.a /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
    libtool: install: chmod 644 /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
    libtool: install: /usr/bin/ranlib /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/libsecp256k1.a
     /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include'
     /usr/bin/install -c -m 644 /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_preallocated.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_ecdh.h /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/include/secp256k1_recovery.h '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include'
     /private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/libsecp256k1/build-aux/install-sh -c -d '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/pkgconfig'
     /usr/bin/install -c -m 644 libsecp256k1.pc '/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/lib/pkgconfig'
    running build_ext
    generating cffi module 'build/temp.macosx-11-x86_64-3.9/_libsecp256k1.c'
    building '_libsecp256k1' extension
    creating build/temp.macosx-11-x86_64-3.9/build
    creating build/temp.macosx-11-x86_64-3.9/build/temp.macosx-11-x86_64-3.9
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DCFFI_ENABLE_RECOVERY -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Ibuild/temp.macosx-11-x86_64-3.9/include -I/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/build/temp.macosx-11-x86_64-3.9/include -c build/temp.macosx-11-x86_64-3.9/_libsecp256k1.c -o build/temp.macosx-11-x86_64-3.9/build/temp.macosx-11-x86_64-3.9/_libsecp256k1.o
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py", line 250, in <module>
        setup(
      File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
        self.run_command('build')
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.9/site-packages/cffi/setuptools_ext.py", line 144, in run
        base_class.run(self)
      File "/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py", line 209, in run
        return _build_ext.run(self)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
        objects = self.compiler.compile(sources,
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 574, in compile
        self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/unixccompiler.py", line 117, in _compile
        self.spawn(compiler_so + cc_args + [src, '-o', obj] +
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/ccompiler.py", line 910, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "/usr/local/Cellar/python@3.9/3.9.0_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/spawn.py", line 66, in spawn
        if _cfg_target_split > [int(x) for x in cur_target.split('.')]:
    AttributeError: 'int' object has no attribute 'split'
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/setup.py'"'"'; __file__='"'"'/private/var/folders/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-install-aiyzux6i/coincurve_7bdd54132fc74f7abdbfe1220d52868f/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/08/9jr88c0d2zndl50vc6kg65940000gn/T/pip-record-7ieb6o21/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/coincurve Check the logs for full command output.

After updating python3.9 this appears to be resolved.

python3.9 -m pip install coincurve
Collecting coincurve
  Using cached coincurve-13.0.0.tar.gz (961 kB)
Requirement already satisfied: asn1crypto in /usr/local/lib/python3.9/site-packages (from coincurve) (1.4.0)
Requirement already satisfied: cffi>=1.3.0 in /usr/local/lib/python3.9/site-packages (from coincurve) (1.14.3)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.3.0->coincurve) (2.20)
Building wheels for collected packages: coincurve
  Building wheel for coincurve (setup.py) ... done
  Created wheel for coincurve: filename=coincurve-13.0.0-cp39-cp39-macosx_11_0_x86_64.whl size=144891 sha256=a4173043f5c1747213b2c21d4b34d30a936b609221c96d47dc907748c6d033c3
  Stored in directory: /Users/jburt/Library/Caches/pip/wheels/78/57/df/e4528b49d673c7843971d7b76b332aa829c1fcf9afd424c75f
Successfully built coincurve
Installing collected packages: coincurve
Successfully installed coincurve-13.0.0