python-libsbml icon indicating copy to clipboard operation
python-libsbml copied to clipboard

Namespace collision with libcombine?

Open FFroehlich opened this issue 4 years ago • 4 comments

A user reported the following issue with AMICI: https://github.com/AMICI-dev/AMICI/issues/1483

What ends up happening is that sbml_model.all_elements has type libcombine.SBaseList instead of the usual libsbml.ListWrapperSBase.

I can reproduce that this always happens if both libcombine and libsbml are imported simultaneously. It appears that all kinds of other model elements are also stripped of their usual types and appear as SBase elements. I suspect that this is some kind of incompatibility that arises from the fact that both are swig exported interfaces.

FFroehlich avatar Apr 02 '21 02:04 FFroehlich

indeed, libCombine should probably not be exposing the duplicated symbol (as it won't make any use of that). Until i release a new version i'd recommend to first include libcombine, and then libsedml.

fbergmann avatar Apr 02 '21 15:04 fbergmann