mapbox / mapbox-cli-py

Command line interface to Mapbox Web Services
MIT License
165 stars 43 forks source link

error while installing using homebrew #136

Open gregsadetsky opened 2 years ago

gregsadetsky commented 2 years ago

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

bgeisb commented 2 years ago

I’m getting the same error.

DevinNorgarb commented 2 years ago

Got the same issue when installing, unfortunately.

phayes commented 1 year ago

I also have this issue. Is this project abandoned?

troutinsights commented 1 year ago

Same error for me.

wildstar2199 commented 1 year ago

Me too

anatarano commented 1 year ago

same here

davegurnell commented 1 year ago

Me too!

tbbuck commented 1 year ago

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

davegurnell commented 1 year ago

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:

https://github.com/davegurnell/mapbox-cli-py/commit/89311f8ade7f288ff3d92bf02b875a0dae9bc833

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