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

libsbml test failed with upcoming SWIG 4.1.0 #271

Closed
jplesnik opened this issue Sep 23, 2022 · 0 comments · Fixed by #272
Closed

libsbml test failed with upcoming SWIG 4.1.0 #271

jplesnik opened this issue Sep 23, 2022 · 0 comments · Fixed by #272

Comments

@jplesnik
Copy link

I am testing rebuild of SWIG dependencies against version 4.1.0 in Fedora rawhide/38.

The test of libSBML-5.19.0 is failing with this version.

35: Test command: /usr/bin/python3 "/builddir/build/BUILD/libSBML-5.19.0-Source/examples/python/append_to_note.py" "/builddir/build/BUILD/libSBML-5.19.0-Source/examples/sample-models/from-spec/level-3/enzymekineticext.xml" "veq" "a new note" "append_to_note.out.xml"
35: Working Directory: /builddir/build/BUILD/libSBML-5.19.0-Source/build/src/bindings/python
35: Environment variables: 
35:  PYTHONPATH=/builddir/build/BUILD/libSBML-5.19.0-Source/build/src/bindings/python:/builddir/build/BUILD/libSBML-5.19.0-Source/build/src/bindings/python:
35: Test timeout computed to be: 3000
35: Body before change: 
35: <body xmlns="http://www.w3.org/1999/xhtml">
35:   <p xmlns="http://www.w3.org/1999/xhtml">Some notes</p>
35: </body>
35: Traceback (most recent call last):
35:   File "/builddir/build/BUILD/libSBML-5.19.0-Source/examples/python/append_to_note.py", line 95, in <module>
35:     addToNotes(doc, sys.argv[2], sys.argv[3])
35:   File "/builddir/build/BUILD/libSBML-5.19.0-Source/examples/python/append_to_note.py", line 78, in addToNotes
35:     body.addChild(libsbml.XMLNode_convertStringToXMLNode(stringToAdd))
35:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35: AttributeError: module 'libsbml' has no attribute 'XMLNode_convertStringToXMLNode'
35/68 Test #35: test_python_append_to_note ....................***Failed    0.13 sec

Complete log is here.

I reported it to upstream swig/swig#2378 and they gave me an advice how to solve it.
The patch is attached to Fedora BZ#2128592.

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