-
Notifications
You must be signed in to change notification settings - Fork 8
Thoughts on dropping support for Python 2.7 #27
Comments
How widespread do you think the usage of Both converting the postprocessing tools to be py3 compliant and updating the way the environment is built to provide py3 will be time-consuming tasks, but I'll do all I can to push for that to happen ASAP. |
In general I am in favor of dropping Python 2 support, except for this issue with the cesm_postprocessing tools. |
@mnlevy1981, components from
Yes, the latest version: I understand and agree with you regarding this.
Speaking of |
Xarray seems to be broken for:
This seems to be connected to xarray are not compatible with latest numpy root@01294942813e:~# python
Python 2.7.15 | packaged by conda-forge | (default, Nov 28 2018, 18:42:13)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xarray as xr
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/xarray/__init__.py", line 10, in <module>
from .core.alignment import align, broadcast, broadcast_arrays
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/xarray/core/alignment.py", line 10, in <module>
from . import utils
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/xarray/core/utils.py", line 16, in <module>
from .pycompat import (
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/xarray/core/pycompat.py", line 73, in <module>
import dask.array
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/dask/array/__init__.py", line 9, in <module>
from .routines import (take, choose, argwhere, where, coarsen, insert,
File "/opt/conda/envs/esmlab-dev/lib/python2.7/site-packages/dask/array/routines.py", line 256, in <module>
@wraps(np.matmul)
File "/opt/conda/envs/esmlab-dev/lib/python2.7/functools.py", line 33, in update_wrapper
setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'numpy.ufunc' object has no attribute '__module__' |
@mnlevy1981, Since xarray dropped support for Python 2.7 starting with xarray v.0.11.3, I was wondering if it would be okay for us to drop Python2.7 in the next release of esmlab? Would any of your tools break if you were to pin the esmlab version to most recent, stable version ( |
I don't see a problem with pinning to the most recent stable version and dropping 2.7 support moving forward. |
I'm okay with tagging the last 2.7-compatible version and only maintaining py3 compatibility moving forward... hopefully our MARBL diagnostics can drop python 2 support soon as well. |
@matt-long, @mnlevy1981, @kmpaul:
I would like to know your thoughts on dropping Python 2.7 suppport in future versions of
esmlab
.I am currently working on integrating some functionality from
xarray-extras
namely interpolations and integrations functions (see #25) in esmlab. However,xarray-extras
is only Python 3.5+ compatible. Since it is 2019 already, it is likely that the number of upstream packages that will drop support for Python 2.7 will definitely increase, making Python 2.7 support a painful exercise for us.@mnlevy1981, I haven't forgotten the fact that cesm_postprocessing still relies on Python2.7 and that you'd like to use some features from
esmlab
in cesm_postprocessing. I am open to ideas on how to deal with this issue.The text was updated successfully, but these errors were encountered: