witty-family-13337
02/21/2022, 9:17 AMWSDL -> Java codegen backend and I’m getting an import error when doing ./pants test src/python/pants/backend/codegen/soap:: on a fresh pull of the pants repo (well, in fact it happens when I try running any Python test using the ./pants script). The error looks like the following:
_ ERROR collecting src/python/pants/backend/codegen/soap/target_types_test.py __
ImportError while importing test module '/private/var/folders/c9/5v4gbjh17w9_vy73fc90fnch0000gn/T/process-executionF88I01/src/python/pants/backend/codegen/soap/target_types_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/python/pants/backend/codegen/soap/target_types_test.py:9: in <module>
from pants.backend.codegen.soap import target_types
src/python/pants/backend/codegen/soap/target_types.py:4: in <module>
from pants.engine.rules import collect_rules, rule
src/python/pants/engine/rules.py:28: in <module>
from pants.engine.engine_aware import SideEffecting
src/python/pants/engine/engine_aware.py:9: in <module>
from pants.engine.internals import native_engine
E ImportError: dlopen(/private/var/folders/c9/5v4gbjh17w9_vy73fc90fnch0000gn/T/process-executionF88I01/src/python/pants/engine/internals/native_engine.so, 0x0002): symbol not found in flat namespace '_PyObject_VectorcallMethod'
I did a ./cargo build and ./cargo test separately and those commands succeed … does any of know what I may be missing that causes that error?curved-television-6568
02/21/2022, 9:31 AM__init__.py files missing, or some such, maybe.. do you see the same issue on a clean checkout from main as well?witty-family-13337
02/21/2022, 10:33 AMcurved-television-6568
02/21/2022, 10:49 AM~/.cache/pants in case there’s some flunky data in there.. That will start you over from scratch. (N.b. that if you have any pantsd processes running, you need to kill them too..)curved-television-6568
02/21/2022, 10:50 AMwitty-family-13337
02/21/2022, 11:44 AMwitty-family-13337
02/21/2022, 11:44 AMpantsd processes, removed .pid and .pants.d folders, wiped cache at ~/.cache/pants and fresh cloned the repo again, then just run ./pants test src/python:: in the main branch and got the same errorswitty-family-13337
02/21/2022, 11:45 AMwitty-family-13337
02/21/2022, 11:46 AMhappy-kitchen-89482
02/21/2022, 3:38 PMhappy-kitchen-89482
02/21/2022, 3:39 PMpyenvhappy-kitchen-89482
02/21/2022, 3:39 PMhappy-kitchen-89482
02/21/2022, 3:40 PMwitty-family-13337
02/21/2022, 5:29 PMPATHwitty-family-13337
02/21/2022, 5:30 PM.pantsrc file or similar I could drop in my $HOME?curved-television-6568
02/21/2022, 5:35 PM~/.pants.rc I think.
https://github.com/pantsbuild/pants/pull/14142happy-kitchen-89482
02/21/2022, 5:56 PM--python-bootstrap-search-path="['<PYENV>']"happy-kitchen-89482
02/21/2022, 5:56 PMwitty-family-13337
02/21/2022, 7:07 PM