FYI Fix for "ERROR: Failed building wheel for beancount"

222 views
Skip to first unread message

rhotc...@gmail.com

unread,
May 1, 2021, 8:23:43 PM5/1/21
to Beancount
If you are on MacOS BigSur 11 and using pip3 to install beancount v2 from source using a local cloned repo and you get the errors:

  Building wheel for beancount (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: ........../Venvs/bc/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/w5/r7nc81_s6m7_yhxd3028_hwc0000gn/T/pip-req-build-m3s_7hso/setup.py'"'"'; __file__='"'"'/private/var/folders/w5/r7nc81_s6m7_yhxd3028_hwc0000gn/T/pip-req-build-m3s_7hso/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/w5/r7nc81_s6m7_yhxd3028_hwc0000gn/T/pip-wheel-jbc2q161
       cwd: /private/var/folders/w5/r7nc81_s6m7_yhxd3028_hwc0000gn/T/pip-req-build-m3s_7hso/
  Complete output (729 lines):
  running bdist_wheel
...
   File "......Venvs/bc/lib/python3.9/site-packages/wheel/macosx_libfile.py", line 356, in calculate_macosx_platform_tag
      assert len(base_version) == 2
  AssertionError
  ----------------------------------------
  ERROR: Failed building wheel for beancount

then to fix this problem, use pip3 to upgrade wheel to at least version 0.36.2:

pip3 install wheel --upgrade

then the pip3 install of beancount from local source should work.

Reply all
Reply to author
Forward
0 new messages