Closed fjoanr closed 1 year ago
Same issue. However, installing the versions you mentionned above didn't work for me. I'm encountering the following error :
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
[<ipython-input-24-abedefbcf2f7>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from statsforecast import StatsForecast
14 frames
[/usr/local/lib/python3.10/dist-packages/typing_extensions.py](https://localhost:8080/#) in _check_generic(cls, parameters, elen)
107 if (num_tv_tuples > 0) and (alen >= elen - num_tv_tuples):
108 return
--> 109 raise TypeError(f"Too {'many' if alen > elen else 'few'} parameters for {cls};"
110 f" actual {alen}, expected {elen}")
111
TypeError: Too few parameters for <class 'triad.utils.pandas_like.PandasLikeUtils'>; actual 1, expected 2
Following.
Thanks @fjoanr, updating with
pip install --upgrade triad==0.8.8
pip install --upgrade qpd==0.4.1
fixed the issue for me!
Hi @pablorodriper @Cheergui @fjoanr ,
TLDR: Installing the latest versions will work. I will close this, but feel free to re-open if you find anything.
Sorry about this. This was a Fugue issue.
We had a bad release of an underlying package in Fugue called qpd. We immediately yanked the release but I think pip would install the old one if you haf a cache. Anyway, we resolved these (within the next day, but I just saw this issue now). More details can be found here if you are interested.
If you simply do:
pip install -U statsforecast
It may not get the latest versions of dependencies if statsforecast is not upgraded. So you can install the two packages independently.
pip install -U triad qpd
What happened + What you expected to happen
When installing the package from scratch, an error is raised when importing the base class from your library:
which results in
I managed to fix the issue by doing the following after installing
statsforecast
:You might want to either check your repository to solve the issue, or tighten the dependencies to more strict versions.
Versions / Dependencies
latest version, Python 3.10
Reproduction script
Check in description - simple issue caused due to release of a dependency here
Issue Severity
Medium: It is a significant difficulty but I can work around it.