python-libsbml
python-libsbml copied to clipboard
Python 3.13 manylinux wheel and Model.getListOfAllElements
Hi, I have some issue with the current Python 3.13 PyPI wheel (python_libsbml-5.20.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl):
When I call libsbml.Model.getListOfAllElements(), I only get a sequence of SBase instances:
import libsbml
doc = libsbml.SBMLDocument(3, 1)
model = doc.createModel()
model.createSpecies()
for e in model.getListOfAllElements():
print(e, type(e))
<SBase> <class 'libsbml.SBase'>
<SBase> <class 'libsbml.SBase'>
When I do the same with the Python 3.12 wheel (python_libsbml-5.20.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl), as expected, I get instances of the derived classes:
<ListOfSpecies[1]> <class 'libsbml.ListOfSpecies'>
<Species> <class 'libsbml.Species'>