[Debichem-devel] Bug#1056841: pymatgen: ftbfs with cython 3.0.x

Sebastiaan Couwenberg sebastic at xs4all.nl
Sun Dec 10 09:34:30 GMT 2023


Control: tags -1 patch

On Sun, 26 Nov 2023 10:06:07 +0000 Matthias Klose wrote:
> If the package cannot be built with cython 3.0.5, please change the
> build dependency from cython3 to cython3-legacy (available now in
> unstable).  There is no replacement for cython3-dbg.

The attached patch switches to cython3-legacy as the short term workaround.

The package still fails to build due to test failures:

_ ERROR collecting 
.pybuild/test_python3.11/pymatgen/analysis/tests/test_chempot_diagram.py _
ImportError while importing test module 
'/build/pymatgen-2023.06.23+dfsg1/.pybuild/test_python3.11/pymatgen/analysis/tests/test_chempot_diagram.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
.pybuild/test_python3.11/pymatgen/analysis/tests/test_chempot_diagram.py:17: 
in <module>
     from pymatgen.entries.entry_tools import EntrySet
.pybuild/test_python3.11/pymatgen/entries/entry_tools.py:18: in <module>
     from monty.string import unicode2str
E   ImportError: cannot import name 'unicode2str' from 'monty.string' 
(/usr/lib/python3/dist-packages/monty/string.py)

Kind Regards,

Bas

-- 
  GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
-------------- next part --------------
diff -Nru pymatgen-2023.06.23+dfsg1/debian/changelog pymatgen-2023.06.23+dfsg1/debian/changelog
--- pymatgen-2023.06.23+dfsg1/debian/changelog	2023-06-28 13:47:17.000000000 +0200
+++ pymatgen-2023.06.23+dfsg1/debian/changelog	2023-12-10 10:26:08.000000000 +0100
@@ -1,3 +1,10 @@
+pymatgen (2023.06.23+dfsg1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Switch to cython3-legacy.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 10 Dec 2023 10:26:08 +0100
+
 pymatgen (2023.06.23+dfsg1-2) unstable; urgency=medium
 
   * mips64el: skip test_from_diff_fit in test_elastic.py
diff -Nru pymatgen-2023.06.23+dfsg1/debian/control pymatgen-2023.06.23+dfsg1/debian/control
--- pymatgen-2023.06.23+dfsg1/debian/control	2023-06-28 13:47:17.000000000 +0200
+++ pymatgen-2023.06.23+dfsg1/debian/control	2023-12-10 10:26:08.000000000 +0100
@@ -7,7 +7,7 @@
  pymatgen-test-files (>= 2023.05.31~) <!nocheck>,
  dh-python,
  dh-sequence-python3,
- cython3,
+ cython3-legacy,
  pybuild-plugin-pyproject,
  python3-setuptools,
  python3-all-dev,


More information about the Debichem-devel mailing list