unit8co / darts

A python library for user-friendly forecasting and anomaly detection on time series.
https://unit8co.github.io/darts/
Apache License 2.0
8.05k stars 875 forks source link

[BUG] #258

Closed hassanbaablaki closed 3 years ago

hassanbaablaki commented 3 years ago

Describe the bug A clear and concise description of what the bug is. I have installed darts on a dedicated conda enviroment However it seems that package darts.dataprocessing is not installed even thought used the pip install u8darts[all]

To Reproduce Steps to reproduce the behavior, preferably code snippet. conda create drt-env python=3.7 conda install -c conda-forge -c pytorch pip fbprophet pytorch cpuonly

python -c "import darts; import darts.models;print(dir(darts.models)); import darts.dataprocessing.transformers; print(dir(darts))" ['ARIMA', 'AutoARIMA', 'ExponentialSmoothing', 'FFT', 'NaiveDrift', 'NaiveMean', 'NaiveSeasonal', 'Prophet', 'RNNModel', 'StandardRegressionModel', 'TCNModel', 'Theta', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'arima', 'baselines', 'exponential_smoothing', 'fft', 'forecasting_model', 'prophet', 'regression_model', 'rnn_model', 'standard_regression_model', 'tcn_model', 'theta', 'torch_forecasting_model'] Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'darts.dataprocessing'

Expected behavior To be able to used the tansformers packager

System :

hassanbaablaki commented 3 years ago

After further research it seems that if the latest version of pythorch is installed (1.7.1) then the version 0.2.2 of darts is installed when using pip install u8darts[all]instead of the latest

When I tried to force install the version 0.5 pip install u8darts[all]=0.5.0 I go and error as it required the version 1.5.1 of pythorch instead of the latest 1.7.1

And as suggested by https://github.com/unit8co/darts/issues/235

conda install -c conda-forge -c pytorch pip fbprophet pytorch==1.5.1 cpuonly then I was able to install the latest version of pip install u8darts[all]=0.5.0

initeam commented 2 years ago

After further research it seems that if the latest version of pythorch is installed (1.7.1) then the version 0.2.2 of darts is installed when using pip install u8darts[all]instead of the latest

When I tried to force install the version 0.5 pip install u8darts[all]=0.5.0 I go and error as it required the version 1.5.1 of pythorch instead of the latest 1.7.1

And as suggested by #235

conda install -c conda-forge -c pytorch pip fbprophet pytorch==1.5.1 cpuonly then I was able to install the latest version of pip install u8darts[all]=0.5.0

A small correction Hassan ie pip install u8darts[all]==0.5.0