Skip to content

Instantly share code, notes, and snippets.

@inkredabull
Created April 18, 2018 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inkredabull/05e9189ab75bf156d1fbc11641a92da2 to your computer and use it in GitHub Desktop.
Save inkredabull/05e9189ab75bf156d1fbc11641a92da2 to your computer and use it in GitHub Desktop.
Python & Watchman OSX 10.13.3

A little writeup about my wrangling...

  • when I attempted: brew install --HEAD watchman got the error: ImportError: No module named setuptools
  • reviewing Logs/Homebrew/watchman/05.python, realized that ~/.pyenv was nowhere to be found on PATH (indicating that the build was leveraging system Python, which happened to be 2.)
  • made sure pyenv init was being called in both .bashrc/.zshrc
  • build (local) was still failing
  • noticed the following subdir at the front of PATH: /usr/local/Homebrew/Library/Homebrew/shims/super
  • removed /usr/local/opt/python@2.
  • decided to kludge a fix just to get Watchman build/install to work so I could make progress :-P
$ cd /usr/local/Homebrew/Library/Homebrew/shims/super
$ python --version
2.7.14
$ ln /Users/abull/.pyenv/shims/python python`
$ python --version
3.6.2
$ brew install --HEAD watchman
Error: /usr/local/opt/python@2 not present or broken
Please reinstall python@2
  • Ooops...
  • went through fixing python@2 and python@3 with brew
$ brew install --HEAD watchman
...
OSError: [Errno 2] No such file or directory ''
  • ugh....
  • going back into /usr/local/Homebrew/Library/Homebrew/shims/super, python symlink was no longer to be found

In the end, simply: brew install watchman

(maybe all the re-installs of Python helped cleanup whatever wasn't working when I tried that before.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment