https://pantsbuild.org/ logo
#development
Title
# development
b

bitter-ability-32190

07/05/2022, 4:29 PM
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

enough-analyst-54434

07/05/2022, 4:42 PM
Just checking the obvious - when you wiped those you then observed a re-build of the rust code?
h

hundreds-father-404

07/05/2022, 4:42 PM
i vaguely remember in the past having to wipe ~/.cache/pants for some reason
b

bitter-ability-32190

07/05/2022, 4:46 PM
@enough-analyst-54434 yup
Wiping now. 😢
Wiping it all gives me:
Copy code
native_engine.so: undefined symbol: PyCMethod_New
w

wide-midnight-78598

07/05/2022, 5:20 PM
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

bitter-ability-32190

07/05/2022, 5:25 PM
Doing this worked 🤔
Copy code
[python-bootstrap]
search_path = ["/usr/bin"]

[python]
interpreter_constraints = [">=3.9,<3.10"]
w

wide-midnight-78598

07/05/2022, 5:25 PM
In a
.pants.rc
?
b

bitter-ability-32190

07/05/2022, 5:26 PM
yup
@wide-midnight-78598 when you gonna
pyoxy
Pants? 😛
w

wide-midnight-78598

07/05/2022, 5:38 PM
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