graalpython
graalpython copied to clipboard
PyModule_GetFilenameObject is missing
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.