Skip to content
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

Conversion failure in v5.20.0 #316

Closed
avandecreme opened this issue Apr 6, 2023 · 0 comments · Fixed by #317
Closed

Conversion failure in v5.20.0 #316

avandecreme opened this issue Apr 6, 2023 · 0 comments · Fixed by #317

Comments

@avandecreme
Copy link
Contributor

When running ./examples/c/convertSBML on this unzipped file I get the following error in v5.20.0:

Attempting to convert model to SBML Level 3 Version 2.
Unable to perform conversion due to the following:
line 4950: (01010 [Error]) Duplicate XML attribute.

Conversion skipped.  Either libSBML does not (yet) have
ability to convert this model, or (automatic) conversion
is not possible in this case.

It is working fine in v5.19

Here is the line 4950 mentioned:
<math xmlns="http://www.w3.org/1998/Math/MathML" xmlns:sbml="http://www.sbml.org/sbml/level3/version1/core">

I suspect the issue is introduced by #310 and more specifically the following lines which copy existing namespaces without checking for collision with the one added a few lines above:
https://github.com/sbmlteam/libsbml/pull/310/files#diff-a1350eea6646b5dc5f2a33f27c7fed1ccb413304f0d4a6df3909a2f0ec15f0c2R2232-R2245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant