Hey there! Question about how to use `pants repl`....
# general
f
Hey there! Question about how to use
pants repl
. If I understand correctly, this should let me open an interpreter where I can load the modules defined in my project. If I call it without targets, they are not there, but if I call it like
pants repl ::
, I get stuff like
Copy code
But this pex had no ProjectName(raw='pytest', normalized='pytest') distributions.
when it tries to figure out the external dependencies. Any extra config I should give it?
b
Sorry for the trouble. That looks like a subset of the error message. Can you share the full error? It would also help to know more about your configuration: • preferably, a standalone repository or example that we can run to see the same problem • if not, at least share your
pants.toml
Thanks
f
oh man
I'm just seeing this
🤦
sorry for the (extreme) delay
I don't have a minimal example to reproduce
and the pants.toml has a lot of adhoc config
but it was mostly a question of how am I meant to run it
b
Its hard to answer that question without knowing what the error your seeing is and understanding the problem there. For instance, running
pants repl ::
in https://github.com/pantsbuild/example-python seems to work fine, so that's a perfectly fine way to run it in some circumstances, but apparently not yours!
f
so, I'm able to run it in some parts of the project, but not others šŸ˜… (e.g. if I do
pants repl some_app/::
)
I have no clue what's the difference with the others, if I have time I'll try to build an MRE to share with you guys, unfortunately the overall codebase is not public šŸ˜•