Closed aisk closed 9 months ago
According to sys.meta_path's document:
Changed in version 3.4: Module specs were introduced in Python 3.4, by PEP 451. Earlier versions of Python looked for a method called find_module(). This is still called as a fallback if a meta_path entry doesn’t have a find_spec() method.
thriftpy is using find_module and this is removed in https://github.com/python/cpython/issues/98040, so import hook does not work in Python 3.12
find_module
update Dependencies or review PEPs?
According to sys.meta_path's document:
thriftpy is using
find_module
and this is removed in https://github.com/python/cpython/issues/98040, so import hook does not work in Python 3.12