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

error while installing using homebrew #136

Open
gregsadetsky opened this issue Jun 13, 2022 · 9 comments
Open

error while installing using homebrew #136

gregsadetsky opened this issue Jun 13, 2022 · 9 comments

Comments

@gregsadetsky
Copy link

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
@bgeisb
Copy link

bgeisb commented Jun 14, 2022

I’m getting the same error.

@DevinNorgarb
Copy link

Got the same issue when installing, unfortunately.

@phayes
Copy link

phayes commented Nov 29, 2022

I also have this issue. Is this project abandoned?

@troutinsights
Copy link

Same error for me.

@wildstar2199
Copy link

Me too

@anatarano
Copy link

same here

@davegurnell
Copy link

Me too!

@tbbuck
Copy link

tbbuck commented Apr 4, 2023

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
Copy link

davegurnell commented Apr 4, 2023

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.

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

No branches or pull requests

9 participants