Exception: FormulaAmbiguousPythonError

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

Overview

Raise when two Python versions are detected simultaneously.

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ FormulaAmbiguousPythonError

Returns a new instance of FormulaAmbiguousPythonError.


360
361
362
363
364
365
366
367
# File 'Library/Homebrew/exceptions.rb', line 360

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 multiple pythons
    is intentional, please add `:using => "[email protected]"` to
    `virtualenv_install_with_resources` to resolve the ambiguity manually.
  EOS
end