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

msgpack #1299

Open
mhsmith opened this issue Nov 26, 2024 · 2 comments
Open

msgpack #1299

mhsmith opened this issue Nov 26, 2024 · 2 comments
Labels

Comments

@mhsmith
Copy link
Member

mhsmith commented Nov 26, 2024

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).
@mhsmith
Copy link
Member Author

mhsmith commented Nov 26, 2024

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"

@mhsmith
Copy link
Member Author

mhsmith commented Nov 26, 2024

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.

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

No branches or pull requests

1 participant