graalpython icon indicating copy to clipboard operation
graalpython copied to clipboard

PyModule_GetFilenameObject is missing

Open henryiii opened this issue 8 months ago • 0 comments

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 https://github.com/pybind/pybind11/pull/5584. Pybind11 is now assuming that this will be fixed in 25.0, the workaround will no longer be active then.

henryiii avatar Mar 28 '25 19:03 henryiii