Skip to content
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

PyModule_GetFilenameObject is missing #488

Closed
henryiii opened this issue Mar 28, 2025 · 0 comments
Closed

PyModule_GetFilenameObject is missing #488

henryiii opened this issue Mar 28, 2025 · 0 comments
Assignees

Comments

@henryiii
Copy link

PyModule_GetFilenameObject is not implemented in GraalPy, it seems. There is the older and deprecated PyModule_GetFilename (both are part of the Stable ABI), as well, I didn't check this one.

pybind11 is working around this by manually accessing __file__ for GraalPy < 25. See pybind/pybind11#5584. Pybind11 is now assuming that this will be fixed in 25.0, the workaround will no longer be active then.

@msimacek msimacek self-assigned this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants