<#18981 pants does not find a wheel> New discussio...
# github-notifications
c
#18981 pants does not find a wheel New discussion created by jessehersch Hi pants experts! I am running into a problem running tests for a python service when it tries to find a wheel that the service depends on. I am running pants 2.15.0, so not super-old but not completely fresh. python version is 3.11.3 This is my full command and the error:
Copy code
PANTS_TOML=pants2-3.11.toml ./pants2 --pants-workdir=$PWD/.python_next.pants.d --pants-config-files="['$PWD/pants2-3.11.toml']" --tag=-integration --print-stacktrace -ldebug test services/satellite-services/ephemeris:

<SNIP>

18:48:42.75 [DEBUG] Completed: pants.backend.python.goals.pytest_runner.setup_pytest_for_target
18:48:42.75 [DEBUG] Completed: pants.backend.python.goals.pytest_runner.setup_pytest_for_target
18:48:42.75 [DEBUG] Completed: pants.backend.python.goals.pytest_runner.setup_pytest_for_target
18:48:42.75 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
    ..
  in pants.core.goals.test.run_tests
    `test` goal
  in pants.backend.python.goals.pytest_runner.run_python_tests
    Run Pytest - services/satellite-services/ephemeris/tests_ephemeris/lunar_positions/test_auto_compute.py:../../test
  in pants.backend.python.goals.pytest_runner.setup_pytest_for_target
    ..
  in pants.backend.python.util_rules.pex.create_venv_pex
    ..
  in pants.backend.python.util_rules.pex.build_pex
    ..
  in pants.engine.process.fallible_to_exec_result_or_raise
    ..

Traceback (most recent call last):
  File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/2.15.0_py37/lib/python3.7/site-packages/pants/engine/process.py", line 294, in fallible_to_exec_result_or_raise
    keep_sandboxes=keep_sandboxes,
pants.engine.process.ProcessExecutionFailure: Process 'Building pytest_runner.pex' failed with exit code 1.
stdout:

stderr:
A distribution for orekit could not be resolved for /usr/local/bin/python3.11.
Found 1 distribution for orekit that do not apply:
1.) The wheel tags for orekit 10.3.1 are cp311-none-any which do not match the supported tags of /usr/local/bin/python3.11:
cp311-cp311-manylinux_2_28_x86_64
... 712 more ...
The wheel directory is 3rdparty/repos and has these contents:
Copy code
root@DT6174:/code# ls -al 3rdparty/repos/orekit*
-rw-rw-r-- 1 1000 1000 21093920 May 11 17:47 3rdparty/repos/orekit-10.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
-rw-rw-r-- 1 1000 1000 21093905 May 11 17:25 3rdparty/repos/orekit-10.3.1-cp311-none-any.whl
I am confused because I put versions of same wheel (produced by using
wheel tag
command) that are referenced in the error, but the error still pops. Thanks! Jesse pantsbuild/pants