proud-byte-81916
03/07/2024, 3:49 PMpants package
locally and works perfectly - but when i do it as part of CD in github actions, i get this error:
There was 1 error downloading required artifacts:
1. instructor 0.6.3 from <https://files.pythonhosted.org/packages/18/0e/ef3b42adf7d9c42a389085beef864c53e125f7c93f95e6318b168dd23883/instructor-0.6.3-py3-none-any.whl>
ERROR: Package 'instructor' requires a different Python: 3.9.18 not in '<4.0,>=3.10'
i printed out the python version in the local machine and is Python 3.10.13
, in the gha runner is the same Python 3.10.13
; all CD has worked so far, so why pants thinks its python 3.9 when resolving packages? isn't it using py3.10?
(using pants 2.17.0)broad-processor-92400
03/07/2024, 6:26 PMbroad-processor-92400
03/07/2024, 6:27 PMproud-byte-81916
03/07/2024, 6:27 PMinstructor
to requirements and lockfilesproud-byte-81916
03/07/2024, 6:28 PMbroad-processor-92400
03/07/2024, 6:32 PMproud-byte-81916
03/07/2024, 6:33 PMcareful-state-48119
03/25/2024, 1:29 PMincalculable-france-51377
04/02/2024, 7:48 PMable-advantage-61346
04/02/2024, 8:12 PMpants test ::
manages to build the required pex-files, so by running pants test ::
before running pants package ::
I managed to successfully create the docker images. But I am quite sure this is not how it's supposed to be 😅