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

No module named 'setuptools' #7

Open
liorsbg opened this issue Jun 30, 2018 · 5 comments
Open

No module named 'setuptools' #7

liorsbg opened this issue Jun 30, 2018 · 5 comments

Comments

@liorsbg
Copy link

liorsbg commented Jun 30, 2018

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
@liorsbg liorsbg changed the title No module names setuptools No module named 'setuptools' Jun 30, 2018
@ark3
Copy link
Contributor

ark3 commented Jul 2, 2018

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

ark3 commented Jul 17, 2018

@liorsbg Did you succeed in getting Telepresence installed?

@ravihugo
Copy link

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

@ravihugo
Copy link

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

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

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

4 participants