mapbox/mapbox-cli-py

error while installing using homebrew

gregsadetsky opened this issue · 9 comments

I'm getting an error when I tried installing mapbox-cli-py using homebrew.

(creating a python3 virtualenv and installing it that way did work)

Thank you!

What you've tried already

brew install mapbox/cli/mapbox

Expected outcome

mapbox-cli-py would be installed

Actual outcome

$ brew install mapbox/cli/mapbox
# ... snip ...
==> Installing mapbox from mapbox/cli
==> python3 -m venv --system-site-packages /usr/local/Cellar/mapbox/0.8.0/libexec
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--boto3-20220613-34036-15caxuv/boto3-1.7.31
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--botocore-20220613-34036-1vf3bs1/botocore-1.10.31
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--CacheControl-20220613-34036-jb1o1/CacheControl-0.
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--certifi-20220613-34036-p4eb02/certifi-2018.4.16
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--chardet-20220613-34036-dvnz7f/chardet-3.0.4
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--click-20220613-34036-6el5wn/click-6.7
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--click-plugins-20220613-34036-13gko47/click-plugin
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--cligj-20220613-34036-1a2be7r/cligj-0.4.0
==> /usr/local/Cellar/mapbox/0.8.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/mapbox--docutils-20220613-34036-17rabs0/docutils-0.14
Last 15 lines from /Users/greg/Library/Logs/Homebrew/mapbox/10.pip:
      filename = "<auto-generated setuptools caller>"
      setup_py_code = "from setuptools import setup; setup()"
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/private/tmp/mapbox--docutils-20220613-34036-17rabs0/docutils-0.14/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' egg_info --egg-base /private/tmp/pip-pip-egg-info-ssa75mmd
  cwd: /private/tmp/mapbox--docutils-20220613-34036-17rabs0/docutils-0.14/
  Preparing metadata (setup.py): finished with status 'error'
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: There was an error checking the latest version of pip.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mapbox/homebrew-cli/issues

Other information

  • Version numbers for mapboxcli and mapbox (from, e.g., pip list) : n/a
  • Operating System : macOS 10.15.7
  • Python version number : Python 3.9.13
  • How did you install the mapbox cli? Homebrew, pip, other? : Homebrew 3.5.2

I’m getting the same error.

Got the same issue when installing, unfortunately.

I also have this issue. Is this project abandoned?

Same error for me.

Me too

same here

Me too!

Me too! (hi @davegurnell 👋 )

Workaround I've successfully used:

pip install mapboxcli

And then edit /opt/homebrew/lib/python3.11/site-packages/mapbox/utils.py changing:

from collections import Mapping, Sequence

to

from collections.abc import Mapping, Sequence

Hi @tbbuck 👋 !

I did something slightly different. I forked the repo, bumped the mapbox dependency from 0.16.1 to 0.18.1 and did

pip install .

Here's the commit:

davegurnell@89311f8

No idea if this causes other problems, but mapbox upload works for me now.