-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespace collision with libcombine? #23
Comments
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. |
We ran into this problem as well: a bug that only appeared when importing tellurium. Thanks to the comments above, I've reduced it to the following minimal example:
Note that even when importing libcombine first, as suggested above, there's still an issue of a memory leak. However, we also found a workaround for both issues, using the ASTNode copy constructor. |
I'm afraid I still don't have a solution for this, several libraries (sbml, numl, combine, sedml, and sbng) use SWIG generated types out of the core libsbml library. Other than using a custom import order I have no solution for the moment. I'm happy to hear if anyone else found one. |
A user reported the following issue with AMICI: AMICI-dev/AMICI#1483
What ends up happening is that
sbml_model.all_elements
has typelibcombine.SBaseList
instead of the usuallibsbml.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.The text was updated successfully, but these errors were encountered: