Bug#1058040: pymatgen: FTBFS with Python 3.12

2024-01-19 Thread Drew Parsons
Source: pymatgen
Followup-For: Bug #1058040

No, other way around. The new monty is causing the problem.
Will need to patch or upgrade pymatgen.



Bug#1058040: pymatgen: FTBFS with Python 3.12

2024-01-19 Thread Drew Parsons
Source: pymatgen
Followup-For: Bug #1058040

Sounds like it will need the new version of monty



Bug#1058040: pymatgen: FTBFS with Python 3.12

2023-12-11 Thread Graham Inggs
Source: pymatgen
Version: 2023.06.23+dfsg1-2
Severity: serious
Tags: ftbfs
User: debian-pyt...@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
'/<>/.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 
from pymatgen.entries.entry_tools import EntrySet
.pybuild/test_python3.11/pymatgen/entries/entry_tools.py:18: in 
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
'/<>/.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 
from pymatgen.analysis.cost import CostAnalyzer, CostDBCSV, CostDBElements
.pybuild/test_python3.11/pymatgen/analysis/cost.py:19: in 
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
'/<>/.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 
from pymatgen.entries.entry_tools import EntrySet
.pybuild/test_python3.11/pymatgen/entries/entry_tools.py:18: in 
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
'/<>/.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 
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 
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
'/<>/.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 
from pymatgen.entries.mixing_scheme import MaterialsProjectDFTMixingScheme
.pybuild/test_python3.11/pymatgen/entries/mixing_scheme.py:25: in 
from pymatgen.entries.entry_tools import EntrySet
.pybuild/test_python3.11/pymatgen/entries/entry_tools.py:18: in 
from monty.string import unicode2str
E   ImportError: cannot import name 'unicode2str' from 'monty.string'
(/usr/lib/python3/dist-packages/monty/string.py)