You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to pybind11-stubgen 3.0.0, the generated .pyi files include import paths like: from openvino_genai.py_openvino_genai.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 import get_version instead of from openvino_genai.py_openvino_genai import get_version. The former import is invalid because it would fail with ModuleNotFoundError: No module named 'openvino_genai.py_openvino_genai.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1'; 'openvino_genai.py_openvino_genai' is not a package while the latter import passes.
The actual module is a compiled extension (py_openvino_genai), not a package, and the ABI-specific suffix is not part of any importable Python path. Even when I bind the function using a named global function with explicit casting, the stub generator still traces it through the ABI-mangled symbol.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
After upgrading to pybind11-stubgen 3.0.0, the generated .pyi files include import paths like:
from openvino_genai.py_openvino_genai.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1 import get_version
instead offrom openvino_genai.py_openvino_genai import get_version
. The former import is invalid because it would fail withModuleNotFoundError: No module named 'openvino_genai.py_openvino_genai.pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1'; 'openvino_genai.py_openvino_genai' is not a package
while the latter import passes.The actual module is a compiled extension (py_openvino_genai), not a package, and the ABI-specific suffix is not part of any importable Python path. Even when I bind the function using a named global function with explicit casting, the stub generator still traces it through the ABI-mangled symbol.
Is there a recommendation to deal with that?
Beta Was this translation helpful? Give feedback.
All reactions