visidata / homebrew-vd

VisiData formulae for the Homebrew package manager
13 stars 3 forks source link

Homebrew installation fails on MacOS 10.13.6 #6

Closed gvwilson closed 1 year ago

gvwilson commented 4 years ago

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

anjakefala commented 4 years ago

Hi @gvwilson! It is a pleasure to see you here. I first learned how to use version control, GitHub, and draw graphs in Python at a Software Carpentry workshop!

Unfortunately, no one in the maintainer team has access to a MacOS anymore, so I am not able to address this in the near future. I am going to try crowd-sourcing to see if someone is up for taking a look at this.

Please (at) anyone, do write in this issue if you are up for taking a look at this.

Thanks for the report!

anjakefala commented 4 years ago

pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /usr/local/Cellar/visidata/1.5.2/libexec/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-req-build-iqofvi2z/setup.py'"'"'; file='"'"'/private/tmp/pip-req-build-iqofvi2z/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-c_fouihu/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/visidata/1.5.2/libexec/bin/../include/site/python3.7/lxml Check the logs for full command output.

Can you share those full logs, if you do have them?

gvwilson commented 4 years ago

Always a pleasure to bump into a Carpentry alum - this zip contains everything from ~/Library/Logs/Homebrew/visidata. Hope it's useful - let me know if there's anything else I can share. visidata-logs.zip

radostyle commented 4 years ago

I just tested on MacOS 10.14.6 and it worked

brew install saulpw/vd/visidata

==> Tapping saulpw/vd
Cloning into '/usr/local/Homebrew/Library/Taps/saulpw/homebrew-vd'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 105 (delta 0), reused 3 (delta 0), pack-reused 101
Receiving objects: 100% (105/105), 17.70 KiB | 533.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
Tapped 1 formula (27 files, 49.6KB).
==> Installing visidata from saulpw/vd
==> Downloading https://files.pythonhosted.org/packages/a6/f3/e16712dc1d51e59c3e1f925b3375c6774c135ea7f5c39597c976bd2ef991/visidata-1.5.2.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/virtualenv-15.2.0.tar.gz
######################################################################## 100.0%
==> python3 -c import setuptools... --no-user-cfg install --prefix=/private/tmp/visidata--homebrew-virtualenv-20200409-28546-xooeyt/target --install-scripts=/private
==> python3 -s /private/tmp/visidata--homebrew-virtualenv-20200409-28546-xooeyt/target/bin/virtualenv -p python3 /usr/local/Cellar/visidata/1.5.2/libexec
==> Downloading https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--six-20200409-28546-1os43re/six-
==> Downloading https://files.pythonhosted.org/packages/54/bb/f1db86504f7a49e1d9b9301531181b00a1c7325dc85a29160ee3eaa73a54/python-dateutil-2.6.1.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--python-dateutil-20200409-28546-
==> Downloading https://files.pythonhosted.org/packages/22/28/a99c42aea746e18382ad9fb36f64c1c1f04216f41797f2f0fa567da11388/et_xmlfile-1.0.1.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--et-xmlfile-20200409-28546-19o6k
==> Downloading https://files.pythonhosted.org/packages/9b/fa/40beb2aa43a13f740dd5be367a10a03270043787833409c61b79e69f1dfd/jdcal-1.3.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--jdcal-20200409-28546-1mbvx0b/jd
==> Downloading https://files.pythonhosted.org/packages/8c/75/c4e557207c7ff3d217d002d4fee32b4e5dbfc5498e2a2c9ce6b5424c5e37/openpyxl-2.4.9.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--openpyxl-20200409-28546-dn59dt/
==> Downloading https://files.pythonhosted.org/packages/86/cf/bb010f16cefa8f26ac9329ca033134bcabc7a27f5c3d8de961bacc0f80b3/xlrd-1.1.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--xlrd-20200409-28546-1g2rg7m/xlr
==> Downloading https://files.pythonhosted.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3/idna-2.6.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--idna-20200409-28546-qheu20/idna
==> Downloading https://files.pythonhosted.org/packages/23/3f/8be01c50ed24a4bd6b8da799839066ce0288f66f5e11f0367323467f0cbc/certifi-2017.11.5.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--certifi-20200409-28546-4jodob/c
==> Downloading https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--chardet-20200409-28546-1jilxxp/
==> Downloading https://files.pythonhosted.org/packages/ee/11/7c59620aceedcc1ef65e156cc5ce5a24ef87be4107c2b74458464e437a5d/urllib3-1.22.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--urllib3-20200409-28546-1ffbtwm/
==> Downloading https://files.pythonhosted.org/packages/b0/e1/eab4fc3752e3d240468a8c0b284607899d2fbfb236a56b7377a329aa8d09/requests-2.18.4.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--requests-20200409-28546-eco9fm/
==> Downloading https://files.pythonhosted.org/packages/da/b5/d3e0d22649c63e92cb0902847da9ae155c1e801178ab5d272308f35f726e/lxml-4.3.4.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata--lxml-20200409-28546-19g0duq/lxm
==> /usr/local/Cellar/visidata/1.5.2/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/visidata-20200409-28546-1917jul/visidata-
🍺  /usr/local/Cellar/visidata/1.5.2: 1,966 files, 21.0MB, built in 1 minute 19 seconds
ajkerrigan commented 4 years ago

Hi there @gvwilson - I see that your VisiData install is getting tripped up building the lxml module. I know I've run into that issue with Python packages in Homebrew in the past, and I believe in the happy case brew install libxml2 followed by retrying brew install visidata would help make some progress.

It's worth a shot anyway! If that doesn't work, you might be able to at least get a quicker feedback loop and more focused error trying:

/usr/local/Cellar/visidata/1.5.2/libexec/bin/python -m pip install lxml==4.3.4
gvwilson commented 4 years ago

Tried brew install libxml2 (transcript below) followed by brew install visidata - the latter failed in the same way as before, but that might be because of the error at the end of the libxml2 installation (?). I do not have a /usr/local/Cellar/visidata directory: /usr/local/Cellar has 103 other entries, though. I'm using Python 3.7.3 installed in /anaconda3/bin/python.

$ brew install libxml2
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
borgmatic       cxxtest         dnsviz          eralchemy       fabric          fobis           gitfs           googler         gprof2dot       perl            vim
cryptominisat   dnstwist        doitlive        eye-d3          fbi-servefiles  ford            gitless         goolabs         grip            subversion      weechat
==> Updated Casks
a-better-finder-rename             djay-pro                           goland                             metashapepro                       rapidweaver
airy                               dust3d                             insync                             mycrypto                           sentinel
amadine                            eagle                              jami                               neo4j                              simply-fortran
another-redis-desktop-manager      elmedia-player                     jump                               onlyoffice                         slack
appgate-sdp-client                 folx                               keeweb                             openwebstart                       thunderbird
asciidocfx                         gemini                             marvel                             patchwork                          upwork
boinc                              glyphs                             melodics                           polymail                           wordpresscom

==> Installing dependencies for libxml2: python@3.8
==> Installing libxml2 dependency: python@3.8
==> Downloading https://homebrew.bintray.com/bottles/python@3.8-3.8.2.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/86/86652428afa471b42ddba7028de02767d933f35f55e538b362c9cc219e972405?__gda__=exp=1586476067~hmac=d62cd0c1e3c79f3d759c87f6f85e43fe
######################################################################## 100.0%
==> Pouring python@3.8-3.8.2.high_sierra.bottle.tar.gz
==> /usr/local/Cellar/python@3.8/3.8.2/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.2/bin --install-lib=/u
==> /usr/local/Cellar/python@3.8/3.8.2/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.2/bin --install-lib=/u
==> /usr/local/Cellar/python@3.8/3.8.2/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python@3.8/3.8.2/bin --install-lib=/u
==> Caveats
Python has been installed as
  /usr/local/opt/python@3.8/bin/python3

You can install Python packages with
  /usr/local/opt/python@3.8/bin/pip3 install <package>
They will install into the site-package directory
  /usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

python@3.8 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have python@3.8 first in your PATH run:
  echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.bash_profile

For compilers to find python@3.8 you may need to set:
  export LDFLAGS="-L/usr/local/opt/python@3.8/lib"

For pkg-config to find python@3.8 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/python@3.8/3.8.2: 4,124 files, 62.8MB
==> Installing libxml2
==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.10_1.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/bf/bff3e730b9531c1b5088d49633a740eb27938961dc762b7de344e06d85ea20ee?__gda__=exp=1586476085~hmac=ff295d7c64b9a4574599876b8eea8025
######################################################################## 100.0%
==> Pouring libxml2-2.9.10_1.high_sierra.bottle.tar.gz
==> Caveats
libxml2 is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have libxml2 first in your PATH run:
  echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> ~/.bash_profile

For compilers to find libxml2 you may need to set:
  export LDFLAGS="-L/usr/local/opt/libxml2/lib"
  export CPPFLAGS="-I/usr/local/opt/libxml2/include"

For pkg-config to find libxml2 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/libxml2/2.9.10_1: 280 files, 10.5MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/gvwilson/Library/Caches/Homebrew/libgit2--0.28.4.high_sierra.bottle.tar.gz... (1.1MB)
Removing: /Users/gvwilson/Library/Caches/Homebrew/librsvg--2.46.4.high_sierra.bottle.tar.gz... (10.3MB)
Removing: /usr/local/Cellar/openssl@1.1/1.1.1d... (7,983 files, 17.9MB)
Removing: /Users/gvwilson/Library/Caches/Homebrew/poppler--0.86.1_1.high_sierra.bottle.tar.gz... (7.6MB)
Error: Permission denied @ apply2files - /usr/local/share/ghostscript/9.23/Resource/CIDFSubst/ipaexg.ttf
ajkerrigan commented 4 years ago

Thanks for all the logs! Two more things I can think to try based on that info:

  1. Export the suggested environment variables to help compilers find your libxml2 install:
  export LDFLAGS="-L/usr/local/opt/libxml2/lib"
  export CPPFLAGS="-I/usr/local/opt/libxml2/include"
  1. Try brew install libxslt in addition to libxml2.

That's based on the output of your libxml2 install combined with the error from the logs you shared earlier:

ERROR: b'xcrun: error: missing DEVELOPER_DIR path: \n'
** make sure the development packages of libxml2 and libxslt are installed **  

(For the record I'm able to brew install visidata with libxml2 installed but not libxslt - so with some luck option 1 will either work or reveal a new error)