Uh oh!
There was an error while loading. Please reload this page.
Fix missing dependecy definition of 'packaging' - #6207
Conversation
s-weigand
commented
Jan 29, 2022
The failing tests are unrelated to this change and originate from this commit. |
mathause
commented
Jan 29, 2022
cc @pydata/xarray |
mathause
commented
Jan 29, 2022
On second thought I think the problem is the release of dask 2022.01.1. |
We don't have dask as a dependency$ johnnydep pyglotaran2022-01-29 10:55:08 [info ] init johnnydist [johnnydep.lib] dist=pyglotaran parent=None2022-01-29 10:55:11 [info ] init johnnydist [johnnydep.lib] dist=asteval>=0.9.21 parent=pyglotaran2022-01-29 10:55:24 [info ] init johnnydist [johnnydep.lib] dist=click>=7.0 parent=pyglotaran2022-01-29 10:55:26 [info ] init johnnydist [johnnydep.lib] dist=netCDF4>=1.5.3 parent=pyglotaran2022-01-29 10:55:29 [info ] init johnnydist [johnnydep.lib] dist=numba>=0.52 parent=pyglotaran2022-01-29 10:55:32 [info ] init johnnydist [johnnydep.lib] dist=numpy<1.21,>=1.20.0 parent=pyglotaran2022-01-29 10:55:36 [info ] init johnnydist [johnnydep.lib] dist=pandas>=0.25.2 parent=pyglotaran2022-01-29 10:55:39 [info ] init johnnydist [johnnydep.lib] dist=rich>=10.9.0 parent=pyglotaran2022-01-29 10:55:42 [info ] init johnnydist [johnnydep.lib] dist=ruamel.yaml>=0.17.17 parent=pyglotaran2022-01-29 10:55:45 [info ] init johnnydist [johnnydep.lib] dist=scipy>=1.3.2 parent=pyglotaran2022-01-29 10:55:49 [info ] init johnnydist [johnnydep.lib] dist=sdtfile>=2020.8.3 parent=pyglotaran2022-01-29 10:55:51 [info ] init johnnydist [johnnydep.lib] dist=setuptools>=41.2 parent=pyglotaran2022-01-29 10:55:54 [info ] init johnnydist [johnnydep.lib] dist=tabulate>=0.8.8 parent=pyglotaran2022-01-29 10:55:56 [info ] init johnnydist [johnnydep.lib] dist=xarray!=0.20.0,!=0.20.1,>=0.16.2 parent=pyglotaran2022-01-29 10:55:58 [info ] init johnnydist [johnnydep.lib] dist=colorama parent=click>=7.02022-01-29 10:56:00 [info ] init johnnydist [johnnydep.lib] dist=cftime parent=netCDF4>=1.5.32022-01-29 10:56:03 [info ] init johnnydist [johnnydep.lib] dist=numpy>=1.9 parent=netCDF4>=1.5.32022-01-29 10:56:07 [info ] init johnnydist [johnnydep.lib] dist=numpy>1.13.3 parent=cftime2022-01-29 10:56:11 [info ] init johnnydist [johnnydep.lib] dist=llvmlite<0.39,>=0.38.0rc1 parent=numba>=0.522022-01-29 10:56:15 [info ] init johnnydist [johnnydep.lib] dist=numpy<1.22,>=1.18 parent=numba>=0.522022-01-29 10:56:18 [info ] init johnnydist [johnnydep.lib] dist=setuptools parent=numba>=0.522022-01-29 10:56:21 [info ] init johnnydist [johnnydep.lib] dist=numpy>=1.18.5 parent=pandas>=0.25.22022-01-29 10:56:25 [info ] init johnnydist [johnnydep.lib] dist=python-dateutil>=2.8.1 parent=pandas>=0.25.22022-01-29 10:56:27 [info ] init johnnydist [johnnydep.lib] dist=pytz>=2020.1 parent=pandas>=0.25.22022-01-29 10:56:29 [info ] init johnnydist [johnnydep.lib] dist=six>=1.5 parent=python-dateutil>=2.8.12022-01-29 10:56:31 [info ] init johnnydist [johnnydep.lib] dist=colorama<0.5.0,>=0.4.0 parent=rich>=10.9.02022-01-29 10:56:34 [info ] init johnnydist [johnnydep.lib] dist=commonmark<0.10.0,>=0.9.0 parent=rich>=10.9.02022-01-29 10:56:36 [info ] init johnnydist [johnnydep.lib] dist=pygments<3.0.0,>=2.6.0 parent=rich>=10.9.02022-01-29 10:56:38 [info ] init johnnydist [johnnydep.lib] dist=ruamel.yaml.clib>=0.2.6 parent=ruamel.yaml>=0.17.172022-01-29 10:56:40 [info ] init johnnydist [johnnydep.lib] dist=numpy<1.23.0,>=1.16.5 parent=scipy>=1.3.22022-01-29 10:56:44 [info ] init johnnydist [johnnydep.lib] dist=numpy>=1.15.1 parent=sdtfile>=2020.8.32022-01-29 10:56:48 [info ] init johnnydist [johnnydep.lib] dist=numpy>=1.18 parent=xarray!=0.20.0,!=0.20.1,>=0.16.22022-01-29 10:56:51 [info ] init johnnydist [johnnydep.lib] dist=pandas>=1.1 parent=xarray!=0.20.0,!=0.20.1,>=0.16.22022-01-29 10:56:55 [info ] init johnnydist [johnnydep.lib] dist=numpy>=1.18.5 parent=pandas>=1.12022-01-29 10:56:55 [info ] init johnnydist [johnnydep.lib] dist=python-dateutil>=2.8.1 parent=pandas>=1.12022-01-29 10:56:55 [info ] init johnnydist [johnnydep.lib] dist=pytz>=2020.1 parent=pandas>=1.12022-01-29 10:56:55 [info ] init johnnydist [johnnydep.lib] dist=six>=1.5 parent=python-dateutil>=2.8.1name summary------------------------------------ ----------------------------------------------------------------------------------------------------------------------------pyglotaran The Glotaran fitting engine.├── asteval>=0.9.21 Safe, minimalistic evaluator of python expression using ast module├── click>=7.0 Composable command line interface toolkit│ └── colorama Cross-platform colored terminal text.├── netCDF4>=1.5.3 Provides an object-oriented python interface to the netCDF version 4 library.│ ├── cftime Time-handling functionality from netcdf4-python│ │ └── numpy>1.13.3 NumPy is the fundamental package for array computing with Python.│ └── numpy>=1.9 NumPy is the fundamental package for array computing with Python.├── numba>=0.52 compiling Python code using LLVM│ ├── llvmlite<0.39,>=0.38.0rc1 lightweight wrapper around basic LLVM functionality│ ├── numpy<1.22,>=1.18 NumPy is the fundamental package for array computing with Python.│ └── setuptools Easily download, build, install, upgrade, and uninstall Python packages├── numpy<1.21,>=1.20.0 NumPy is the fundamental package for array computing with Python.├── pandas>=0.25.2 Powerful data structures for data analysis, time series, and statistics│ ├── numpy>=1.18.5 NumPy is the fundamental package for array computing with Python.│ ├── python-dateutil>=2.8.1 Extensions to the standard Python datetime module│ │ └── six>=1.5 Python 2 and 3 compatibility utilities│ └── pytz>=2020.1 World timezone definitions, modern and historical├── rich>=10.9.0 Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal│ ├── colorama<0.5.0,>=0.4.0 Cross-platform colored terminal text.│ ├── commonmark<0.10.0,>=0.9.0 Python parser for the CommonMark Markdown spec│ └── pygments<3.0.0,>=2.6.0 Pygments is a syntax highlighting package written in Python.├── ruamel.yaml>=0.17.17 ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order│ └── ruamel.yaml.clib>=0.2.6 C version of reader, parser and emitter for ruamel.yaml derived from libyaml├── scipy>=1.3.2 SciPy: Scientific Library for Python│ └── numpy<1.23.0,>=1.16.5 NumPy is the fundamental package for array computing with Python.├── sdtfile>=2020.8.3 Read Becker & Hickl SDT files│ └── numpy>=1.15.1 NumPy is the fundamental package for array computing with Python.├── setuptools>=41.2 Easily download, build, install, upgrade, and uninstall Python packages├── tabulate>=0.8.8 Pretty-print tabular data└── xarray!=0.20.0,!=0.20.1,>=0.16.2 N-D labeled arrays and datasets in Python ├── numpy>=1.18 NumPy is the fundamental package for array computing with Python. └── pandas>=1.1 Powerful data structures for data analysis, time series, and statistics ├── numpy>=1.18.5 NumPy is the fundamental package for array computing with Python. ├── python-dateutil>=2.8.1 Extensions to the standard Python datetime module │ └── six>=1.5 Python 2 and 3 compatibility utilities └── pytz>=2020.1 World timezone definitions, modern and historicalAs far as I can see Traceback starting from our packageFile"/home/runner/work/pyglotaran/pyglotaran/benchmark/.asv/env/76391772e92136ec87b9940d70226329/lib/python3.8/site-packages/glotaran/io/prepare_dataset.py", line6, in<module>importxarrayasxrFile"/home/runner/work/pyglotaran/pyglotaran/benchmark/.asv/env/76391772e92136ec87b9940d70226329/lib/python3.8/site-packages/xarray/__init__.py", line1, in<module>from . importtesting, tutorial, ufuncsFile"/home/runner/work/pyglotaran/pyglotaran/benchmark/.asv/env/76391772e92136ec87b9940d70226329/lib/python3.8/site-packages/xarray/testing.py", line8, in<module>fromxarray.coreimportduck_array_ops, formatting, utilsFile"/home/runner/work/pyglotaran/pyglotaran/benchmark/.asv/env/76391772e92136ec87b9940d70226329/lib/python3.8/site-packages/xarray/core/duck_array_ops.py", line24, in<module>from . importdask_array_compat, dask_array_ops, dtypes, npcompat, nputilsFile"/home/runner/work/pyglotaran/pyglotaran/benchmark/.asv/env/76391772e92136ec87b9940d70226329/lib/python3.8/site-packages/xarray/core/dask_array_compat.py", line4, in<module>frompackaging.versionimportVersionModuleNotFoundError: Nomodulenamed'packaging' |
|
Illviljan
commented
Jan 29, 2022
https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated recommends importing |
mathause
commented
Jan 29, 2022
Yes, I think I just expressed it wrong. What I wanted to say: zhe failure you see here is not caused by #6200 but by a new release of dask. And this is independent of your issue with packaging. |
s-weigand
commented
Jan 29, 2022
Ahhh now I get it 😅 |
max-sixty
commented
Jan 29, 2022
Thanks everyone! Are we ok to close this then? |
keewis
commented
Jan 29, 2022
no, I think we should still add |
Dask has ❤️ 17.1 👍 20 |
Illviljan
commented
Jan 30, 2022
Following dask seems like a good idea! We probably should add packaging in our ci installs as well: |
Uh oh!
There was an error while loading. Please reload this page.
keewis
commented
Jan 30, 2022
just for the record, we decided that packaging related tools (i.e. |
other than the environment files and the asv config we also need to update |
for more information, see https://pre-commit.ci
@pydata/xarray - we should try to get this merged and a new release up ASAP as bug reports are starting to pile up. I've pushed changes to the CI configs, documentation, and elsewhere. I've also pulled in the recent changes on Also, thanks @s-weigand for opening this PR and raising the issue. |
max-sixty
commented
Jan 31, 2022
I can do the release later today if no one gets there first |
Uh oh!
There was an error while loading. Please reload this page.
keewis
left a comment
There was a problem hiding this comment.
a few more suggestions, and I think we should also update requirements.txt, but after that we should be ready to merge!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jhamman
commented
Jan 31, 2022
This is ready to merge. @max-sixty - whenever you are ready, go ahead and merge and make the release. |
max-sixty
commented
Jan 31, 2022
I'll merge now though do the release this eve |
Hi there, we just wanted to upgrade
xarrayto version0.21.0and our ASV workflow on the CI started failing.The reason is that
packagingisn't a direct dependency ofxarray.The problem why your tests didn't catch this is that
packagingis a dependency ofpytestitself.We also only saw our ASV workflow fail since ASV only installs the package and all direct runtime dependencies in the venv it runs the benchmark with.
I prepared a dummy PR on my fork to demonstrate that this fixes the issue.
Since the release is only 10h old maybe just do a quick post-release so most users won't even notice.
whats-new.rst