Exception: FormulaUnknownPythonError

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

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ FormulaUnknownPythonError

Returns a new instance of FormulaUnknownPythonError.



313
314
315
316
317
318
319
320
321
# File 'brew/Library/Homebrew/exceptions.rb', line 313

def initialize(formula)
  super <<~EOS
    The version of Python to use with the virtualenv in the `#{formula.full_name}` formula
    cannot be guessed automatically because a recognised Python dependency could not be found.

    If you are using a non-standard Python depedency, please add `:using => "python@x.y"` to
    `virtualenv_install_with_resources` to resolve the issue manually.
  EOS
end