Exception: FormulaAmbiguousPythonError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ FormulaAmbiguousPythonError

Returns a new instance of FormulaAmbiguousPythonError



346
347
348
349
350
351
352
353
# File 'brew/Library/Homebrew/exceptions.rb', line 346

def initialize(formula)
  super <<~EOS
    The version of python to use with the virtualenv in the `#{formula.full_name}` formula
    cannot be guessed automatically. If the simultaneous use of python and python@2
    is intentional, please add `:using => "python"` or `:using => "python@2"` to
    `virtualenv_install_with_resources` to resolve the ambiguity manually.
  EOS
end