datawire / homebrew-blackbird

Homebrew tap for Blackbird projects, in particular Telepresence
Apache License 2.0
8 stars 13 forks source link

No module named 'setuptools' #7

Open liorsbg opened 6 years ago

liorsbg commented 6 years ago

Running into this when trying to install (macOS 10.12.6)

$ brew install socat datawire/blackbird/telepresence
Warning: socat 1.7.3.2_2 is already installed and up-to-date
To reinstall 1.7.3.2_2, run `brew reinstall socat`
==> Installing telepresence from datawire/blackbird
==> Downloading https://github.com/telepresenceio/telepresence/archive/0.90.tar.gz
Already downloaded: /Users/liorsabag/Library/Caches/Homebrew/telepresence-0.90.tar.gz
==> Downloading https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
Already downloaded: /Users/liorsabag/Library/Caches/Homebrew/telepresence--homebrew-virtualenv-16.0.0.tar.gz
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/telepresence--homebrew-virtualenv-20180630-35856-1gra03s/target --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/liorsabag/Library/Logs/Homebrew/telepresence/01.python3:
python3
-c
import setuptools, tokenize
__file__ = 'setup.py'
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
  .replace('\r\n', '\n'), __file__, 'exec'))
--no-user-cfg
install
--prefix=/tmp/telepresence--homebrew-virtualenv-20180630-35856-1gra03s/target
--single-version-externally-managed
--record=installed.txt

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/datawire/homebrew-blackbird/issues
ark3 commented 6 years ago

That's unusual. The failing step is venv = virtualenv_create(libexec, "python3"), which is just an application of Homebrew's Python machinery.

Can you try installing a different package that uses Python, e.g., brew install awscli?

Possibly related is that Homebrew recently upgraded their Python3 to version 3.7. Maybe (re-)installing Homebrew's Python3 explicitly will address this problem.

ark3 commented 6 years ago

@liorsbg Did you succeed in getting Telepresence installed?

ravihugo commented 6 years ago

I am running into this same issue. Tried installing awscli also, but didn't work.

ravihugo commented 6 years ago

I found that I needed to run this first:

brew postinstall python3
pip3 install setuptools

Then the command: brew install socat datawire/blackbird/telepresence works just fine

TobbeTripitaka commented 5 years ago

@ravihugo This solution worked for me as well, attempting to install QGIS 3 brew install osgeo/osgeo4mac/qgis3