swift-river-73520
05/31/2023, 9:58 PMImportError: dlopen(/Users/zach/.cache/pants/named_caches/pex_root/venvs/s/5e00d369/venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so, 0x0002): tried: '/Users/zach/.cache/pants/named_caches/pex_root/venvs/s/5e00d369/venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zach/.cache/pants/named_caches/pex_root/venvs/s/5e00d369/venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (no such file), '/Users/zach/.cache/pants/named_caches/pex_root/venvs/s/5e00d369/venv/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Users/zach/.cache/pants/named_caches/pex_root/venvs/f0f601382409fe9e35378773ff1ec5df7ceeb1a9/b21965ad1b3cb7aee0410c57d55dd2fd6abe1937/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zach/.cache/pants/named_caches/pex_root/venvs/f0f601382409fe9e35378773ff1ec5df7ceeb1a9/b21965ad1b3cb7aee0410c57d55dd2fd6abe1937/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (no such file), '/Users/zach/.cache/pants/named_caches/pex_root/venvs/f0f601382409fe9e35378773ff1ec5df7ceeb1a9/b21965ad1b3cb7aee0410c57d55dd2fd6abe1937/lib/python3.8/site-packages/pandas/_libs/interval.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
I tried pointing to a local environment to try to force pants to pick up the arm64
version of the wheel, which the BUILD file I'm testing points to:
local_environment(
name="local_arm64",
compatible_platforms=["macos_arm64"]
)
this fails with the same issue. I've also tried pointing to a x86_64
docker container environment, but the performance is incredibly slow - unacceptably so for local testing (upwards of 10 minutes to build the pex file to run a test). In my previous stab at this I was able to run tests without pointing to any environment and it "just worked". Anyone have any tips for running tests that rely on Pandas from a Mac M1? Pants 2.15.0 if that's importantenough-analyst-54434
05/31/2023, 10:08 PM/Users/zach/.cache/pants/named_caches/pex_root/venvs/f0f601382409fe9e35378773ff1ec5df7ceeb1a9/b21965ad1b3cb7aee0410c57d55dd2fd6abe1937/bin
venv bin dir and see where its Python is coming from on the system.
More vaguely; I thought it was "well known" M1 machines ~only work with Python 3.9+ for arm mode. I am not a Mac user so I'm just parroting there and handwaving.swift-river-73520
05/31/2023, 11:24 PMenough-analyst-54434
05/31/2023, 11:31 PMswift-river-73520
05/31/2023, 11:36 PMbroad-processor-92400
06/01/2023, 1:54 AMpants.toml
BUILD
and an import pandas
in a python file)?
Reference point: We use pants 2.15 + pandas 1.4.2 natively on macOSswift-river-73520
06/01/2023, 6:47 PMpandas<2.0.0
, and it looks like it was reaching all the way back to pandas==1.3.2
. I changed it to pandas<2.0.0,>=1.4.2
and I am now successfully onto a new and more exciting error (exciting being something I know how to fix). Thank you!