Skip to content

Python 3.9 incompatibilities #2887

@jaimergp

Description

@jaimergp

Conda Forge has issued the PRs for the Python 3.9 builds but the Python wrappers are not compatible anymore due to some missing methods in xml. These were marked for deprecation back in Python 3.2.

Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/openmm_1602750246519/work/wrappers/generateWrappers.py", line 2073, in <module>
    builder.writeOutput()
  File "/home/conda/feedstock_root/build_artifacts/openmm_1602750246519/work/wrappers/generateWrappers.py", line 416, in writeOutput
    self.writeClasses()
  File "/home/conda/feedstock_root/build_artifacts/openmm_1602750246519/work/wrappers/generateWrappers.py", line 199, in writeClasses
    self.writeMethods(classNode)
  File "/home/conda/feedstock_root/build_artifacts/openmm_1602750246519/work/wrappers/generateWrappers.py", line 232, in writeMethods
    isAbstract = any('virt' in method.attrib and method.attrib['virt'] == 'pure-virtual' for method in classNode.getiterator('memberdef'))
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions