home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

17 rows where issue = 1437481995 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 4

  • headtr1ck 8
  • hmaarrfk 5
  • s-weigand 3
  • rbuckland 1

author_association 3

  • COLLABORATOR 8
  • CONTRIBUTOR 8
  • NONE 1

issue 1

  • 🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 · 17 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1537683612 https://github.com/pydata/xarray/issues/7259#issuecomment-1537683612 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85bpzCc rbuckland 1148383 2023-05-08T03:19:31Z 2023-05-08T03:20:50Z NONE

:heavy_plus_sign: 1

``` ❯ pip freeze |grep -Ei "xarray|numpy|netcdf" netCDF4==1.6.3 numpy==1.23.3 xarray==2023.4.2

❯ python -c "import xarray;import warnings;warnings.filterwarnings('error');import netCDF4"
Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/z3538708/projects/gitlab.com/sqc-eng/se/core/.venv-core/lib/python3.10/site-packages/netCDF4/init.py", line 3, in <module> from ._netCDF4 import * File "src/netCDF4/_netCDF4.pyx", line 1, in init netCDF4._netCDF4 RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject

❯ python -c "import netCDF4;import xarray;import warnings;warnings.filterwarnings('error');import netCDF4" ❯ `` No errors when the order isnetCD4` import, before import xarray

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1325467359 https://github.com/pydata/xarray/issues/7259#issuecomment-1325467359 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85PAQbf headtr1ck 43316012 2022-11-23T18:07:08Z 2022-11-23T18:07:08Z COLLABORATOR

weirdly enough, this: python -c "import warnings; warnings.filterwarnings('error'); import numpy; import netCDF4" does not error, haha.

{
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 2,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1321127671 https://github.com/pydata/xarray/issues/7259#issuecomment-1321127671 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85Ovs73 headtr1ck 43316012 2022-11-20T13:02:52Z 2022-11-20T13:02:52Z COLLABORATOR

I would suggest to open an issue in netcdf4, since it seems to happen when you import numpy before netcdf4.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320956883 https://github.com/pydata/xarray/issues/7259#issuecomment-1320956883 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvDPT hmaarrfk 90008 2022-11-19T19:51:27Z 2022-11-19T19:51:27Z CONTRIBUTOR

I'm really not sure. It seems to happen with a large swath of versions from my recent search.

Also running from the python REPL, i don't see the warning. which makes me feel like numpy/cython/netcdf4 are trying to suppress the harmless warning.

https://github.com/cython/cython/blob/0.29.x/Cython/Utility/ImportExport.c#L365

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320954489 https://github.com/pydata/xarray/issues/7259#issuecomment-1320954489 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvCp5 headtr1ck 43316012 2022-11-19T19:36:20Z 2022-11-19T19:36:20Z COLLABORATOR

If you are still motivated, you could try figuring out if it happens with older versions of numpy and netcdf as well...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320953994 https://github.com/pydata/xarray/issues/7259#issuecomment-1320953994 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvCiK hmaarrfk 90008 2022-11-19T19:33:37Z 2022-11-19T19:33:37Z CONTRIBUTOR

one or the other.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320953740 https://github.com/pydata/xarray/issues/7259#issuecomment-1320953740 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvCeM headtr1ck 43316012 2022-11-19T19:32:17Z 2022-11-19T19:32:28Z COLLABORATOR

So it happens when you import numpy before netCDF? Then I would claim that it is a netCDF problem, haha.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320953155 https://github.com/pydata/xarray/issues/7259#issuecomment-1320953155 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvCVD hmaarrfk 90008 2022-11-19T19:28:20Z 2022-11-19T19:28:53Z CONTRIBUTOR

I think it is a numpy thing bash mamba create --name np numpy netcdf4 --channel conda-forge --override-channels conda activate np python -c "import numpy; import warnings; warnings.filterwarnings('error'); import netCDF4" python Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/mark/mambaforge/envs/np/lib/python3.11/site-packages/netCDF4/__init__.py", line 3, in <module> from ._netCDF4 import * File "src/netCDF4/_netCDF4.pyx", line 1, in init netCDF4._netCDF4 RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject

``` $ mamba list # packages in environment at /home/mark/mambaforge/envs/np: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2022.9.24 ha878542_0 conda-forge cftime 1.6.2 py311h4c7f6c3_1 conda-forge curl 7.86.0 h2283fc2_1 conda-forge hdf4 4.2.15 h9772cbc_5 conda-forge hdf5 1.12.2 nompi_h4df4325_100 conda-forge icu 70.1 h27087fc_0 conda-forge jpeg 9e h166bdaf_2 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.19.3 h08a2579_0 conda-forge ld_impl_linux-64 2.39 hc81fddc_0 conda-forge libblas 3.9.0 16_linux64_openblas conda-forge libcblas 3.9.0 16_linux64_openblas conda-forge libcurl 7.86.0 h2283fc2_1 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-ng 12.2.0 h65d4601_19 conda-forge libgfortran-ng 12.2.0 h69a702a_19 conda-forge libgfortran5 12.2.0 h337968e_19 conda-forge libgomp 12.2.0 h65d4601_19 conda-forge libiconv 1.17 h166bdaf_0 conda-forge liblapack 3.9.0 16_linux64_openblas conda-forge libnetcdf 4.8.1 nompi_h261ec11_106 conda-forge libnghttp2 1.47.0 hff17c54_1 conda-forge libnsl 2.0.0 h7f98852_0 conda-forge libopenblas 0.3.21 pthreads_h78a6416_3 conda-forge libsqlite 3.40.0 h753d276_0 conda-forge libssh2 1.10.0 hf14f497_3 conda-forge libstdcxx-ng 12.2.0 h46fd767_19 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libxml2 2.10.3 h7463322_0 conda-forge libzip 1.9.2 hc929e4a_1 conda-forge libzlib 1.2.13 h166bdaf_4 conda-forge ncurses 6.3 h27087fc_1 conda-forge netcdf4 1.6.2 nompi_py311hc6fcf29_100 conda-forge numpy 1.23.4 py311h7d28db0_1 conda-forge openssl 3.0.7 h166bdaf_0 conda-forge pip 22.3.1 pyhd8ed1ab_0 conda-forge python 3.11.0 ha86cf86_0_cpython conda-forge python_abi 3.11 2_cp311 conda-forge readline 8.1.2 h0f457ee_0 conda-forge setuptools 65.5.1 pyhd8ed1ab_0 conda-forge tk 8.6.12 h27826a3_0 conda-forge tzdata 2022f h191b570_0 conda-forge wheel 0.38.4 pyhd8ed1ab_0 conda-forge xz 5.2.6 h166bdaf_0 conda-forge zlib 1.2.13 h166bdaf_4 conda-forge ```
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320950377 https://github.com/pydata/xarray/issues/7259#issuecomment-1320950377 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvBpp hmaarrfk 90008 2022-11-19T19:14:04Z 2022-11-19T19:14:04Z CONTRIBUTOR

mamba create --name xr numpy pandas xarray netcdf4 --channel conda-forge --override-channels conda activate xr python -c "import xarray; import warnings; warnings.filterwarnings('error'); import netCDF4"

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/mark/mambaforge/envs/xr/lib/python3.11/site-packages/netCDF4/__init__.py", line 3, in <module> from ._netCDF4 import * File "src/netCDF4/_netCDF4.pyx", line 1, in init netCDF4._netCDF4 RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject

`mamba list` ``` mamba list # packages in environment at /home/mark/mambaforge/envs/xr: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2022.9.24 ha878542_0 conda-forge cftime 1.6.2 py311h4c7f6c3_1 conda-forge curl 7.86.0 h2283fc2_1 conda-forge hdf4 4.2.15 h9772cbc_5 conda-forge hdf5 1.12.2 nompi_h4df4325_100 conda-forge icu 70.1 h27087fc_0 conda-forge jpeg 9e h166bdaf_2 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.19.3 h08a2579_0 conda-forge ld_impl_linux-64 2.39 hc81fddc_0 conda-forge libblas 3.9.0 16_linux64_openblas conda-forge libcblas 3.9.0 16_linux64_openblas conda-forge libcurl 7.86.0 h2283fc2_1 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-ng 12.2.0 h65d4601_19 conda-forge libgfortran-ng 12.2.0 h69a702a_19 conda-forge libgfortran5 12.2.0 h337968e_19 conda-forge libgomp 12.2.0 h65d4601_19 conda-forge libiconv 1.17 h166bdaf_0 conda-forge liblapack 3.9.0 16_linux64_openblas conda-forge libnetcdf 4.8.1 nompi_h261ec11_106 conda-forge libnghttp2 1.47.0 hff17c54_1 conda-forge libnsl 2.0.0 h7f98852_0 conda-forge libopenblas 0.3.21 pthreads_h78a6416_3 conda-forge libsqlite 3.40.0 h753d276_0 conda-forge libssh2 1.10.0 hf14f497_3 conda-forge libstdcxx-ng 12.2.0 h46fd767_19 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libxml2 2.10.3 h7463322_0 conda-forge libzip 1.9.2 hc929e4a_1 conda-forge libzlib 1.2.13 h166bdaf_4 conda-forge ncurses 6.3 h27087fc_1 conda-forge netcdf4 1.6.2 nompi_py311hc6fcf29_100 conda-forge numpy 1.23.4 py311h7d28db0_1 conda-forge openssl 3.0.7 h166bdaf_0 conda-forge packaging 21.3 pyhd8ed1ab_0 conda-forge pandas 1.5.1 py311h8b32b4d_1 conda-forge pip 22.3.1 pyhd8ed1ab_0 conda-forge pyparsing 3.0.9 pyhd8ed1ab_0 conda-forge python 3.11.0 ha86cf86_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python_abi 3.11 2_cp311 conda-forge pytz 2022.6 pyhd8ed1ab_0 conda-forge readline 8.1.2 h0f457ee_0 conda-forge setuptools 65.5.1 pyhd8ed1ab_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge tk 8.6.12 h27826a3_0 conda-forge tzdata 2022f h191b570_0 conda-forge wheel 0.38.4 pyhd8ed1ab_0 conda-forge xarray 2022.11.0 pyhd8ed1ab_0 conda-forge xz 5.2.6 h166bdaf_0 conda-forge zlib 1.2.13 h166bdaf_4 conda-forge ```
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320949554 https://github.com/pydata/xarray/issues/7259#issuecomment-1320949554 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvBcy headtr1ck 43316012 2022-11-19T19:09:47Z 2022-11-19T19:09:47Z COLLABORATOR

Can we find a minimum environment that can reproduce this results? I.e. only numpy, pandas, xarray and netcdf4?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1320945794 https://github.com/pydata/xarray/issues/7259#issuecomment-1320945794 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85OvAiC hmaarrfk 90008 2022-11-19T18:51:01Z 2022-11-19T18:51:01Z CONTRIBUTOR

It is also reproducible on binder:

It seems that the binder uses conda-forge, which is why i'm commenting here.

It is really strange in the sense that xarray doesn't compile anything.

https://github.com/conda-forge/xarray-feedstock/blob/main/recipe/meta.yaml#L16

So it must be something that gets lazy loaded that triggers things.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1306334761 https://github.com/pydata/xarray/issues/7259#issuecomment-1306334761 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85N3RYp s-weigand 9513634 2022-11-07T22:54:11Z 2022-11-07T22:54:11Z CONTRIBUTOR

It is also reproducible locally only xarray makes the difference, for the git bisect I used a fresh env.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1306315928 https://github.com/pydata/xarray/issues/7259#issuecomment-1306315928 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85N3MyY headtr1ck 43316012 2022-11-07T22:30:07Z 2022-11-07T22:30:07Z COLLABORATOR

Is it repeatable locally with the exact same package versions installed?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1306146088 https://github.com/pydata/xarray/issues/7259#issuecomment-1306146088 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85N2jUo s-weigand 9513634 2022-11-07T20:25:50Z 2022-11-07T20:26:02Z CONTRIBUTOR

Yeah we first saw it on the CI, which moved it from bad local install (as pretty much all accepted StackOverflow answers also suggest) to

I have no idea what is going wrong ...

😅

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1306091745 https://github.com/pydata/xarray/issues/7259#issuecomment-1306091745 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85N2WDh headtr1ck 43316012 2022-11-07T19:33:55Z 2022-11-07T19:33:55Z COLLABORATOR

I have run into this problem already several times and the problem was always a somehow broken numpy install. A reinstall usually fixed this for me. But I assume this is part of a CI pipeline or so?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1305984239 https://github.com/pydata/xarray/issues/7259#issuecomment-1305984239 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85N17zv s-weigand 9513634 2022-11-07T17:59:38Z 2022-11-07T17:59:38Z CONTRIBUTOR

We were/are also entirely baffled and have no clue what kind of black magic is going is going on with this 😅

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995
1305239128 https://github.com/pydata/xarray/issues/7259#issuecomment-1305239128 https://api.github.com/repos/pydata/xarray/issues/7259 IC_kwDOAMm_X85NzF5Y headtr1ck 43316012 2022-11-07T08:19:30Z 2022-11-07T08:19:30Z COLLABORATOR

It is true that the import behavior had changed in the linked PR (it is now lazy importing netCDF4) but I don't see how this can cause such problems.

Normally this warning indicates that something is wrong with your install, but since you can solve it by importing netcdf4 first, I have no idea what is going wrong ...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  🐛 NetCDF4 RuntimeWarning if xarray is imported before netCDF4 1437481995

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 16.386ms · About: xarray-datasette