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

Install of Ansible 2.6.5 fails on macOS 10.13.6 #5021

Closed
6 tasks done
ghost opened this issue Oct 2, 2018 · 10 comments
Closed
6 tasks done

Install of Ansible 2.6.5 fails on macOS 10.13.6 #5021

ghost opened this issue Oct 2, 2018 · 10 comments
Assignees
Labels
outdated PR was locked due to age

Comments

@ghost
Copy link

ghost commented Oct 2, 2018

@hellerve commented on Oct 2, 2018, 7:50 AM UTC:

  • are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • have a problem with brew install (or upgrade, reinstall) a single, official formula (not cask)? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

I was trying to install Ansible 2.6.5 on macOS 10.13.6. I ran brew install ansible and got this output:

$ brew install ansible
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.6.5.high_sierra.b
Already downloaded: /Users/veitheller/Library/Caches/Homebrew/downloads/4012a74777b7f2949cff9484e1fb95af362aad5ad18fe5d78b7aab26cf8385d3--ansible-2.6.5.high_sierra.bottle.tar.gz
==> Pouring ansible-2.6.5.high_sierra.bottle.tar.gz
Error: No such file or directory @ rb_file_s_stat - /var/folders/s_/4rtql22s7cx7cyk5_9fyx58c0000gn/T/d20181002-3038-1ss2li0/ansible/2.6.5/libexec/.Python
Warning: Bottle installation failed: building from source.
==> Downloading https://releases.ansible.com/ansible/ansible-2.6.5.tar.gz
Already downloaded: /Users/veitheller/Library/Caches/Homebrew/downloads/ae2469bbd0b89c4259f5ab815999bf9d6efb7bb27e95d606b06463050b6d7305--ansible-2.6.5.tar.gz
Error: An exception occured within a child process:
  Errno::ENOENT: No such file or directory @ rb_file_s_stat - /private/tmp/d20181002-3364-jr74a3/ansible-2.6.5/test/sanity/import/lib/ansible/module_utils/ansible_release.py

I expected Ansible to be installed.

Output of various commands:

Update:

$ brew update
Already up-to-date.

Doctor:

$ brew doctor
Your system is ready to brew.

Gist Logs:

$ brew gist-logs ansible
Error: No logs.

Cheers

This issue was moved by fxcoudert from Homebrew/homebrew-core#32622.

@ghost
Copy link
Author

ghost commented Oct 2, 2018

@Ketouem commented on Oct 2, 2018, 8:03 AM UTC:

Getting the same issue

$ brew install -v ansible
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.6.5.mojave.bottle.tar.gz
Already downloaded: /Users/cyril/Library/Caches/Homebrew/downloads/3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz
==> Verifying 3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz checksum
==> Pouring ansible-2.6.5.mojave.bottle.tar.gz
tar xf /Users/cyril/Library/Caches/Homebrew/downloads/3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz -C /var/folders/3k/ys7m23x16jl7f0dr0gmxzjx80000gn/T/d20181002-8366-18ltikg
cp -pR /var/folders/3k/ys7m23x16jl7f0dr0gmxzjx80000gn/T/d20181002-8366-18ltikg/ansible/. /usr/local/Cellar/ansible
Error: No such file or directory @ rb_file_s_stat - /var/folders/3k/ys7m23x16jl7f0dr0gmxzjx80000gn/T/d20181002-8366-18ltikg/ansible/2.6.5/libexec/.Python
Warning: Bottle installation failed: building from source.
/usr/bin/sandbox-exec -f /private/tmp/homebrew20181002-8875-1a90o37.sb nice /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/ruby-macho-2.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/plist-3.4.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/backports-3.11.4/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/activesupport-5.2.1/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/tzinfo-1.2.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/thread_safe-0.3.6/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/minitest-5.11.3/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/i18n-1.1.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/bundle-standalone/bundler/../ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/site_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/vendor_ruby:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/x86_64-darwin9.0:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/universal-darwin9.0:/usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ansible.rb --verbose
==> Downloading https://releases.ansible.com/ansible/ansible-2.6.5.tar.gz
Already downloaded: /Users/cyril/Library/Caches/Homebrew/downloads/ae2469bbd0b89c4259f5ab815999bf9d6efb7bb27e95d606b06463050b6d7305--ansible-2.6.5.tar.gz
==> Verifying ae2469bbd0b89c4259f5ab815999bf9d6efb7bb27e95d606b06463050b6d7305--ansible-2.6.5.tar.gz checksum
tar xf /Users/cyril/Library/Caches/Homebrew/downloads/ae2469bbd0b89c4259f5ab815999bf9d6efb7bb27e95d606b06463050b6d7305--ansible-2.6.5.tar.gz -C /private/tmp/d20181002-8877-5nvmqv
cp -pR /private/tmp/d20181002-8877-5nvmqv/ansible-2.6.5/. /private/tmp/ansible-20181002-8877-1qw382f/ansible-2.6.5
Error: An exception occured within a child process:
  Errno::ENOENT: No such file or directory @ rb_file_s_stat - /private/tmp/d20181002-8877-5nvmqv/ansible-2.6.5/test/sanity/import/lib/ansible/module_utils/ansible_release.py

Config:

$ brew config
HOMEBREW_VERSION: 1.7.6-51-g38287e6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 38287e6309c02272cec18fb1655145d3519f1b2f
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: dea5ae4afc7de808a0bba2d22c741e8ba4b76595
Core tap last commit: 17 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEV_CMD_RUN: 1
CPU: octa-core 64-bit ivybridge
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 10.0 build 1000
Git: 2.19.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14-x86_64
CLT: 10.0.0.0.1.1535735448
Xcode: 10.0
XQuartz: 2.7.11 => /opt/X11

@fxcoudert
Copy link
Member

We're seeing the same issue on CI, both with bottles and with source:

10:53:52 ==> brew install ansible
10:54:33 ==> FAILED
10:54:33 ==> Downloading https://homebrew.bintray.com/bottles/ansible-2.6.5.mojave.bottle.tar.gz
10:54:33 Already downloaded: /Users/brew/Library/Caches/Homebrew/downloads/3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz
10:54:33 ==> Pouring ansible-2.6.5.mojave.bottle.tar.gz
10:54:33 Error: No such file or directory @ rb_file_s_stat - /var/folders/kw/j7f63hdn1lj39702nh90xm9w0000gp/T/d20181002-69444-1lx8y3l/ansible/2.6.5/libexec/.Python
10:54:33 Warning: Bottle installation failed: building from source.
10:54:33 ==> Downloading https://releases.ansible.com/ansible/ansible-2.6.5.tar.gz
10:54:33 Already downloaded: /Users/brew/Library/Caches/Homebrew/downloads/ae2469bbd0b89c4259f5ab815999bf9d6efb7bb27e95d606b06463050b6d7305--ansible-2.6.5.tar.gz
10:54:33 Error: An exception occured within a child process:
10:54:33   Errno::ENOENT: No such file or directory @ rb_file_s_stat - /private/tmp/d20181002-69623-drijxc/ansible-2.6.5/test/sanity/import/lib/ansible/module_utils/ansible_release.py

@fxcoudert
Copy link
Member

Could someone who can reproduce this obtain a backtrace by adding --debug to the command?

@Ketouem
Copy link

Ketouem commented Oct 2, 2018

Sure thing:

brew install --debug ansible
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 38287e630 to 52d04dc97.
Updated 2 taps (homebrew/core, homebrew/cask).
No changes to formulae.

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ansible.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libyaml.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@2.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gdbm.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/readline.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sqlite.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tcl-tk.rb
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.6.5.mojave.bottle.tar.gz
Already downloaded: /Users/cyril/Library/Caches/Homebrew/downloads/3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz
==> Pouring ansible-2.6.5.mojave.bottle.tar.gz
tar xf /Users/cyril/Library/Caches/Homebrew/downloads/3f64f0fed4119305894f412e1fe763d5632b57bbd4e2c77f45261dd973c3c542--ansible-2.6.5.mojave.bottle.tar.gz -C /var/folders/3k/ys7m23x16jl7f0dr0gmxzjx80000gn/T/d20181002-14621-1u6futg
cp -pR /var/folders/3k/ys7m23x16jl7f0dr0gmxzjx80000gn/T/d20181002-14621-1u6futg/ansible/. /usr/local/Cellar/ansible
Changing install name in /usr/local/Cellar/ansible/2.6.5/libexec/lib/python2.7/site-packages/_yaml.so
  from @@HOMEBREW_PREFIX@@/opt/libyaml/lib/libyaml-0.2.dylib
    to /usr/local/opt/libyaml/lib/libyaml-0.2.dylib
Changing install name in /usr/local/Cellar/ansible/2.6.5/libexec/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
  from @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib
    to /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Changing install name in /usr/local/Cellar/ansible/2.6.5/libexec/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
  from @@HOMEBREW_PREFIX@@/opt/openssl/lib/libcrypto.1.0.0.dylib
    to /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
/usr/local/Homebrew/Library/Homebrew/postinstall.rb (Formulary::FromPathLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ansible.rb
🍺  /usr/local/Cellar/ansible/2.6.5: 12,183 files, 153.3MB

@hellerve
Copy link

hellerve commented Oct 2, 2018

The install seems to work now.

@fxcoudert
Copy link
Member

@Ketouem that shows a working install, this is what I get too… we'd need a backtrace of a failing install

@hellerve
Copy link

hellerve commented Oct 2, 2018

It seems like this has been resolved between me creating the issue and now; how and why I cannot say. I guess this can be closed for now?

@Ketouem
Copy link

Ketouem commented Oct 2, 2018

@fxcoudert my bad, as @hellerve noted the installation seems to be working now.

My current Homebrew version is 1.7.6-55-g52d04dc, whereas it was 1.7.6-51-g38287e6 when I first reported the issue. An update seems to have been pushed and looks like it has fixed the problem.

@reitermarkus
Copy link
Member

This probably fixed it: #5019

@hellerve
Copy link

hellerve commented Oct 2, 2018

Thank you for fixing this, @reitermarkus!

@lock lock bot added the outdated PR was locked due to age label Nov 1, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

4 participants