When trying to import a darts atribute using the line
from darts import TimeSeries, concatenate
i get the error message
AttributeError: module 'pandas._typing' has no attribute 'FilePathOrBuffer'
Is there a fix for this?
Versions of what I’m using:
pandas
1.5.2- Windows 10 64-bit, ver 21H2
- Python 3.9.13
darts
ver 0.16.0
Advertisement
Answer
Like yourself, running Windows 10 64-bit, using a sufficiently up to date copy of Python 3.9 (I’m using 3.9.13), if I do the following:
virtualenv test_env testenvScriptsactivate pip install pandas pip install darts
This installs a large number of dependencies for darts
and takes several minutes to complete, without errors or warnings.
The installed version of pandas
after this is 1.5.2
and the installed version of darts
is 0.22.0
. (it’s unclear why yours would be 0.16.0
)
I can then run the following using Python:
from darts import TimeSeries, concatenate
And I get no error message. The error you’re reporting cannot be reproduced using current and up to date versions of the packages you mentioned.
Why exactly do you have a reliance upon darts
version 0.16.0
specifically?