Bug 1990379

Summary: python-leveldb fails to build with Python 3.10: 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
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-leveldbAssignee: Sam P <dagofthedofg>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dagofthedofg, mhroncok, python-sig, thrnciar
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-08-05 23:50:42 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, 1927309    

Description Tomáš Hrnčiar 2021-08-05 09:58:37 UTC
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.

Comment 1 Miro Hrončok 2021-08-05 23:50:42 UTC
works with updated/rebuilt leveldb.

Comment 2 Sam P 2021-08-05 23:58:00 UTC
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.

Comment 3 Miro Hrončok 2021-08-05 23:59:13 UTC
I think it was a bug in the leveldb package, now fixed. But I am not sure.