melodic-tent-92572
09/23/2022, 9:29 PMBootstrapping Pants using /Users/anoopmishra/miniconda3/bin/python3.9
Creating the virtualenv PEX.
Downloading the Pex PEX.
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.62/pex> verified.
Installing pantsbuild.pants==2.13.0 into a virtual environment at /Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39
New virtual environment successfully created at /Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39.
Traceback (most recent call last):
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/bin/pants", line 5, in <module>
from pants.bin.pants_loader import main
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/pants/bin/pants_loader.py", line 19, in <module>
from pants.bin.pants_runner import PantsRunner
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/pants/bin/pants_runner.py", line 11, in <module>
from pants.base.exception_sink import ExceptionSink
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/pants/base/exception_sink.py", line 16, in <module>
import psutil
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/psutil/__init__.py", line 123, in <module>
from . import _psosx as _psplatform
File "/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/psutil/_psosx.py", line 14, in <module>
from . import _psutil_osx as cext
ImportError: dlopen(/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/psutil/_psutil_osx.cpython-39-darwin.so, 0x0002): tried: '/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/psutil/_psutil_osx.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_psutil_osx.cpython-39-darwin.so' (no such file), '/usr/lib/_psutil_osx.cpython-39-darwin.so' (no such file), '/Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/pants.iUu4Nv/install/lib/python3.9/site-packages/psutil/_psutil_osx.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/_psutil_osx.cpython-39-darwin.so' (no such file), '/usr/lib/_psutil_osx.cpython-39-darwin.so' (no such file)
melodic-tent-92572
09/23/2022, 9:33 PMhappy-kitchen-89482
09/23/2022, 11:21 PMhappy-kitchen-89482
09/23/2022, 11:21 PMhappy-kitchen-89482
09/23/2022, 11:23 PMfile /Users/anoopmishra/.cache/pants/setup/bootstrap-Darwin-arm64/2.13.0_py39/lib/python3.9/site-packages/psutil/_psutil_osx.cpython-39-darwin.so
show?happy-kitchen-89482
09/23/2022, 11:27 PMhappy-kitchen-89482
09/23/2022, 11:28 PMhappy-kitchen-89482
09/23/2022, 11:29 PMhappy-kitchen-89482
09/23/2022, 11:30 PMfile path/to/bin/python
busy-vase-39202
09/23/2022, 11:32 PMrough-vase-83553
09/23/2022, 11:35 PMmodule_mappings
though. I'm getting errors trying to resolve packages like yaml click, and six even with a module mapping. Not to mention the default module mapping should already cover the YAML case. I'll investigate it later but I've been seeing this for a while.happy-kitchen-89482
09/23/2022, 11:43 PMhappy-kitchen-89482
09/23/2022, 11:43 PMrhythmic-battery-45198
09/24/2022, 1:40 AMbumpy-spoon-55438
09/24/2022, 3:26 AMfile
on the cpython-39-darwin.so
file it's x86_64 but i never see this issue on my m1 under arm64 modebumpy-spoon-55438
09/24/2022, 3:34 AMnice-florist-55958
09/24/2022, 6:40 PMworried-painter-31382
09/24/2022, 8:25 PMcareful-address-89803
09/25/2022, 2:04 AMrough-vase-83553
09/25/2022, 2:26 AMpants check
with MyPy. Lockfile generation is fine. I'll see if I can reconstruct a simple reprohappy-kitchen-89482
09/25/2022, 4:33 AMhappy-kitchen-89482
09/25/2022, 4:34 AM./pants dependencies path/to/test.py
?happy-kitchen-89482
09/25/2022, 4:34 AM./pants roots
careful-address-89803
09/25/2022, 4:52 AM-ldebug
only gave a single line for the process.happy-kitchen-89482
09/25/2022, 5:49 AM-ldebug
happy-kitchen-89482
09/25/2022, 5:49 AM-ltrace
?bitter-ability-32190
09/25/2022, 3:02 PMcareful-address-89803
09/25/2022, 4:31 PM-ldebug
and -ltrace
didn't add anything, just progress notifications. Manually running dependency_parser_py does resolve the import correctly, so I think it's afterward that it gets dropped.rough-vase-83553
09/25/2022, 11:19 PMrough-vase-83553
09/25/2022, 11:20 PM