Fleyderer / pyrssa

Python package for Singular Spectrum Analysis
https://fleyderer.github.io/pyrssa/
MIT License
4 stars 0 forks source link

import pyrssa as prs not loading correctly. #1

Open bginvestor opened 7 months ago

bginvestor commented 7 months ago

Successfully installed 1.0.10 as shown below, but "import pyrssa as prs" is not loading correctly.

image

However, I'm getting a missing file calc_v.rst. Actually, looks like a couple of folders is missing from the pyrssa folder. Please help. Thanks

image

image

Fleyderer commented 7 months ago

Hello, bginvestor! Thank you for sending issue, I will check doc files soon, maybe i didn't add them in config.

Btw, now you can use previous versions of pyrssa, 1.0.9 or 1.0.8, with almost the same functionality, and i will close issue right after finding a solution.

Fleyderer commented 7 months ago

I could reproduce this error on my device and fix it, sorry for problems, i didn't check package data properly.

You can uninstall pyrssa and install latest version again, I've published fix in 1.0.11. Please reply below if this solved your problem.

bginvestor commented 7 months ago

Hi Michael,

Thanks for the quick response. Greatly appreciated! I am running into one more issue.

You can see that I have 1.0.11 installed correctly.

image

However, using Python 3.12.0 w/ IDLE, I'm getting a unicodedecoderror. Do I need to run an older version? Looking forwarding to working w/ pyrssa. Thank you!

image

Fleyderer commented 7 months ago

Try to insert encoding="utf8" inside open(file_path) in docs.py line 20, like in this solution

This is well-known codec problem, I will fix it in further versions (didn't face this problem with Python 3.6+, looks a bit strange for me)

bginvestor commented 7 months ago

Hi, yes, this fixes, and I'm now able to load "import pyrssa as prs". You can close this issue.

However, I have one followup question for the following line in example.ipynb.

ts_rfor = prs.rforecast(ts_ssa, groups={"Signal": range(1, 6)}, length = for_length)

This line executes but doesn't provide the data series w/ 'Signal' attribute; hence , it doesn't plot the forecast curve correctly. Is this due to a more recent version of Python? Thank you, and Happy Thanksgiving!!

image