chaquo/chaquopy

msgpack

Opened this issue · 2 comments

Previously reported in:

  Building wheel for msgpack (PEP 517): started
  Building wheel for msgpack (PEP 517): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/homebrew/Caskroom/miniforge/base/bin/python3 /Users/kimjongkwan/Documents/api/chaquopy-matplotlib/app/build/generated/python/bp/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/_f/j4rd_zxj1pl8nc0xw567f82r0000gn/T/tmpojcip6xt
       cwd: /private/var/folders/_f/j4rd_zxj1pl8nc0xw567f82r0000gn/T/pip-install-zu5dnyua/msgpack
  Complete output (33 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11.0-arm64-cpython-310
  creating build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/exceptions.py -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/fallback.py -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/ext.py -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  running egg_info
  writing msgpack.egg-info/PKG-INFO
  writing dependency_links to msgpack.egg-info/dependency_links.txt
  ERROR: Command errored out with exit status 1:

  writing top-level names to msgpack.egg-info/top_level.txt
  reading manifest file 'msgpack.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching '*.c' under directory 'msgpack'
  adding license file 'COPYING'
  writing manifest file 'msgpack.egg-info/SOURCES.txt'
  copying msgpack/_cmsgpack.cpp -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/_cmsgpack.pyx -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/_packer.pyx -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/_unpacker.pyx -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/buff_converter.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/pack.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/pack_template.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/sysdep.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/unpack.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/unpack_define.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  copying msgpack/unpack_template.h -> build/lib.macosx-11.0-arm64-cpython-310/msgpack
  running build_ext
  building 'msgpack._cmsgpack' extension
  error: CCompiler.compile: Chaquopy cannot compile native code
  ----------------------------------------
ERROR: Failed to install msgpack>=1.0 from https://files.pythonhosted.org/packages/c2/d5/5662032db1571110b5b51647aed4b56dfbd01bfae789fa566a2be1f385d1/msgpack-1.0.7.tar.gz#sha256=572efc93db7a4d27e404501975ca6d2d9775705c2d922390d878fcf768d92c87 (from librosa).

msgpack is supposed to have a pure-Python fallback, but it apparently isn't working in the current version. You can work around that by adding this line to the pip block of your build.gradle file:

install "msgpack==1.0.6"

Based on msgpack/msgpack-python#576 (comment), msgpack is unwilling to allow an automatic pure-Python fallback because of the significant performance decrease.

Instead, they support an opt-in with the environment variable MSGPACK_PUREPYTHON=1. To set this, see #1183.