Skip to content

Python 3.13.2 #53

@mcourteaux

Description

@mcourteaux

When trying pip install powershap, it installs version 0.0.1 for me. It somehow thinks that the only possible powershap version that can run on python 3.13.2 is powershap version 0.0.1. Explicitly telling it to install 0.0.11 reveals the issue:

pythonenv ❯ pip install "powershap==0.0.11"
ERROR: Ignored the following versions that require a different python version: 0.0.11 Requires-Python <=3.12,>=3.9; 0.0.2 Requires-Python >=3.8,<3.11; 0.0.3 Requires-Python >=3.8,<3.11; 0.0.4 Requires-Python >=3.7,<3.11; 0.0.5 Requires-Python >=3.7,<3.11; 0.0.5.1 Requires-Python >=3.7.1,<3.10; 0.0.6 Requires-Python >=3.7,<3.10; 0.0.7 Requires-Python >=3.7,<3.10; 0.0.7.1 Requires-Python >=3.7,<3.10; 0.0.8 Requires-Python >=3.7.1,<3.11; 0.0.8rc1 Requires-Python >=3.8,<3.10; 0.0.8rc2 Requires-Python >=3.7.1,<3.10; 0.0.9 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement powershap==0.0.11 (from versions: 0.0.1)

To clear this issue in the future, you should probably delete v0.0.1 from pypi or re-release v0.0.1 with a python version upper bound as well.

Temporary workaround: pass --ignore-requires-python to pip, however, I get then error:

pythonenv ❯ pip install "powershap==0.0.11" --ignore-requires-python
Collecting powershap==0.0.11
  Downloading powershap-0.0.11-py3-none-any.whl.metadata (6.3 kB)
Collecting catboost<2.0.0,>=1.0.5 (from powershap==0.0.11)
  Downloading catboost-1.2.7.tar.gz (71.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.5/71.5 MB 16.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      Traceback (most recent call last):
        File "/home/martijn/pythonenv/lib64/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "/home/martijn/pythonenv/lib64/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/martijn/pythonenv/lib64/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-ey38_wv3/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-ey38_wv3/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-ey38_wv3/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-ey38_wv3/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 733, in <module>
        File "<string>", line 205, in get_catboost_version
      KeyError: 'VERSION'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions