[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1055550: redland-bindings ftbfs with Python 3.12



Package: src:redland-bindings
Version: 1.0.17.1+dfsg-4
Severity: important
Tags: sid trixie
User: debian-python@lists.debian.org
Usertags: python3.12


[...]
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
for python in python3.12 python3.11; do \
	/usr/bin/make -C $python check-local PYTHON=$python || exit ; \
done
make[2]: Entering directory '/<<PKGBUILDDIR>>/python3.12'
PYTHONPATH=. \
  python3.12 ./redlandtest.py
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python3.12/./redlandtest.py", line 10, in <module>
    from RDF import *
  File "/<<PKGBUILDDIR>>/python3.12/RDF.py", line 126, in <module>
    import Redland
  File "/<<PKGBUILDDIR>>/python3.12/Redland.py", line 26, in <module>
    _Redland = swig_import_helper()
               ^^^^^^^^^^^^^^^^^^^^
File "/<<PKGBUILDDIR>>/python3.12/Redland.py", line 13, in swig_import_helper
    import imp
ModuleNotFoundError: No module named 'imp'
make[2]: *** [Makefile:785: unittest-python] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/python3.12'


Fixing the imp import, the build fails later with:

[...]
   debian/rules override_dh_auto_test
make[1]: Entering directory '/home/packages/12/redland-bindings-1.0.17.1+dfsg'
for python in python3.12 python3.11; do \
        /usr/bin/make -C $python check-local PYTHON=$python || exit ; \
done
make[2]: Entering directory '/home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12'
PYTHONPATH=. \
  python3.12 ./redlandtest.py
Traceback (most recent call last):
File "/home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12/./redlandtest.py", line 10, in <module>
    from RDF import *
File "/home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12/RDF.py", line 126, in <module>
    import Redland
File "/home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12/Redland.py", line 26, in <module>
    _Redland = swig_import_helper()
               ^^^^^^^^^^^^^^^^^^^^
File "/home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12/Redland.py", line 22, in swig_import_helper
    _mod = imp.load_module('_Redland', fp, pathname, description)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/zombie_imp/imp_3_11.py", line 246, in load_module
    return load_dynamic(name, filename, file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/zombie_imp/imp_3_11.py", line 346, in load_dynamic
    return _load(spec)
           ^^^^^^^^^^^
ImportError: /home/packages/12/redland-bindings-1.0.17.1+dfsg/python3.12/_Redland.cpython-312-x86_64-linux-gnu.so: undefined symbol: PyUnicode_AS_DATA
make[2]: *** [Makefile:785: unittest-python] Error 1


Reply to: