[Debichem-devel] Bug#1058040: pymatgen: FTBFS with Python 3.12

Graham Inggs ginggs at debian.org
Mon Dec 11 15:11:52 GMT 2023


Source: pymatgen
Version: 2023.06.23+dfsg1-2
Severity: serious
Tags: ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12

Hi Maintainer

pymatgen FTBFS [1] with Python 3.12 as a supported version.  I've copied
what I hope is the relevant part of the log below.

Regards
Graham


[1] https://buildd.debian.org/status/package.php?p=pymatgen


==================================== ERRORS ====================================
_ ERROR collecting
.pybuild/test_python3.11/pymatgen/analysis/tests/test_chempot_diagram.py
_
ImportError while importing test module
'/<<PKGBUILDDIR>>/.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)
_ ERROR collecting
.pybuild/test_python3.11/pymatgen/analysis/tests/test_cost.py _
ImportError while importing test module
'/<<PKGBUILDDIR>>/.pybuild/test_python3.11/pymatgen/analysis/tests/test_cost.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_cost.py:8: in <module>
    from pymatgen.analysis.cost import CostAnalyzer, CostDBCSV, CostDBElements
.pybuild/test_python3.11/pymatgen/analysis/cost.py:19: in <module>
    from monty.string import unicode2str
E   ImportError: cannot import name 'unicode2str' from 'monty.string'
(/usr/lib/python3/dist-packages/monty/string.py)
_ ERROR collecting
.pybuild/test_python3.11/pymatgen/analysis/tests/test_phase_diagram.py
_
ImportError while importing test module
'/<<PKGBUILDDIR>>/.pybuild/test_python3.11/pymatgen/analysis/tests/test_phase_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_phase_diagram.py:32:
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)
_ ERROR collecting
.pybuild/test_python3.11/pymatgen/entries/tests/test_entry_tools.py _
ImportError while importing test module
'/<<PKGBUILDDIR>>/.pybuild/test_python3.11/pymatgen/entries/tests/test_entry_tools.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/entries/tests/test_entry_tools.py:12:
in <module>
    from pymatgen.entries.entry_tools import EntrySet,
group_entries_by_composition, group_entries_by_structure
.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)
_ ERROR collecting
.pybuild/test_python3.11/pymatgen/entries/tests/test_mixing_scheme.py
_
ImportError while importing test module
'/<<PKGBUILDDIR>>/.pybuild/test_python3.11/pymatgen/entries/tests/test_mixing_scheme.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/entries/tests/test_mixing_scheme.py:116:
in <module>
    from pymatgen.entries.mixing_scheme import MaterialsProjectDFTMixingScheme
.pybuild/test_python3.11/pymatgen/entries/mixing_scheme.py:25: 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)



More information about the Debichem-devel mailing list