-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"dyld: Library not loaded: /lib/libpython3.13.dylib" in 3.13.0a4 MacOS non-framework build with custom prefix #115737
Comments
How can we reproduce this? In particular, what is the command-line for configure and any additional customization of the build process? |
From a quick look at the linked pyenv issue, it looks like this may be related to the changes for iOS frameworks builds (gh-114099). @freakboy3742? |
I'd still like to know how to reproduce this without having to hunt through the pyenv GitHub. The linked issue seems to use |
@ned-deily As with @ronaldoussoren, I'm trying to work out what the reproduction instructions are... I'll dig in and see if I can reverse engineer the problem. |
Attached a Bash trace log from the Pyenv invocation which contains configure/make calls and ennvar assignments. That's what I usually use to diagnose Pyenv issues. Setting rpaths is required in MacOS to find dylibs outside of the default search path -- in Homebrew and under the custom installation prefix. |
@native-api Thanks for that detail - based on that, I've been able work out the reproduction case is:
|
FWIW: it looks like the problem slipped in because while I did test non-framework builds, and non-framework builds in a non-default location, I didn't check a shared (i.e. , |
Sorry, I should have thought to suggest testing that one as well originally. I generally avoid |
We have enabled |
To be sure, there's nothing inherently bad about using I've commented on the PR on how we can simplify the proposed fix. That said, I stumbled across another potential problem here with
Now it turns out that specifying that value for |
Thanks for the report and the followup info. The simplified fix is merged into main for release in 3.13.0a5. |
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…d library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
…ed library builds. (pythongh-115750)
Bug report
Bug description:
The above error was discovered in Pyenv CI check (logs are on the link).
See pyenv/pyenv#2903 (comment) for diagnostics and probable cause.
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: