etetoolkit / ete

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.
http://etetoolkit.org
GNU General Public License v3.0
773 stars 216 forks source link

nsmap error #694

Open bombelli opened 1 year ago

bombelli commented 1 year ago

Hi Guys, I am trying to load PhyloXML projects from files using the code example here http://etetoolkit.org/docs/latest/tutorial/tutorial_phyloxml.html, particularly the build_from_file() function. However I have tried using different Phyloxml files but I keep getting this same error:

namespaces = six.itervalues(node.nsmap) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'nsmap'

Could anyone help me on how to solve this. I have tried for days but still couldn't rectify it.