I'm trying to use py 3.9 for pants running in-repo...
# development
b
I'm trying to use py 3.9 for pants running in-repo. I'm getting
native_engine.so: undefined symbol: PyObject_VectorcallMethod
. I tried wiping that
.so
as well as
src/rust/engine/target
no dice Using
PY=python3.9 ./pants ...
e
Just checking the obvious - when you wiped those you then observed a re-build of the rust code?
h
i vaguely remember in the past having to wipe ~/.cache/pants for some reason
b
@enough-analyst-54434 yup
Wiping now. 😢
Wiping it all gives me:
Copy code
native_engine.so: undefined symbol: PyCMethod_New
w
When I ran into this problem while using RuleRunner, it turned out that pants was grabbing the wrong python install - sometimes. Specifically, it was grabbing a python install in my xcode directory - had the same set of problems
b
Doing this worked 🤔
Copy code
[python-bootstrap]
search_path = ["/usr/bin"]

[python]
interpreter_constraints = [">=3.9,<3.10"]
w
In a
.pants.rc
?
b
yup
@wide-midnight-78598 when you gonna
pyoxy
Pants? 😛
w
I've been looking briefly into some of the new PyOx tools that have come out, trying to figure out what could be appropriate - but I think we're waiting on a couple fixes inside the tool
2