Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
in tree.pyx from core, there is a snippet, from line 18. It load the NodeStyle from treeview and also from Smartview
# the following imports are necessary to set fixed styles and faces
# try:
try:
from ..treeview.main import NodeStyle
from ..treeview.faces import Face
TREEVIEW = True
except ImportError:
TREEVIEW = False
from ..smartview.renderer.faces import Face as smartFace
from ..smartview.renderer.nodestyle import NodeStyle as smNodeStyle
The problem in this exception is, if ImportError occured, NodeStyle will become undefined, which effect and fail the following method set_style() in line 1960
...
if isinstance(node_style, NodeStyle):
...
It should go as how it is handle in method add_face()
in
tree.pyx
from core, there is a snippet, from line 18. It load the NodeStyle from treeview and also from SmartviewThe problem in this exception is, if ImportError occured,
NodeStyle
will become undefined, which effect and fail the following methodset_style()
in line 1960It should go as how it is handle in method
add_face()