seeing this error on latest main branch: `ImportEr...
# development
p
seeing this error on latest main branch:
ImportError: dlopen(/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/internals/native_engine.so, 2): Symbol not found: _PyObject_VectorcallMethod
full stack trace:
Copy code
āžœ  pants git:(master) ./build-support/bin/generate_all_lockfiles.sh
15:02:13.17 [INFO] Initializing scheduler...
15:02:14.26 [INFO] Scheduler initialized.
15:02:15.71 [INFO] View on BuildSense: <https://app.toolchain.com/organizations/pantsbuild/repos/pants/builds/pants_run_2021_12_14_15_02_14_411_d0fe17af92054dfe98912f78c82cfa62/>
Traceback (most recent call last):
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 476, in execute
    exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
    return runner(*args)
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
    return runner(*args)
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 532, in _execute
    return self.execute_entry(self._pex_info.entry_point)
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 679, in execute_entry
    return self.execute_module(entry_point, alter_sys)
  File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/d96c2d25ec9538f7e2395fef01ffd6fae4919511/.bootstrap/pex/pex.py", line 691, in execute_module
    runpy.run_module(module_name, run_name="__main__", alter_sys=alter_sys)
  File "/Users/asher/.pyenv/versions/3.7.4/lib/python3.7/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/Users/asher/.pyenv/versions/3.7.4/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/Users/asher/.pyenv/versions/3.7.4/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/build-support/bin/_generate_all_lockfiles_helper.py", line 14, in <module>
    from pants.backend.codegen.protobuf.python.python_protobuf_subsystem import PythonProtobufMypyPlugin
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/backend/codegen/protobuf/python/python_protobuf_subsystem.py", line 6, in <module>
    from pants.backend.codegen.protobuf.target_types import ProtobufDependenciesField
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/backend/codegen/protobuf/target_types.py", line 4, in <module>
    from pants.backend.codegen.protobuf.protoc import Protoc
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/backend/codegen/protobuf/protoc.py", line 6, in <module>
    from pants.core.util_rules.external_tool import TemplatedExternalTool
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/core/util_rules/external_tool.py", line 16, in <module>
    from pants.core.util_rules import archive
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/core/util_rules/archive.py", line 11, in <module>
    from pants.engine.fs import CreateDigest, Digest, Directory, MergeDigests, RemovePrefix, Snapshot
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/fs.py", line 13, in <module>
    from pants.engine.engine_aware import SideEffecting
  File "/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/engine_aware.py", line 9, in <module>
    from pants.engine.internals import native_engine
ImportError: dlopen(/Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/internals/native_engine.so, 2): Symbol not found: _PyObject_VectorcallMethod
  Referenced from: /Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/internals/native_engine.so
  Expected in: flat namespace
 in /Users/asher/projects/pants/.pants.d/tmp4vt8gt90/src/python/pants/engine/internals/native_engine.so
āžœ  pants git:(master)
this seems to happen only on macos. works fine on Ubuntu.