Skip to content

[Upgrade to SWIG 4.4] DeprecationWarning: builtin type has no __module__ attribute #4481

@founder-investwise

Description

@founder-investwise

When using faiss-cpu with Python 3.12, there are deprecation warnings from SWIG about builtin types not having module attributes:

<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type swigvarlink has no __module__ attribute

This is a known issue in SWIG being tracked in swig/swig#2881. The warnings appear because SWIG is not setting the module attribute on its builtin types.

Once SWIG 4.4 is released with the fix, faiss should update to use the newer SWIG version to resolve these warnings.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    1.14.0

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions