Bug 1913346
Summary: | libsbml fails to build with Python 3.10: Imports the removed formatter module | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | libsbml | Assignee: | Zbigniew Jędrzejewski-Szmek <zbyszek> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, neuro-sig, thrnciar, trpost, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-01-21 08:25:32 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Tomáš Hrnčiar
2021-01-06 14:53:22 UTC
?? [ 70%] Swig Python source cd /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python && /usr/bin/python3 /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/../swig/swigdoc.py --language python --top /builddir/build/BUILD/libSBML-5.18.0-Source --master /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/../swig/libsbml.i --output /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/pydoc-doxygen.i --define USE_COMP --define USE_FBC --define USE_GROUPS --define USE_L3V2EXTENDEDMATH --define USE_LAYOUT --define USE_MULTI --define USE_QUAL --define USE_RENDER --define USE_COMP --define USE_FBC --define USE_GROUPS --define USE_L3V2EXTENDEDMATH --define USE_MULTI --define USE_QUAL --define USE_RENDER cd /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python && /usr/bin/python3 /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/generate-class-name-list.py /builddir/build/BUILD/libSBML-5.18.0-Source/src > /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/class-list.txt cd /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python && /usr/bin/python3 /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/generate-converters-list.py /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/class-list.txt > /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/libsbml-converters.txt cd /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python && /usr/bin/python3 /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/doc-converter/rewrite_pydoc.py -f /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/pydoc-doxygen.i -o /builddir/build/BUILD/libSBML-5.18.0-Source/build/src/bindings/python/pydoc-normal.i -i /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/../../../docs/src/common-text -g /builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/../../../docs/src/common-graphics Traceback (most recent call last): File "/builddir/build/BUILD/libSBML-5.18.0-Source/src/bindings/python/doc-converter/rewrite_pydoc.py", line 121, in <module> from formatter import NullWriter, AbstractFormatter ModuleNotFoundError: No module named 'formatter' Yes, that is the actual error. Do you know where is the formatter module suppose to come from? formatter: Deprecated since version 3.4: Due to lack of usage, the formatter module has been deprecated. https://docs.python.org/3.10/whatsnew/3.10.html#removed Removed the formatter module, which was deprecated in Python 3.4. It is somewhat obsolete, little used, and not tested. It was originally scheduled to be removed in Python 3.6, but such removals were delayed until after Python 2.7 EOL. Existing users should copy whatever classes they use into their code. (Contributed by Dong-hee Na and Terry J. Reedy in https://bugs.python.org/issue42299.) @Zbigniew, i was about to open a bug ticket for upstream; do you prefer to patch libsbml for this issue? There's a bunch of issues. I had it building already, but then upgrades in rawhide caused more issues. So I want to figure it out all the way, and then file a bug upstream. |