Skip to content

Catboost will not install on the new version of poetry #2331

@boennecd

Description

@boennecd

Problem: Catboost will not install on the new version of poetry
catboost version: 1.1.1
Operating System: macOS (but also Linux)
CPU: Apple M1 Pro
GPU:

The following does not work with the new version of Poetry (1.4.1)

curl -sSL https://install.python-poetry.org | python3 - --version 1.4.1
cd ~
poetry new testPoetry  
cd testPoetry
poetry env use 3.9
poetry -vvv add catboost

This gives

...

• Installing catboost (1.1.1): Failed

  Stack trace:

  5  ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:272 in _execute_operation
      270│ 
      271│             try:
    → 272│                 result = self._do_execute_operation(operation)
      273│             except EnvCommandError as e:
      274│                 if e.e.returncode == -2:

  4  ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:374 in _do_execute_operation
      372│             return 0
      373│ 
    → 374│         result: int = getattr(self, f"_execute_{method}")(operation)
      375│ 
      376│         if result != 0:

  3  ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:494 in _execute_install
      492│ 
      493│     def _execute_install(self, operation: Install | Update) -> int:
    → 494│         status_code = self._install(operation)
      495│ 
      496│         self._save_url_reference(operation)

  2  ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/executor.py:552 in _install
      550│                 self._remove(operation.initial_package)
      551│ 
    → 552│             self._wheel_installer.install(archive)
      553│         finally:
      554│             if cleanup_archive:

  1  ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/wheel_installer.py:101 in install
       99│     def install(self, wheel: Path) -> None:
      100│         with WheelFile.open(wheel) as source:
    → 101│             source.validate_record()
      102│             install(
      103│                 source=source,

  _WheelFileValidationError

  ["In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/etc/jupyter/nbconfig/notebook.d/catboost-widget.json didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/package.json didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/remoteEntry.64b1a05fa8a34d8acb22.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/479.8635cb839b51b24dbe44.js.LICENSE.txt didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/908.11316378aafcadcd81b8.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/486.c2672c1c6aabd4dcb1c5.js.LICENSE.txt didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/138.594e2e2f9fae55d2125b.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/style.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/755.f7277b38a5f70148dece.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/479.8635cb839b51b24dbe44.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/486.c2672c1c6aabd4dcb1c5.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/labextensions/catboost-widget/static/755.f7277b38a5f70148dece.js.LICENSE.txt didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/nbextensions/catboost-widget/index.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.data/data/share/jupyter/nbextensions/catboost-widget/extension.js didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.dist-info/WHEEL didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.dist-info/top_level.txt didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost-1.1.1.dist-info/METADATA didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/monoforest.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/plot_helpers.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/metrics.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/version.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/text_processing.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/datasets.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/__init__.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/core.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/utils.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/_catboost.so didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/widget/__init__.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/widget/metrics_plotter.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/widget/ipythonwidget.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/widget/callbacks.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/hnsw/__init__.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/hnsw/hnsw.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/hnsw/_hnsw.so didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/catboost_evaluation.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/_fold_model.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/_readers.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/log_config.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/_splitter.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/__init__.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/execution_case.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/_fold_storage.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/factor_utils.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/utils.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/evaluation_result.py didn't match RECORD", "In /my/path/Library/Caches/pypoetry/artifacts/f0/c2/01/761d1ea5f1c7219383dc66924b24cf458e092da4c4d173f2e1739c0dc5/catboost-1.1.1-cp39-none-macosx_10_6_universal2.whl, hash / size of catboost/eval/_fold_models_handler.py didn't match RECORD"]

  at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/installer/sources.py:289 in validate_record
      285│                         f"In {self._zipfile.filename}, hash / size of {item.filename} didn't match RECORD"
      286│                     )
      287│ 
      288│         if issues:
    → 289│             raise _WheelFileValidationError(issues)
      290│ 
      291│     def get_contents(self) -> Iterator[WheelContentElement]:
      292│         """Sequential access to all contents of the wheel (including dist-info files).

See the issue here python-poetry/poetry#7692

I think it might be traced back to python-poetry/poetry#7671

There might be an easy fix python-poetry/poetry#7692 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions