[Debichem-devel] Bug#1023972: python-ase: FTBFS with Python 3.11 due to pathlib.Path.__enter__() deprecation
Andrius Merkys
merkys at debian.org
Thu Dec 15 13:01:51 GMT 2022
On Sun, 13 Nov 2022 13:12:15 +0200 Andrius Merkys <merkys at debian.org> wrote:
> python-ase/3.22.1 FTBFS with the following after Python 3.11 support has
> been added:
>
> DeprecationWarning: pathlib.Path.__enter__() is deprecated and scheduled
> for removal in Python 3.13; Path objects as a context manager is a no-op
>
> I have forwarded this upstream.
A month has passed without any action from the upstream. Now the issue
is of severity:serious. If threatened by autoremoval, one possibility to
resolve it might be ignoring the warning for the time being:
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
Source:
https://stackoverflow.com/questions/879173/how-to-ignore-deprecation-warnings-in-python
Haven't tested if this indeed works yet.
Andrius
More information about the Debichem-devel
mailing list