functime-org / functime

Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.

Home Page:https://docs.functime.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeprecationWarning: `_get_shared_lib_location` is deprecated

khrapovs opened this issue · comments

Describe the bug

functime/feature_extractors.py:36: DeprecationWarning: `_get_shared_lib_location` is deprecated. It will be removed in the next breaking release. The new `register_plugin_function` function has this functionality built in. Use `from polars.plugins import register_plugin_function` to import that function. Check the user guide for the currently-recommended way to register a plugin: https://docs.pola.rs/user-guide/expressions/plugins
    lib = _get_shared_lib_location(__file__)

To Reproduce

File functime_test.py

from functime.feature_extractors import FeatureExtractor

In terminal:

pytest functime_test.py

Expected behavior

No DeprecationWarning is reported.

Desktop (please complete the following information):

  • MacOSX 14.5
  • Python 3.12.2
  • functime==0.9.5

Ciao @khrapovs, and thank you very much for your thorough reports. I had originally and hastily written this down here #194 (which I am closing). I would like to address this but I don't know where to start (invoking our Plugin lord @mgorelli).

PRs are welcome!