issue warnings for missing packages
@@ -86,10 +86,20 @@ import zipfile
from collections import namedtuple
import re
import numpy as np
+try:
from jinja2 import Environment, FileSystemLoader
+except:
+ warnings.warn("'jinja2' could not be imported; SEDML not supported", ImportWarning)
from mathml import evaluableMathML
+try:
import libsedml
+ # import libsedml before libsbml to handle
+ # https://github.com/fbergmann/libSEDML/issues/21
+except ImportError as e:
+ libsedml = None
+ roadrunner.Logger.log(roadrunner.Logger.LOG_WARNING, str(e))
+ warnings.warn("'libsedml' could not be imported", ImportWarning, stacklevel=2)
import tellurium as te
from tellurium.tecombine import CombineArchive
