ripe-gold-45940
07/04/2024, 3:08 AMModuleNotFoundError: No module named 'pants.engine.internals.native_engine'.
After a bunch of debugging, discovered that it was because native_engine.so was not present in the sandbox (only native_engine.so.metadata was). I preserved the sandbox, ran the import within it, and indeed it failed. I copied over my pants cache native_engine.so into the sandbox, and then the import worked.
internals/BUILD has the correct dependency overrides. I tried busting my entire pants cache, `rm`’ing native_engine.so, nothing helped.
I’ll continue looking at this, but was wondering if anyone had already seen this happen and had a suspicion off the bat. Why isn’t native_engine.so being included in the sandbox? This issue doesn’t happen in CI. I have an M1. This happens on main as well.happy-kitchen-89482
07/04/2024, 4:33 PMripe-gold-45940
07/04/2024, 4:51 PMhappy-kitchen-89482
07/05/2024, 8:37 AM