Exception: FormulaAmbiguousPythonError

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

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ FormulaAmbiguousPythonError

Returns a new instance of FormulaAmbiguousPythonError



343
344
345
346
347
348
349
350
# File 'Library/Homebrew/exceptions.rb', line 343

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 python3
    is intentional, please add `:using => "python"` or `:using => "python3"` to
    `virtualenv_install_with_resources` to resolve the ambiguity manually.
  EOS
end