full-window-78652
02/20/2025, 1:07 AMFailed to resolve compatible artifacts from lock data_sci.lock for 1 target:
1. /usr/local/bin/python3.10:
Failed to resolve all requirements for cp310-cp310-manylinux_2_31_x86_64 interpreter at /usr/local/bin/python3.10 from data_sci.lock:
Configured with:
build: True
use_wheel: True
Dependency on openpyxl (via: openpyxl>=3.1.5) not satisfied, no candidates found.
The build files for src/ and tests/ directories both have dependencies set for openpyxl
dependencies=[
...
"//:data_sci#openpyxl",
],
What we have tried:
• Downgrading openpyxl version
• Looking through threads in this slack with similar errors - didn't find any clear solutions
EDIT: The fix for this was generating lockfiles in the CI, instead of relying on lockfiles generated locally. We had time-out issues with generating lockfiles in CI before, so I'm not sure why it worked this time, but seems to be the solution for now.wide-midnight-78598
02/20/2025, 1:14 AMfull-window-78652
02/20/2025, 1:26 AMpython:3.10-slim
• Locally I am using Ubuntu 22.04.5 LTS with Python 3.10.12
• Note: This pipeline has succeeded before, but failed when I added commit to add in integration test and added openpyxl dependency to BUILD files
• Another dev uses Mac locally and gets a similar CI error for a different package on another branchwide-midnight-78598
02/20/2025, 1:28 AMfull-window-78652
02/20/2025, 1:32 AMcomplete_platforms for projects with Docker builds to solve issue with Mac builds, but I was assuming that wouldn't help as you say because we are just testing
However, I do see that Pants does seem to be building some pex files
22:19:08.21 [INFO] Starting: Building 1 requirement for requirements.pex from the data_sci.lock resolve: pytest>=8.0.1
22:19:08.28 [INFO] Canceled: Building pytest.pex from <resource://pants.backend.python.subsystems/pytest.lock>
so I can try using complete_platforms in case that helps Pants do its job?full-window-78652
02/20/2025, 1:36 AMcomplete_platforms for python_test_utils or python_sources targets - unless I added an unused pex_binary target 🤔wide-midnight-78598
02/20/2025, 1:59 AMfull-window-78652
02/20/2025, 3:11 AMwide-midnight-78598
02/20/2025, 3:13 AMfull-window-78652
02/21/2025, 5:46 PM