AbdullahO / tspdb

tspdb: Time Series Predict DB
Apache License 2.0
185 stars 57 forks source link

name 'plpy' is not defined #23

Open 330305020 opened 2 years ago

330305020 commented 2 years ago

Hi,

I'm practicing the "tspDB example-Single time Series (Synthetic data).ipynb" in jupyter notebook. When creating prediction index, I have the error: name 'plpy' is not defined.

error is below: NameError: name 'plpy' is not defined CONTEXT: Traceback (most recent call last): PL/Python function "create_pindex", line 2, in from tspdb.src.pindex.predict import get_prediction_range, get_prediction PL/Python function "create_pindex", line 2, in PL/Python function "create_pindex" error

But if I execute "select create_pindex('synth_data', 'time','{"ts_7"}','pindex', k =>4);" in PostgreSQL via dbeaver, it can be executed successfully.

How to solve it? Thank you very much.