sparse-lifeguard-95737
05/03/2022, 2:31 PMrequirements.txt
I have:
numpy==1.19.5
opencv-python-headless==4.5.5.62
this works fine with vanilla pip install
, but when I run ./pants generate-lockfiles
I get the failure:
ERROR: Cannot install numpy==1.19.5 and opencv-python-headless==4.5.5.62 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit <https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies>
The conflict is caused by:
The user requested numpy==1.19.5
opencv-python-headless 4.5.5.62 depends on numpy>=1.21.2; python_version >= "3.6" and platform_system == "Darwin" and platform_machine == "arm64"
I checked the setup.py
for that version of opencv-python-headless
and confirmed that the newer numpy version is only required when running on ARM (see here). Is it a mistake that pex lockfile generation is trying to resolve a dependency for platform_machine == "arm64"
when I’m running on an intel mac? or is this the correct behavior because the lockfile is trying to support both intel and m1 macs?enough-analyst-54434
05/03/2022, 2:40 PM--style universal
lock. That means resolve for all platforms (and all Python versions implied by any relevant interpreter constraints configured in the repo).sparse-lifeguard-95737
05/03/2022, 2:40 PMenough-analyst-54434
05/03/2022, 2:41 PMenough-analyst-54434
05/03/2022, 2:42 PMhundreds-father-404
05/03/2022, 4:15 PM