diff --git a/src/omlt/base/var.py b/src/omlt/base/var.py index eea523c6..176fe372 100644 --- a/src/omlt/base/var.py +++ b/src/omlt/base/var.py @@ -9,7 +9,10 @@ from abc import ABC, abstractmethod import pyomo.environ as pyo -from omlt.base import jump, DEFAULT_MODELING_LANGUAGE +from omlt.dependencies import julia_available + +if julia_available: + from omlt.base import jump, DEFAULT_MODELING_LANGUAGE from omlt.base.julia import JuMPVarInfo, JumpVar