pinecone.deprecated_plugins
1class DeprecatedPluginError(Exception): 2 def __init__(self, plugin_name: str) -> None: 3 message = f"The `{plugin_name}` package has been deprecated. The features from that plugin have been incorporated into the main `pinecone` package with no need for additional plugins. Please remove the `{plugin_name}` package from your dependencies to ensure you have the most up-to-date version of these features." 4 super().__init__(message) 5 6 7def check_for_deprecated_plugins(): 8 try: 9 from pinecone_plugins.inference import __installables__ # type: ignore 10 11 if __installables__ is not None: 12 raise DeprecatedPluginError("pinecone-plugin-inference") 13 except ImportError: 14 pass 15 16 try: 17 from pinecone_plugins.records import __installables__ # type: ignore 18 19 if __installables__ is not None: 20 raise DeprecatedPluginError("pinecone-plugin-records") 21 except ImportError: 22 pass
class
DeprecatedPluginError(builtins.Exception):
2class DeprecatedPluginError(Exception): 3 def __init__(self, plugin_name: str) -> None: 4 message = f"The `{plugin_name}` package has been deprecated. The features from that plugin have been incorporated into the main `pinecone` package with no need for additional plugins. Please remove the `{plugin_name}` package from your dependencies to ensure you have the most up-to-date version of these features." 5 super().__init__(message)
Common base class for all non-exit exceptions.
DeprecatedPluginError(plugin_name: str)
3 def __init__(self, plugin_name: str) -> None: 4 message = f"The `{plugin_name}` package has been deprecated. The features from that plugin have been incorporated into the main `pinecone` package with no need for additional plugins. Please remove the `{plugin_name}` package from your dependencies to ensure you have the most up-to-date version of these features." 5 super().__init__(message)
Inherited Members
- builtins.BaseException
- with_traceback
- add_note
- args
def
check_for_deprecated_plugins():
8def check_for_deprecated_plugins(): 9 try: 10 from pinecone_plugins.inference import __installables__ # type: ignore 11 12 if __installables__ is not None: 13 raise DeprecatedPluginError("pinecone-plugin-inference") 14 except ImportError: 15 pass 16 17 try: 18 from pinecone_plugins.records import __installables__ # type: ignore 19 20 if __installables__ is not None: 21 raise DeprecatedPluginError("pinecone-plugin-records") 22 except ImportError: 23 pass