python-leveldb fails to build with Python 3.10.0rc1. ====================================================================== ERROR: testCompact (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ====================================================================== ERROR: testIterationBasic (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ====================================================================== ERROR: testIteratorCrash (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ====================================================================== ERROR: testIteratorNone (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ====================================================================== ERROR: testMe (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ====================================================================== ERROR: testSnapshotBasic (__main__.TestLevelDB) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/leveldb-0.201/test/test.py", line 11, in setUp import leveldb as _leveldb ImportError: /builddir/build/BUILDROOT/python-leveldb-0.201-7.fc35.x86_64/usr/lib64/python3.10/site-packages/leveldb.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZTIN7leveldb10ComparatorE ---------------------------------------------------------------------- Ran 6 tests in 0.008s FAILED (errors=6) For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02360324-python-leveldb/ For all our attempts to build python-leveldb with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-leveldb/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 is already included in Fedora 35. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.10. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
works with updated/rebuilt leveldb.
Hello Miro. I'm still a fairly green packager and want to learn and understand this process better. The upstream hasn't released a new version of python-leveldb, what changes would need to be made to resolve this so I know for in the future? Thanks for the assistance.
I think it was a bug in the leveldb package, now fixed. But I am not sure.