universal-ctags / homebrew-universal-ctags

Homebrew Tap for Universal Ctags on OSX

Home Page:https://ctags.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brew install fails with setuptools import error

RobinRamael opened this issue · comments

[1]❯ brew install --HEAD universal-ctags/universal-ctags/universal-ctags
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/robin/Library/Caches/Homebrew/universal-ctags--git
==> Checking out branch master
==> Downloading https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz
Already downloaded: /Users/robin/Library/Caches/Homebrew/universal-ctags--docutils-0.14.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/universal-ctags/HEAD-44a0e97/libexec/vendor --single-version-externally-managed --record=installed.txt
Last 15 lines from /Users/robin/Library/Logs/Homebrew/universal-ctags/01.python:
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 970, in run_command
    cmd_obj = self.get_command_obj(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 845, in get_command_obj
    klass = self.get_command_class(command)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 430, in get_command_class
    self.cmdclass[command] = cmdclass = ep.load()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2431, in load
    return self.resolve()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2437, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_egg_info.py", line 5, in <module>
    from setuptools.archive_util import unpack_archive
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/archive_util.py", line 15, in <module>
    from pkg_resources import ensure_directory, ContextualZipFile
ImportError: cannot import name ContextualZipFile

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/universal-ctags/homebrew-universal-ctags/issues


Error: Your Xcode (9.2) is outdated.
Please update to Xcode 9.4 (or delete it).
Xcode can be updated from the App Store.


~ 16s
[1]❯ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /Users/robin/.pyenv/shims/python3.5m-config
  /Users/robin/.pyenv/shims/python3.4m-config
  /Users/robin/.pyenv/shims/python3.6m-config
  /Users/robin/.pyenv/shims/python2.7-config
  /Users/robin/.pyenv/shims/python3.5-config
  /Users/robin/.pyenv/shims/python-config
  /Users/robin/.pyenv/shims/python3-config
  /Users/robin/.pyenv/shims/python3.6-config
  /Users/robin/.pyenv/shims/python3.4-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libwkhtmltox.0.12.4.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/python2.7/greenlet/greenlet.h
  /usr/local/include/python3.5m/greenlet/greenlet.h
  /usr/local/include/wkhtmltox/image.h
  /usr/local/include/wkhtmltox/pdf.h

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  docker
  libmpc@0.8
  isl@0.11
  macvim
  docker-compose

Warning: Your Xcode (9.2) is outdated.
Please update to Xcode 9.4 (or delete it).
Xcode can be updated from the App Store.


Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/etc/bash_completion.d/_brew_services
  /usr/local/opt/cloog018

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
  brew install libogg

Run `brew missing` for more details.

I've updated the system python setuptools, but this did not change anything. Is there something wrongly configured on my end?

Hi @RobinRamael
Python isn't required by universal-ctags. Python( docutils ) only make man pages, So I add --without-doc options.
Once more please.

brew update
brew install --without-doc --HEAD universal-ctags/universal-ctags/universal-ctags

I've updated the system python setuptools,...
Which version of setuptools do you use?

pypa/setuptools#299
pypa/setuptools#252

The install succeeds with the --without-docs. Thanks!

Currently, my system python, which I'm assuming is wat brew uses, is 18.5