brew: Error after updating to brew version 2.2.8

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Installing carthage-copy-frameworks via brew. Why? Avoiding error prone iOS framework adding .

What happened (include command output)

Installation failed with a Ruby error.

Command output
  Error: An exception occurred within a child process:
  NoMethodError: undefined method `delete' for nil:NilClass
  

What you expected to happen

Successful installation.

Step-by-step reproduction instructions (by running brew commands)

brew install lvillani/tap/carthage-copy-frameworks

Output of brew config and brew doctor commands

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 which 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/<username>/.pyenv/shims/python-config
  /Users/<username>/.pyenv/shims/python3-config
  /Users/<username>/.pyenv/shims/python3.8-config

brew config

HOMEBREW_VERSION: 2.2.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: 89fd3cc234c5f47bb807eb97613eb614184d51c3
Last commit: 57 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 999e8d8129268ccafa9f4e4e785724044be6eb2e
Core tap last commit: 5 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_AWS_ACCESS_KEY_ID: set
HOMEBREW_AWS_SECRET_ACCESS_KEY: set
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
Clang: 11.0 build 1100
Git: 2.25.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 12.0.2, 11.0.5, 1.8.0_232
macOS: 10.15.3-x86_64
CLT: N/A
Xcode: 11.3.1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 20 (12 by maintainers)

Commits related to this issue

Most upvoted comments

That’ll be because Homebrew no longer has any knowledge of what “python@2” is and thus does not recognise it as a Python formula.

You could use virtualenv_install_with_resources, :using => "python2".

@benjohnde There is a new release now.

Here is the failing code: https://github.com/Homebrew/brew/blob/master/Library/Homebrew/language/python.rb#L168-L181

The removal of python = wanted.first || "python2.7" is problematic. Now wanted isn’t used at all and python won’t be set at all in that if block.