import xml.etree.ElementTree as ET
tree: ET = ET.parse(file)
tree.find('.//ns1:tag/@someattribute', ns)
is resulting in {KeyError}'@', xpath expression is correct as per my knowledge, is there any way in element tree to get attribute value directly using xpath and not using .attrib