Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
567 stars 90 forks source link

import hook does not work with Python3.12 #229

Closed aisk closed 9 months ago

aisk commented 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

ookice commented 9 months ago

update Dependencies or review PEPs?