Skip to content

MNT Ignore pandas deprecation warning for PyArrow #28258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 27 commits into from

Conversation

adrinjalali
Copy link
Member

@lesteve what should I do here to update the lock files?

Copy link

github-actions bot commented Jan 25, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 4a8c908. Link to the linter CI: here

@lesteve
Copy link
Member

lesteve commented Jan 25, 2024

Probably you need a similar thing in doc/conf.py too and push a commit with [doc build]. I have seen it done in build_tools/azure/test_script.sh not sure about the subtleties vs setup.cfg. Edit I guess the CI runs with specific warnings turned into errors whereas someone running pytest locally does not.

To update the lock-files:

Alternatively you could try to rebase your commit on the scikit-learn-bot PR #28216

setup.cfg Outdated
@@ -23,6 +23,8 @@ addopts =

filterwarnings =
ignore:the matrix subclass:PendingDeprecationWarning
# The following warning is raised when PyArrow is not installed on pandas 2.2
ignore:Pyarrow will become a required dependency of pandas:DeprecationWarning
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We merged something in skrub 2 days ago. If this is regex, you need to add (?s).* at the beginning because this is a multiline string and .* at the end.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@lesteve lesteve Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure whether this is a regex or not. According to sure https://docs.python.org/3/library/warnings.html#the-warnings-filter it depends:

message is a string containing a regular expression that the start of the warning message must match, case-insensitively. In -W and PYTHONWARNINGS, message is a literal string that the start of the warning message must contain (case-insensitively), ignoring any whitespace at the start or end of message.

We might be in the -W or PYTHONWARNINGS case depending on how pytest filterwarnings gets passed down by pytest? If we do it in test_script.sh (which I think is slightly better) this looks more like -W, in setup.cfg not sure.

@glemaitre
Copy link
Member

For the documentation, it would be nice to check that we don't display the warning if this is possible.

@lesteve
Copy link
Member

lesteve commented Jan 25, 2024

For the documentation, it would be nice to check that we don't display the warning if this is possible.

Not sure but I would say, even if the warning is shown, this is not a blocker since this will be only in the dev doc so we have time to reevaluate the situation until we release 1.5 ...

If we are lucky, the ignore thing may also hide the warning not 100% sure.

@glemaitre
Copy link
Member

Not sure but I would say not a blocker since this will be only in the dev doc so we have time to reevaluate the situation until we release 1.5 ...

I agree that I would prefer to have a CI running if I want to prioritize.

@adrinjalali
Copy link
Member Author

Alternatively we can have pyarrow installed in CI. That's what we did in fairlearn for instance.

@lesteve
Copy link
Member

lesteve commented Jan 25, 2024

Alternatively we can have pyarrow installed in CI. That's what we did in fairlearn for instance.

The fact that pyarrow depends on 13 AWS-related packages (plus some others obviously) on conda-forge is not something I am a big fan of (this also introduces additional churn in the lock-files), so I find ignoring the warning is the least controversial thing to do in the short-term. I think last time I looked there was some work on making pyarrow less bulky but I don't really know the timeline of this.

@glemaitre
Copy link
Member

I find ignoring the warning is the least controversial thing to do in the short-term.

+1 on this. We might give this feedback or upvote on having a lean pyarrow installed on the provided RFC on the pandas site. When the RFC converged, we can settle on what we want to do.

@jjerphan
Copy link
Member

I think last time I looked there was some work on making pyarrow less bulky but I don't really know the timeline of this.

I agree. This is being discussed in apache/arrow#38536.

arrow-cpp (AKA libarrow) packaging on conda-forge has already been split in smaller packages with conda-forge/arrow-cpp-feedstock#1201.

@adrinjalali
Copy link
Member Author

@lesteve the script raises an error, the end of which is:

    STDERR:
PackageRecord(_hash=1530323146805234162, name='__glibc', version='0', build='0', build_number=0, channel=Channel("@"), subdir='linux-64', fn='__glibc', md5='12345678901234567890123456789012', package_type='virtual_system')

Traceback (most recent call last):
  File "/home/adrin/miniforge3/envs/sklearn/bin/conda-lock", line 10, in <module>
    sys.exit(main())
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1384, in lock
    lock_func(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1092, in run_lock
    make_lock_files(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 394, in make_lock_files
    fresh_lock_content = create_lockfile_from_spec(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 821, in create_lockfile_from_spec
    deps = _solve_for_arch(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 740, in _solve_for_arch
    conda_deps = solve_conda(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_solver.py", line 157, in solve_conda
    dry_run_install = solve_specs_for_arch(
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/conda_solver.py", line 369, in solve_specs_for_arch
    proc.check_returncode()
  File "/home/adrin/miniforge3/envs/sklearn/lib/python3.10/site-packages/conda_lock/_vendor/poetry/utils/_compat.py", line 168, in check_returncode
    raise CalledProcessError(
conda_lock._vendor.poetry.utils._compat.CalledProcessError: Command '['/home/adrin/miniforge3/condabin/mamba', 'create', '--prefix', '/tmp/tmpq_uhbunx/prefix', '--dry-run', '--json', '--override-channels', '--channel', 'conda-forge', '--channel', 'file:///tmp/tmpeczgjyvk', 'python', 'numpy', 'blas * mkl', 'scipy', 'cython', 'joblib', 'threadpoolctl', 'matplotlib', 'pandas', 'pyamg', 'pytest', 'pytest-xdist', 'pillow', 'setuptools', 'pytest-cov', 'coverage', 'ccache', 'meson-python', 'pip', 'pytorch 1.13.*', 'pytorch-cpu', 'polars', 'pyarrow', 'array-api-compat']' returned non-zero exit status 1.

and the whole thing:
log.txt

@lesteve
Copy link
Member

lesteve commented Jan 26, 2024

To be honest, let's do the simplest thing possible for now and pin pandas<2.2 to avoid the warning to unlock other things. I have opened #28273

Not sure about the error, what is your conda version? The PackageRecord(...__glibc) thing seems quite similar to an error with older conda versions but maybe it has appeared again?

@adrinjalali
Copy link
Member Author

I just installed new conda. This is why I don't like the lock files @lesteve , I've never been able to run the script to update them.

@lesteve
Copy link
Member

lesteve commented Jan 26, 2024

Completely get your annoyance if every single time you tried you did not manage to run it ... hopefully things can be fixed though. Try updating mamba stuff just in case?

For reference my mamba and conda version:

❯ mamba --version              
mamba 1.5.4
conda 23.11.0

@adrinjalali
Copy link
Member Author

This is what I have:

$ mmamba list
List of packages in environment: "/home/adrin/miniforge3/envs/sklearn"

  Name                           Version       Build                Channel    
─────────────────────────────────────────────────────────────────────────────────
  _libgcc_mutex                  0.1           conda_forge          conda-forge
  _openmp_mutex                  4.5           2_gnu                conda-forge
  alabaster                      0.7.13        pyhd8ed1ab_0         conda-forge
  alsa-lib                       1.2.10        hd590300_0           conda-forge
  annotated-types                0.6.0         pyhd8ed1ab_0         conda-forge
  aom                            3.7.1         h59595ed_0           conda-forge
  appdirs                        1.4.4         pyh9f0ad1d_0         conda-forge
  archspec                       0.2.2         pyhd8ed1ab_0         conda-forge
  asttokens                      2.4.1         pyhd8ed1ab_0         conda-forge
  attr                           2.5.1         h166bdaf_1           conda-forge
  babel                          2.13.1        pyhd8ed1ab_0         conda-forge
  binutils                       2.40          hdd6e379_0           conda-forge
  binutils_impl_linux-64         2.40          hf600244_0           conda-forge
  binutils_linux-64              2.40          hbdbef99_2           conda-forge
  black                          23.3.0        py310hff52083_1      conda-forge
  blosc                          1.21.5        h0f2a231_0           conda-forge
  boltons                        23.1.1        pyhd8ed1ab_0         conda-forge
  brotli                         1.1.0         hd590300_1           conda-forge
  brotli-bin                     1.1.0         hd590300_1           conda-forge
  brotli-python                  1.1.0         py310hc6cd4ac_1      conda-forge
  brunsli                        0.1           h9c3ff4c_0           conda-forge
  bzip2                          1.0.8         hd590300_5           conda-forge
  c-ares                         1.25.0        hd590300_0           conda-forge
  c-blosc2                       2.11.3        hb4ffafa_0           conda-forge
  c-compiler                     1.7.0         hd590300_0           conda-forge
  ca-certificates                2023.11.17    hbcca054_0           conda-forge
  cachecontrol                   0.13.1        pyhd8ed1ab_0         conda-forge
  cachecontrol-with-filecache    0.13.1        pyhd8ed1ab_0         conda-forge
  cachy                          0.3.0         pyhd8ed1ab_1         conda-forge
  cairo                          1.18.0        h3faef2a_0           conda-forge
  certifi                        2023.11.17    pyhd8ed1ab_0         conda-forge
  cffi                           1.16.0        py310h2fee648_0      conda-forge
  cfgv                           3.3.1         pyhd8ed1ab_0         conda-forge
  charls                         2.4.2         h59595ed_0           conda-forge
  charset-normalizer             3.3.2         pyhd8ed1ab_0         conda-forge
  click                          8.1.7         unix_pyh707e725_0    conda-forge
  click-default-group            1.2.4         pyhd8ed1ab_0         conda-forge
  clikit                         0.6.2         pyhd8ed1ab_2         conda-forge
  colorama                       0.4.6         pyhd8ed1ab_0         conda-forge
  comm                           0.1.4         pyhd8ed1ab_0         conda-forge
  compilers                      1.7.0         ha770c72_0           conda-forge
  conda                          23.11.0       py310hff52083_1      conda-forge
  conda-libmamba-solver          23.12.0       pyhd8ed1ab_0         conda-forge
  conda-lock                     2.4.2         pyhd8ed1ab_0         conda-forge
  conda-package-handling         2.2.0         pyh38be061_0         conda-forge
  conda-package-streaming        0.9.0         pyhd8ed1ab_0         conda-forge
  contourpy                      1.2.0         py310hd41b1e2_0      conda-forge
  crashtest                      0.4.1         pyhd8ed1ab_0         conda-forge
  cryptography                   41.0.7        py310hb8475ec_1      conda-forge
  cxx-compiler                   1.7.0         h00ab1b0_0           conda-forge
  cycler                         0.12.1        pyhd8ed1ab_0         conda-forge
  cython                         3.0.6         py310hc6cd4ac_0      conda-forge
  dataclasses                    0.8           pyhc8e2a94_3         conda-forge
  dav1d                          1.2.1         hd590300_0           conda-forge
  dbus                           1.13.6        h5008d03_3           conda-forge
  debugpy                        1.8.0         py310hc6cd4ac_1      conda-forge
  decorator                      5.1.1         pyhd8ed1ab_0         conda-forge
  distlib                        0.3.7         pyhd8ed1ab_0         conda-forge
  distro                         1.9.0         pyhd8ed1ab_0         conda-forge
  docutils                       0.20.1        py310hff52083_2      conda-forge
  ensureconda                    1.4.3         pyhd8ed1ab_0         conda-forge
  exceptiongroup                 1.2.0         pyhd8ed1ab_0         conda-forge
  execnet                        2.0.2         pyhd8ed1ab_0         conda-forge
  executing                      2.0.1         pyhd8ed1ab_0         conda-forge
  expat                          2.5.0         hcb278e6_1           conda-forge
  filelock                       3.13.1        pyhd8ed1ab_0         conda-forge
  flake8                         6.1.0         pyhd8ed1ab_0         conda-forge
  fmt                            10.1.1        h00ab1b0_1           conda-forge
  font-ttf-dejavu-sans-mono      2.37          hab24e00_0           conda-forge
  font-ttf-inconsolata           3.000         h77eed37_0           conda-forge
  font-ttf-source-code-pro       2.038         h77eed37_0           conda-forge
  font-ttf-ubuntu                0.83          h77eed37_1           conda-forge
  fontconfig                     2.14.2        h14ed4e7_0           conda-forge
  fonts-conda-ecosystem          1             0                    conda-forge
  fonts-conda-forge              1             0                    conda-forge
  fonttools                      4.46.0        py310h2372a71_0      conda-forge
  fortran-compiler               1.7.0         heb67821_0           conda-forge
  freetype                       2.12.1        h267a509_2           conda-forge
  gcc                            12.3.0        h8d2909c_2           conda-forge
  gcc_impl_linux-64              12.3.0        he2b93b0_3           conda-forge
  gcc_linux-64                   12.3.0        h76fc315_2           conda-forge
  gettext                        0.21.1        h27087fc_0           conda-forge
  gfortran                       12.3.0        h499e0f7_2           conda-forge
  gfortran_impl_linux-64         12.3.0        hfcedea8_3           conda-forge
  gfortran_linux-64              12.3.0        h7fe76b4_2           conda-forge
  giflib                         5.2.1         h0b41bf4_3           conda-forge
  gitdb                          4.0.11        pyhd8ed1ab_0         conda-forge
  gitpython                      3.1.40        pyhd8ed1ab_0         conda-forge
  glib                           2.78.2        hfc55251_0           conda-forge
  glib-tools                     2.78.2        hfc55251_0           conda-forge
  graphite2                      1.3.13        h58526e2_1001        conda-forge
  gst-plugins-base               1.22.7        h8e1006c_0           conda-forge
  gstreamer                      1.22.7        h98fc4e7_0           conda-forge
  gxx                            12.3.0        h8d2909c_2           conda-forge
  gxx_impl_linux-64              12.3.0        he2b93b0_3           conda-forge
  gxx_linux-64                   12.3.0        h8a814eb_2           conda-forge
  harfbuzz                       8.3.0         h3d44ed6_0           conda-forge
  html5lib                       1.1           pyh9f0ad1d_0         conda-forge
  icu                            73.2          h59595ed_0           conda-forge
  identify                       2.5.32        pyhd8ed1ab_0         conda-forge
  idna                           3.6           pyhd8ed1ab_0         conda-forge
  imagecodecs                    2023.9.18     py310h496a806_2      conda-forge
  imageio                        2.31.5        pyh8c1a49c_0         conda-forge
  imagesize                      1.4.1         pyhd8ed1ab_0         conda-forge
  importlib-metadata             7.0.0         pyha770c72_0         conda-forge
  importlib_metadata             7.0.0         hd8ed1ab_0           conda-forge
  iniconfig                      2.0.0         pyhd8ed1ab_0         conda-forge
  ipykernel                      6.26.0        pyhf8b6a83_0         conda-forge
  ipython                        8.18.1        pyh707e725_3         conda-forge
  isort                          5.12.0        pyhd8ed1ab_1         conda-forge
  jaraco.classes                 3.3.0         pyhd8ed1ab_0         conda-forge
  jedi                           0.19.1        pyhd8ed1ab_0         conda-forge
  jeepney                        0.8.0         pyhd8ed1ab_0         conda-forge
  jinja2                         3.1.2         pyhd8ed1ab_1         conda-forge
  joblib                         1.3.2         pyhd8ed1ab_0         conda-forge
  jsonpatch                      1.33          pyhd8ed1ab_0         conda-forge
  jsonpointer                    2.4           py310hff52083_3      conda-forge
  jupyter_client                 8.6.0         pyhd8ed1ab_0         conda-forge
  jupyter_core                   5.5.0         py310hff52083_0      conda-forge
  jxrlib                         1.1           h7f98852_2           conda-forge
  kernel-headers_linux-64        2.6.32        he073ed8_16          conda-forge
  keyring                        24.3.0        py310hff52083_0      conda-forge
  keyutils                       1.6.1         h166bdaf_0           conda-forge
  kiwisolver                     1.4.5         py310hd41b1e2_1      conda-forge
  krb5                           1.21.2        h659d440_0           conda-forge
  lame                           3.100         h166bdaf_1003        conda-forge
  lazy_loader                    0.3           pyhd8ed1ab_0         conda-forge
  lcms2                          2.16          hb7c19ff_0           conda-forge
  ld_impl_linux-64               2.40          h41732ed_0           conda-forge
  lerc                           4.0.0         h27087fc_0           conda-forge
  libaec                         1.1.2         h59595ed_1           conda-forge
  libarchive                     3.7.2         h039dbb9_0           conda-forge
  libavif16                      1.0.3         hed45d22_0           conda-forge
  libblas                        3.9.0         20_linux64_openblas  conda-forge
  libbrotlicommon                1.1.0         hd590300_1           conda-forge
  libbrotlidec                   1.1.0         hd590300_1           conda-forge
  libbrotlienc                   1.1.0         hd590300_1           conda-forge
  libcap                         2.69          h0f662aa_0           conda-forge
  libcblas                       3.9.0         20_linux64_openblas  conda-forge
  libclang                       15.0.7        default_hb11cfb5_4   conda-forge
  libclang13                     15.0.7        default_ha2b6cf4_4   conda-forge
  libcups                        2.3.3         h4637d8d_4           conda-forge
  libcurl                        8.5.0         hca28451_0           conda-forge
  libdeflate                     1.19          hd590300_0           conda-forge
  libedit                        3.1.20191231  he28a2e2_2           conda-forge
  libev                          4.33          hd590300_2           conda-forge
  libevent                       2.1.12        hf998b51_1           conda-forge
  libexpat                       2.5.0         hcb278e6_1           conda-forge
  libffi                         3.4.2         h7f98852_5           conda-forge
  libflac                        1.4.3         h59595ed_0           conda-forge
  libgcc-devel_linux-64          12.3.0        h8bca6fd_103         conda-forge
  libgcc-ng                      13.2.0        h807b86a_3           conda-forge
  libgcrypt                      1.10.3        hd590300_0           conda-forge
  libgfortran-ng                 13.2.0        h69a702a_3           conda-forge
  libgfortran5                   13.2.0        ha4646dd_3           conda-forge
  libglib                        2.78.2        h783c2da_0           conda-forge
  libgomp                        13.2.0        h807b86a_3           conda-forge
  libgpg-error                   1.47          h71f35ed_0           conda-forge
  libiconv                       1.17          h166bdaf_0           conda-forge
  libjpeg-turbo                  3.0.0         hd590300_1           conda-forge
  liblapack                      3.9.0         20_linux64_openblas  conda-forge
  libllvm15                      15.0.7        h5cf9203_3           conda-forge
  libmamba                       1.5.6         had39da4_0           conda-forge
  libmambapy                     1.5.6         py310h39ff949_0      conda-forge
  libnghttp2                     1.58.0        h47da74e_1           conda-forge
  libnsl                         2.0.1         hd590300_0           conda-forge
  libogg                         1.3.4         h7f98852_1           conda-forge
  libopenblas                    0.3.25        pthreads_h413a1c8_0  conda-forge
  libopus                        1.3.1         h7f98852_1           conda-forge
  libpng                         1.6.39        h753d276_0           conda-forge
  libpq                          16.1          hfc447b1_2           conda-forge
  libsanitizer                   12.3.0        h0f45ef3_3           conda-forge
  libsndfile                     1.2.2         hc60ed4a_1           conda-forge
  libsodium                      1.0.18        h36c2ea0_1           conda-forge
  libsolv                        0.7.27        hfc55251_0           conda-forge
  libsqlite                      3.44.2        h2797004_0           conda-forge
  libssh2                        1.11.0        h0841786_0           conda-forge
  libstdcxx-devel_linux-64       12.3.0        h8bca6fd_103         conda-forge
  libstdcxx-ng                   13.2.0        h7e041cc_3           conda-forge
  libsystemd0                    254           h3516f8a_0           conda-forge
  libtiff                        4.6.0         ha9c0a0a_2           conda-forge
  libuuid                        2.38.1        h0b41bf4_0           conda-forge
  libvorbis                      1.3.7         h9c3ff4c_0           conda-forge
  libwebp-base                   1.3.2         hd590300_0           conda-forge
  libxcb                         1.15          h0b41bf4_0           conda-forge
  libxkbcommon                   1.6.0         h5d7e998_0           conda-forge
  libxml2                        2.11.6        h232c23b_0           conda-forge
  libzlib                        1.2.13        hd590300_5           conda-forge
  libzopfli                      1.0.3         h9c3ff4c_0           conda-forge
  lz4-c                          1.9.4         hcb278e6_0           conda-forge
  lzo                            2.10          h516909a_1000        conda-forge
  markupsafe                     2.1.3         py310h2372a71_1      conda-forge
  matplotlib                     3.8.2         py310hff52083_0      conda-forge
  matplotlib-base                3.8.2         py310h62c0568_0      conda-forge
  matplotlib-inline              0.1.6         pyhd8ed1ab_0         conda-forge
  mccabe                         0.7.0         pyhd8ed1ab_0         conda-forge
  menuinst                       2.0.2         py310hff52083_0      conda-forge
  more-itertools                 10.1.0        pyhd8ed1ab_0         conda-forge
  mpg123                         1.32.3        h59595ed_0           conda-forge
  msgpack-python                 1.0.7         py310hd41b1e2_0      conda-forge
  munkres                        1.1.4         pyh9f0ad1d_0         conda-forge
  mypy_extensions                1.0.0         pyha770c72_0         conda-forge
  mysql-common                   8.0.33        hf1915f5_6           conda-forge
  mysql-libs                     8.0.33        hca2cd23_6           conda-forge
  ncurses                        6.4           h59595ed_2           conda-forge
  nest-asyncio                   1.5.8         pyhd8ed1ab_0         conda-forge
  networkx                       3.2.1         pyhd8ed1ab_0         conda-forge
  nodeenv                        1.8.0         pyhd8ed1ab_0         conda-forge
  nspr                           4.35          h27087fc_0           conda-forge
  nss                            3.95          h1d7d5a4_0           conda-forge
  numpy                          1.26.2        py310hb13e2d6_0      conda-forge
  numpydoc                       1.5.0         pyhd8ed1ab_0         conda-forge
  openjpeg                       2.5.0         h488ebb8_3           conda-forge
  openssl                        3.2.0         hd590300_1           conda-forge
  packaging                      23.2          pyhd8ed1ab_0         conda-forge
  pandas                         2.1.3         py310hcc13569_0      conda-forge
  parso                          0.8.3         pyhd8ed1ab_0         conda-forge
  pastel                         0.2.1         pyhd8ed1ab_0         conda-forge
  pathspec                       0.11.2        pyhd8ed1ab_0         conda-forge
  patsy                          0.5.4         pyhd8ed1ab_0         conda-forge
  pcre2                          10.42         hcad00b1_0           conda-forge
  pexpect                        4.8.0         pyh9f0ad1d_2         conda-forge
  pickleshare                    0.7.5         py_1003              conda-forge
  pillow                         10.1.0        py310h01dd4db_0      conda-forge
  pip                            23.3.1        pyhd8ed1ab_0         conda-forge
  pip-tools                      7.3.0         pyhd8ed1ab_0         conda-forge
  pixman                         0.42.2        h59595ed_0           conda-forge
  pkginfo                        1.9.6         pyhd8ed1ab_0         conda-forge
  platformdirs                   4.1.0         pyhd8ed1ab_0         conda-forge
  plotly                         5.18.0        pyhd8ed1ab_0         conda-forge
  pluggy                         1.3.0         pyhd8ed1ab_0         conda-forge
  ply                            3.11          py_1                 conda-forge
  pooch                          1.8.0         pyhd8ed1ab_0         conda-forge
  pre-commit                     3.5.0         pyha770c72_0         conda-forge
  prompt-toolkit                 3.0.41        pyha770c72_0         conda-forge
  psutil                         5.9.5         py310h2372a71_1      conda-forge
  pthread-stubs                  0.4           h36c2ea0_1001        conda-forge
  ptyprocess                     0.7.0         pyhd3deb0d_0         conda-forge
  pulseaudio-client              16.1          hb77b528_5           conda-forge
  pure_eval                      0.2.2         pyhd8ed1ab_0         conda-forge
  pybind11-abi                   4             hd8ed1ab_3           conda-forge
  pycodestyle                    2.11.1        pyhd8ed1ab_0         conda-forge
  pycosat                        0.6.6         py310h2372a71_0      conda-forge
  pycparser                      2.21          pyhd8ed1ab_0         conda-forge
  pydantic                       2.5.2         pyhd8ed1ab_0         conda-forge
  pydantic-core                  2.14.5        py310hcb5633a_0      conda-forge
  pyflakes                       3.1.0         pyhd8ed1ab_0         conda-forge
  pygments                       2.17.2        pyhd8ed1ab_0         conda-forge
  pylev                          1.4.0         pyhd8ed1ab_0         conda-forge
  pyparsing                      3.1.1         pyhd8ed1ab_0         conda-forge
  pyproject_hooks                1.0.0         pyhd8ed1ab_0         conda-forge
  pyqt                           5.15.9        py310h04931ad_5      conda-forge
  pyqt5-sip                      12.12.2       py310hc6cd4ac_5      conda-forge
  pysocks                        1.7.1         pyha2e5f31_6         conda-forge
  pytest                         7.4.3         pyhd8ed1ab_0         conda-forge
  pytest-xdist                   3.5.0         pyhd8ed1ab_0         conda-forge
  python                         3.10.13       hd12c33a_0_cpython   conda-forge
  python-build                   1.0.3         pyhd8ed1ab_0         conda-forge
  python-dateutil                2.8.2         pyhd8ed1ab_0         conda-forge
  python-tzdata                  2023.3        pyhd8ed1ab_0         conda-forge
  python_abi                     3.10          4_cp310              conda-forge
  pytz                           2023.3.post1  pyhd8ed1ab_0         conda-forge
  pywavelets                     1.4.1         py310h1f7b6fc_1      conda-forge
  pyyaml                         6.0.1         py310h2372a71_1      conda-forge
  pyzmq                          25.1.2        py310h795f18f_0      conda-forge
  qt-main                        5.15.8        h82b777d_17          conda-forge
  rav1e                          0.6.6         he8a937b_2           conda-forge
  readline                       8.2           h8228510_1           conda-forge
  reproc                         14.2.4.post0  hd590300_1           conda-forge
  reproc-cpp                     14.2.4.post0  h59595ed_1           conda-forge
  requests                       2.31.0        pyhd8ed1ab_0         conda-forge
  ruamel.yaml                    0.18.5        py310h2372a71_0      conda-forge
  ruamel.yaml.clib               0.2.7         py310h2372a71_2      conda-forge
  scikit-image                   0.22.0        py310hcc13569_2      conda-forge
  scipy                          1.11.4        py310hb13e2d6_0      conda-forge
  seaborn                        0.13.0        hd8ed1ab_0           conda-forge
  seaborn-base                   0.13.0        pyhd8ed1ab_0         conda-forge
  secretstorage                  3.3.3         py310hff52083_2      conda-forge
  setuptools                     68.2.2        pyhd8ed1ab_0         conda-forge
  sip                            6.7.12        py310hc6cd4ac_0      conda-forge
  six                            1.16.0        pyh6c4a22f_0         conda-forge
  smmap                          5.0.0         pyhd8ed1ab_0         conda-forge
  snappy                         1.1.10        h9fff704_0           conda-forge
  snowballstemmer                2.2.0         pyhd8ed1ab_0         conda-forge
  sphinx                         7.2.6         pyhd8ed1ab_0         conda-forge
  sphinx-gallery                 0.15.0        pyhd8ed1ab_0         conda-forge
  sphinx-prompt                  1.4.0         pyhd8ed1ab_0         conda-forge
  sphinxcontrib-applehelp        1.0.7         pyhd8ed1ab_0         conda-forge
  sphinxcontrib-devhelp          1.0.5         pyhd8ed1ab_0         conda-forge
  sphinxcontrib-htmlhelp         2.0.4         pyhd8ed1ab_0         conda-forge
  sphinxcontrib-jsmath           1.0.1         py_0                 conda-forge
  sphinxcontrib-qthelp           1.0.6         pyhd8ed1ab_0         conda-forge
  sphinxcontrib-serializinghtml  1.1.9         pyhd8ed1ab_0         conda-forge
  sphinxext-opengraph            0.9.0         pyhd8ed1ab_0         conda-forge
  stack_data                     0.6.2         pyhd8ed1ab_0         conda-forge
  statsmodels                    0.14.0        py310h1f7b6fc_2      conda-forge
  svt-av1                        1.7.0         h59595ed_0           conda-forge
  sysroot_linux-64               2.12          he073ed8_16          conda-forge
  tenacity                       8.2.3         pyhd8ed1ab_0         conda-forge
  tifffile                       2023.9.26     pyhd8ed1ab_0         conda-forge
  tk                             8.6.13        noxft_h4845f30_101   conda-forge
  toml                           0.10.2        pyhd8ed1ab_0         conda-forge
  tomli                          2.0.1         pyhd8ed1ab_0         conda-forge
  tomlkit                        0.12.3        pyha770c72_0         conda-forge
  toolz                          0.12.0        pyhd8ed1ab_0         conda-forge
  tornado                        6.3.3         py310h2372a71_1      conda-forge
  tqdm                           4.66.1        pyhd8ed1ab_0         conda-forge
  traitlets                      5.14.0        pyhd8ed1ab_0         conda-forge
  truststore                     0.8.0         pyhd8ed1ab_0         conda-forge
  typed-ast                      1.5.5         py310h2372a71_1      conda-forge
  typing-extensions              4.8.0         hd8ed1ab_0           conda-forge
  typing_extensions              4.8.0         pyha770c72_0         conda-forge
  tzdata                         2023c         h71feb2d_0           conda-forge
  ukkonen                        1.0.1         py310hd41b1e2_4      conda-forge
  unicodedata2                   15.1.0        py310h2372a71_0      conda-forge
  urllib3                        1.26.18       pyhd8ed1ab_0         conda-forge
  virtualenv                     20.25.0       pyhd8ed1ab_0         conda-forge
  wcwidth                        0.2.12        pyhd8ed1ab_0         conda-forge
  webencodings                   0.5.1         pyhd8ed1ab_2         conda-forge
  wheel                          0.42.0        pyhd8ed1ab_0         conda-forge
  xcb-util                       0.4.0         hd590300_1           conda-forge
  xcb-util-image                 0.4.0         h8ee46fc_1           conda-forge
  xcb-util-keysyms               0.4.0         h8ee46fc_1           conda-forge
  xcb-util-renderutil            0.3.9         hd590300_1           conda-forge
  xcb-util-wm                    0.4.1         h8ee46fc_1           conda-forge
  xkeyboard-config               2.40          hd590300_0           conda-forge
  xorg-kbproto                   1.0.7         h7f98852_1002        conda-forge
  xorg-libice                    1.1.1         hd590300_0           conda-forge
  xorg-libsm                     1.2.4         h7391055_0           conda-forge
  xorg-libx11                    1.8.7         h8ee46fc_0           conda-forge
  xorg-libxau                    1.0.11        hd590300_0           conda-forge
  xorg-libxdmcp                  1.1.3         h7f98852_0           conda-forge
  xorg-libxext                   1.3.4         h0b41bf4_2           conda-forge
  xorg-libxrender                0.9.11        hd590300_0           conda-forge
  xorg-renderproto               0.11.1        h7f98852_1002        conda-forge
  xorg-xextproto                 7.3.0         h0b41bf4_1003        conda-forge
  xorg-xf86vidmodeproto          2.3.1         h7f98852_1002        conda-forge
  xorg-xproto                    7.0.31        h7f98852_1007        conda-forge
  xz                             5.2.6         h166bdaf_0           conda-forge
  yaml                           0.2.5         h7f98852_2           conda-forge
  yaml-cpp                       0.8.0         h59595ed_0           conda-forge
  zeromq                         4.3.5         h59595ed_0           conda-forge
  zfp                            1.0.0         h59595ed_4           conda-forge
  zipp                           3.17.0        pyhd8ed1ab_0         conda-forge
  zlib                           1.2.13        hd590300_5           conda-forge
  zlib-ng                        2.0.7         h0b41bf4_0           conda-forge
  zstandard                      0.22.0        py310h1275a96_0      conda-forge
  zstd                           1.5.5         hfc55251_0           conda-forge

@adrinjalali
Copy link
Member Author

So it turns out the issue was that I didn't have mamba installed. I did have libmamba, but not mamba.

Not it's running, but it's been running # Locking dependencies for ubuntu_atlas for about an hour now. I'll see how long it takes before it times out or complains.

@lesteve
Copy link
Member

lesteve commented Jan 26, 2024

OK weird, IIRC ubuntu_atlas is a pip-based build and in my experience they don't take that much time to generate lock-file

@lesteve
Copy link
Member

lesteve commented Jan 26, 2024

Also Olivier added recently -v and -vv to have more information about the commands being launched that may help knowing where things get stuck maybe?

@adrinjalali
Copy link
Member Author

This build is failing with

>           warnings.warn(msg, DeprecationWarning, stacklevel=2)
E           DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
E           Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

attr       = 'bool'
msg        = '`np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this wil...recated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations'
val        = <class 'bool'>

I'm very confused as where it's coming from, and trying it locally with the same conda lock file I can't reproduce.

The complete log of the run for the record:
128.txt

@lesteve
Copy link
Member

lesteve commented Jan 29, 2024

I may have found a slightly simpler way to avoid the warning in sklearn/conftest.py. That would avoid changing too much code. I'll open an alternative PR to double-check whether that actually works. See #28305.

@adrinjalali
Copy link
Member Author

Getting a bunch of

E TypeError: data type 'Float32' not understood
E TypeError: data type 'Float64' not understood

with old numpy=1.19 from 2020 (why are we supporting that? 😁 ) on this build. Trying to figure that out.

@adrinjalali
Copy link
Member Author

@lesteve why are we missing pooch here? It's already declared a required depencency.

@lesteve
Copy link
Member

lesteve commented Jan 29, 2024

pooch does not seem to be in the lock-file for the build that errors:

❯ rg pooch build_tools/azure/pylatest_pip_openblas_pandas_linux-64_conda.lock

It probably needs to be added explicitly there, maybe this is needed for recent Scipy, not sure ... apparently for Scipy>=1.10 according to #24521

It is definitely added in some build in update_environment_and_lock_files.py

@adrinjalali
Copy link
Member Author

@lesteve would have any idea why https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=63247&view=logs&j=aabdcdc3-bb64-5414-b357-ed024fe8659e&t=b7b3ba55-d585-563b-a032-f235636c22b0 is failing here? We're a bit at a loss here, especially since your PR doesn't trigger the same issue.

@lesteve
Copy link
Member

lesteve commented Jan 30, 2024

No I don't know, I haven't followed why you needed to do the float64 change in sklearn/utils/_array_api.py but this kind of seems related maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants