cargo builds pyo3 bin with prefix /install, how to update? #5056
Unanswered
ClementWalter
asked this question in
Questions
Replies: 1 comment
-
|
Did you resolve this problem? I met the same thing. I build my program on github ci and download it to local machine. When I execute it, it throws: I think these msg should be determined at runtime, not compiling time? But it seems that th binary artifacts could only be executed on local machine🤦 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried to set either PYO3_CROSS_LIB_DIR, PYO3_PYTHON, both from terminal or in my build.rs but I keep having this
/installas prefix everywhere and consequently my bin not working.I'm using
uv.my builds.rs looks like
when I run
PYO3_PRINT_CONFIG=1 cargo b -p keth-runI seeso here I already see this
/installand I don't know where it comes from.once built, using
otoolsI seeif then I try to run, it fails
if I export the DYLD path
export DYLD_LIBRARY_PATH=$HOME/.local/share/uv/python/cpython-3.10.15-macos-aarch64-none/libit actually starts but raises and again I see all these
/installprefixesBeta Was this translation helpful? Give feedback.
All reactions