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

brew install fails on 2018 MB, High Sierra 10.13.4 #1

Closed
bryanskene opened this issue May 26, 2018 · 7 comments
Closed

brew install fails on 2018 MB, High Sierra 10.13.4 #1

bryanskene opened this issue May 26, 2018 · 7 comments
Assignees

Comments

@bryanskene
Copy link

bryan@Bryans-MB-Pro:~$ brew install saulpw/vd/visidata

[snip]

######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
######################################################################## 100.0%
==> python3 -c import setuptools... --no-user-cfg install --prefix=/tmp/visidata--homebrew-virtualenv-20180525-92795-19ud9km/target --single-version-extern
Last 15 lines from /Users/bryan/Library/Logs/Homebrew/visidata/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/visidata--homebrew-virtualenv-20180525-92795-19ud9km/target
--single-version-externally-managed
--record=installed.txt

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

@anjakefala anjakefala self-assigned this May 26, 2018
@anjakefala
Copy link
Collaborator

anjakefala commented May 26, 2018

Hi Bryan!

That is annoying :( Unfortunately, python environments are a bit of an environmental disaster, but I hope we manage to debug this.

Can you please share with me the outputs of brew doctor and brew config?

And also, the output of python -c "import sys; print sys.path"?

@bryanskene
Copy link
Author

bryanskene commented May 29, 2018 via email

@anjakefala
Copy link
Collaborator

anjakefala commented May 30, 2018

For the record. I had suggested the following series of commands:

  1. Is there /usr/local/Frameworks and is it owned by you? Otherwise:
sudo mkdir -p /usr/local/Frameworks
sudo chown -R $(whoami) /usr/local/*

(in reference to Homebrew/homebrew-core#20985)

  1. To use Python3 for install instead of system default Python2:
brew install python3
brew link python3
  1. Then try installing visidata again:
brew install saulpw/vd/visidata

The issue persisted.

I then suggested:

    sudo mkdir -p /usr/local/include
    sudo chown -R $(whoami) $(brew --prefix)/*

(Reference: kickstarter/laptop#49)

   brew install saulpw/vd/visidata
  1. If that fails
    brew install python
    brew postinstall python
    brew link python

(noting if there are errors in the output)
then

    brew install saulpw/vd/visidata

(Reference: https://github.com/Homebrew/homebrew-python/issues/216 and https://brew.sh/2018/04/09/homebrew-1.6.0/)

@bryanskene
Copy link
Author

bryanskene commented May 31, 2018 via email

@saulpw
Copy link
Collaborator

saulpw commented May 31, 2018

Well, after all that, can you run vd (without a special PATH and PYThONPATH)?

@bryanskene
Copy link
Author

bryanskene commented May 31, 2018 via email

@anjakefala
Copy link
Collaborator

!!!

<(^____^)>

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

3 participants