Exception: FormulaAmbiguousPythonError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- FormulaAmbiguousPythonError
- Defined in:
- exceptions.rb
Overview
Raise when two Python versions are detected simultaneously.
Instance Method Summary collapse
-
#initialize(formula) ⇒ FormulaAmbiguousPythonError
constructor
A new instance of FormulaAmbiguousPythonError.
Constructor Details
#initialize(formula) ⇒ FormulaAmbiguousPythonError
Returns a new instance of FormulaAmbiguousPythonError.
456 457 458 459 460 461 462 463 464 |
# File 'exceptions.rb', line 456 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 => "python@x.y"` to 'virtualenv_install_with_resources' to resolve the ambiguity manually. EOS end |