Nixtla / neuralforecast

Scalable and user friendly neural :brain: forecasting algorithms.
https://nixtlaverse.nixtla.io/neuralforecast
Apache License 2.0
2.94k stars 338 forks source link

Exception: Could not deserialize ATN with version  (expected 4). #731

Closed TDL77 closed 1 year ago

TDL77 commented 1 year ago

What happened + What you expected to happen

mamba install neuralforecast and pip install neuralforecast , get same errore

Stacktrace ``` Exception: Could not deserialize ATN with version  (expected 4). --------------------------------------------------------------------------- Exception Traceback (most recent call last) Cell In[1], line 3 1 import mlforecast 2 import statsforecast ----> 3 import neuralforecast 4 import torch 6 # посмотрим на версии пакетов File [c:\Users\admin\mambaforge\envs\statsforecast\lib\site-packages\neuralforecast\__init__.py:3](file:///C:/Users/admin/mambaforge/envs/statsforecast/lib/site-packages/neuralforecast/__init__.py:3) 1 __version__ = "1.6.2" 2 __all__ = ['NeuralForecast'] ----> 3 from .core import NeuralForecast File [c:\Users\admin\mambaforge\envs\statsforecast\lib\site-packages\neuralforecast\core.py:17](file:///C:/Users/admin/mambaforge/envs/statsforecast/lib/site-packages/neuralforecast/core.py:17) 14 import numpy as np 15 import pandas as pd ---> 17 from .tsdataset import TimeSeriesDataset 18 from neuralforecast.models import ( 19 GRU, 20 LSTM, (...) 35 PatchTST, 36 ) 38 # %% ../nbs/core.ipynb 5 ... 48 version = self.readInt() 49 if version != SERIALIZED_VERSION: ---> 50 raise Exception("Could not deserialize ATN with version " + str(version) + " (expected " + str(SERIALIZED_VERSION) + ").") Exception: Could not deserialize ATN with version  (expected 4). ```

Versions / Dependencies

Environment ``` name: statsforecast channels: - pytorch - defaults - conda-forge dependencies: - _py-xgboost-mutex=2.0=cpu_0 - absl-py=1.4.0=pyhd8ed1ab_0 - adagio=0.2.4=py310haa95532_0 - aiohttp=3.8.4=py310h8d17308_1 - aiohttp-cors=0.7.0=pyhd3eb1b0_0 - aiosignal=1.3.1=pyhd8ed1ab_0 - alembic=1.9.4=pyhd8ed1ab_0 - ansi2html=1.8.0=py310haa95532_0 - ansicon=1.89.0=py310h5588dad_6 - antlr4-python3-runtime=4.11.1=py310haa95532_0 - appdirs=1.4.4=pyhd3eb1b0_0 - arrow-cpp=11.0.0=h2d54704_30_cpu - asttokens=2.2.1=pyhd8ed1ab_0 - async-timeout=4.0.2=pyhd8ed1ab_0 - attrs=23.1.0=pyh71513ae_1 - aws-c-auth=0.7.0=h6f3c987_2 - aws-c-cal=0.6.0=h6ba3258_0 - aws-c-common=0.8.23=hcfcfb64_0 - aws-c-compression=0.2.17=h420beca_1 - aws-c-event-stream=0.3.1=had47b81_1 - aws-c-http=0.7.11=h72ba615_0 - aws-c-io=0.13.28=ha35c040_0 - aws-c-mqtt=0.8.14=h4941efa_2 - aws-c-s3=0.3.13=he04eaa7_2 - aws-c-sdkutils=0.1.11=h420beca_1 - aws-checksums=0.1.16=h420beca_1 - aws-crt-cpp=0.20.3=h247a981_4 - aws-sdk-cpp=1.10.57=h1a0519f_17 - backcall=0.2.0=pyh9f0ad1d_0 - backports=1.0=pyhd8ed1ab_3 - backports.functools_lru_cache=1.6.5=pyhd8ed1ab_0 - beautifulsoup4=4.12.2=pyha770c72_0 - blas=2.117=mkl - blas-devel=3.9.0=17_win64_mkl - blessed=1.19.1=pyh95a074a_2 - blinker=1.6.2=pyhd8ed1ab_0 - bokeh=3.2.0=pyhd8ed1ab_0 - boost-cpp=1.73.0=h2bbff1b_12 - brotli=1.0.9=hcfcfb64_9 - brotli-bin=1.0.9=hcfcfb64_9 - brotli-python=1.0.9=py310h00ffb61_9 - brotlicffi=1.0.9.2=py310h00ffb61_3 - bzip2=1.0.8=h8ffe710_4 - c-ares=1.19.1=hcfcfb64_0 - ca-certificates=2023.05.30=haa95532_0 - cachetools=5.3.1=pyhd8ed1ab_0 - cairo=1.16.0=hdecc03f_1016 - catboost=1.2=py310h5588dad_4 - certifi=2023.7.22=pyhd8ed1ab_0 - cffi=1.15.1=py310h628cb3f_3 - charset-normalizer=3.1.0=pyhd8ed1ab_0 - click=8.1.3=win_pyhd8ed1ab_2 - cloudpickle=2.2.1=pyhd8ed1ab_0 - cmaes=0.9.1=pyhd8ed1ab_0 - colorama=0.4.6=pyhd8ed1ab_0 - colorful=0.5.4=pyhd3eb1b0_0 - colorlog=6.7.0=py310h5588dad_1 - comm=0.1.3=pyhd8ed1ab_0 - contourpy=1.1.0=py310h232114e_0 - cpuonly=2.0=0 - cryptography=41.0.2=py310h6e82f81_0 - cycler=0.11.0=pyhd8ed1ab_0 - cytoolz=0.12.0=py310h8d17308_1 - dash=2.7.0=py310haa95532_0 - dask-core=2023.6.1=pyhd8ed1ab_0 - debugpy=1.6.7=py310h00ffb61_0 - decorator=5.1.1=pyhd8ed1ab_0 - distlib=0.3.6=py310haa95532_0 - distributed=2023.6.1=pyhd8ed1ab_0 - et_xmlfile=1.1.0=pyhd8ed1ab_0 - executing=1.2.0=pyhd8ed1ab_0 - expat=2.5.0=h63175ca_1 - fastcore=1.5.29=pyhd8ed1ab_0 - filelock=3.12.2=pyhd8ed1ab_0 - flask=2.2.2=py310haa95532_0 - flask-compress=1.13=py310haa95532_0 - flask-cors=3.0.10=pyhd3eb1b0_0 - font-ttf-dejavu-sans-mono=2.37=hab24e00_0 - font-ttf-inconsolata=3.000=h77eed37_0 - font-ttf-source-code-pro=2.038=h77eed37_0 - font-ttf-ubuntu=0.83=hab24e00_0 - fontconfig=2.14.2=hbde0cde_0 - fonts-conda-ecosystem=1=0 - fonts-conda-forge=1=0 - fonttools=4.40.0=py310h8d17308_0 - freetype=2.12.1=h546665d_1 - fribidi=1.0.10=h8d14728_0 - frozenlist=1.4.0=py310h8d17308_0 - fs=2.4.16=py310haa95532_0 - fsspec=2023.6.0=pyh1a96a4e_0 - fugue=0.8.6=pyhd8ed1ab_0 - fugue-sql-antlr=0.1.6=py310haa95532_0 - future=0.18.3=pyhd8ed1ab_0 - gdown=4.7.1=pyhd8ed1ab_0 - getopt-win32=0.1=h8ffe710_0 - gettext=0.21.1=h5728263_0 - gflags=2.2.2=ha925a31_0 - google-api-core=2.10.1=py310haa95532_0 - google-auth=2.17.3=pyh1a96a4e_0 - google-auth-oauthlib=0.4.4=pyhd3eb1b0_0 - googleapis-common-protos=1.56.4=py310haa95532_0 - gpustat=1.1.1=pyhd8ed1ab_0 - graphite2=1.3.13=1000 - graphviz=8.0.5=h51cb2cd_0 - greenlet=2.0.2=py310h00ffb61_1 - grpcio=1.46.3=py310h694bffd_0 - gts=0.7.6=h6b5321d_4 - harfbuzz=7.3.0=h196d34a_0 - hyperopt=0.2.7=pyhd8ed1ab_0 - icu=72.1=h63175ca_0 - idna=3.4=pyhd8ed1ab_0 - importlib-metadata=6.7.0=pyha770c72_0 - importlib_metadata=6.7.0=hd8ed1ab_0 - importlib_resources=5.12.0=pyhd8ed1ab_0 - inflate64=0.3.1=py310h8d17308_3 - intel-openmp=2023.1.0=h57928b3_46319 - ipykernel=6.24.0=pyh6817e22_0 - ipython=8.14.0=pyh08f2357_0 - ipywidgets=8.0.6=pyhd8ed1ab_0 - itsdangerous=2.0.1=pyhd3eb1b0_0 - jedi=0.18.2=pyhd8ed1ab_0 - jinja2=3.1.2=pyhd8ed1ab_1 - jinxed=1.2.0=pyh95a074a_0 - joblib=1.3.2=pyhd8ed1ab_0 - jsonschema=4.17.3=pyhd8ed1ab_0 - jupyter-dash=0.4.2=py310haa95532_0 - jupyter_client=8.3.0=pyhd8ed1ab_0 - jupyter_core=5.3.1=py310h5588dad_0 - jupyterlab_widgets=3.0.7=pyhd8ed1ab_1 - kiwisolver=1.4.4=py310h232114e_1 - krb5=1.21.1=heb0366b_0 - lcms2=2.15=h3e3b177_1 - lerc=4.0.0=h63175ca_0 - libabseil=20230125.3=cxx17_h63175ca_0 - libarrow=11.0.0=h8a6ae29_30_cpu - libblas=3.9.0=17_win64_mkl - libboost=1.73.0=h6c2663c_12 - libbrotlicommon=1.0.9=hcfcfb64_9 - libbrotlidec=1.0.9=hcfcfb64_9 - libbrotlienc=1.0.9=hcfcfb64_9 - libcblas=3.9.0=17_win64_mkl - libcrc32c=1.1.2=hd77b12b_0 - libcurl=8.2.1=hd5e4a3a_0 - libdeflate=1.18=hcfcfb64_0 - libevent=2.1.12=h56d1f94_1 - libexpat=2.5.0=h63175ca_1 - libffi=3.4.2=h8ffe710_5 - libgd=2.3.3=h2ed9e1d_6 - libglib=2.76.3=he8f3873_0 - libgoogle-cloud=2.12.0=hbc1b25b_1 - libgrpc=1.56.1=hea2d5f7_0 - libhwloc=2.9.1=nocuda_h15da153_6 - libiconv=1.17=h8ffe710_0 - libjpeg-turbo=2.1.5.1=hcfcfb64_0 - liblapack=3.9.0=17_win64_mkl - liblapacke=3.9.0=17_win64_mkl - libpng=1.6.39=h19919ed_0 - libprotobuf=4.23.3=h1975477_0 - libsodium=1.0.18=h8d14728_1 - libsqlite=3.42.0=hcfcfb64_0 - libssh2=1.11.0=h7dfc565_0 - libthrift=0.18.1=h06f6336_2 - libtiff=4.5.1=h6c8260b_0 - libutf8proc=2.8.0=h82a8f57_0 - libuv=1.44.2=h8ffe710_0 - libwebp=1.3.1=hcfcfb64_0 - libwebp-base=1.3.1=hcfcfb64_0 - libxcb=1.15=hcd874cb_0 - libxgboost=1.7.4=cpu_h20390bd_2 - libxml2=2.11.4=hc3477c8_0 - libzlib=1.2.13=hcfcfb64_5 - lightgbm=3.3.5=py310h00ffb61_0 - lightning-utilities=0.7.1=py310haa95532_1 - llvmlite=0.40.1=py310hb84602e_0 - locket=1.0.0=pyhd8ed1ab_0 - lttbc=0.2.4=py310h9b08ddd_0 - lz4-c=1.9.4=h2bbff1b_0 - m2w64-gcc-libgfortran=5.3.0=6 - m2w64-gcc-libs=5.3.0=7 - m2w64-gcc-libs-core=5.3.0=7 - m2w64-gmp=6.1.0=2 - m2w64-libwinpthread-git=5.0.0.4634.697f757=2 - mako=1.2.4=pyhd8ed1ab_0 - markdown=3.4.3=pyhd8ed1ab_0 - markupsafe=2.1.3=py310h8d17308_0 - matplotlib-base=3.7.1=py310h51140c5_0 - matplotlib-inline=0.1.6=pyhd8ed1ab_0 - mkl=2022.1.0=h6a75c08_874 - mkl-devel=2022.1.0=h57928b3_875 - mkl-include=2022.1.0=h6a75c08_874 - mlforecast=0.9.1=pyhd8ed1ab_0 - mpmath=1.3.0=pyhd8ed1ab_0 - msgpack-python=1.0.5=py310h232114e_0 - msys2-conda-epoch=20160418=1 - multidict=6.0.4=py310h8d17308_0 - multivolumefile=0.2.3=pyhd8ed1ab_0 - munkres=1.1.4=pyh9f0ad1d_0 - nbformat=5.9.0=pyhd8ed1ab_0 - nest-asyncio=1.5.6=pyhd8ed1ab_0 - networkx=3.1=pyhd8ed1ab_0 - neuralforecast=1.6.2=pyhd8ed1ab_0 - nodejs=20.5.1=h57928b3_0 - numba=0.57.1=py310h19bcfe9_0 - numpy=1.24.4=py310hd02465a_0 - nvidia-ml-py=12.535.77=pyhd8ed1ab_0 - oauthlib=3.2.2=pyhd8ed1ab_0 - opencensus=0.11.2=pyhd8ed1ab_0 - opencensus-context=0.1.3=py310haa95532_0 - openjpeg=2.5.0=ha2aaf27_2 - openpyxl=3.1.2=py310h8d17308_0 - openssl=3.1.1=hcfcfb64_1 - optuna=3.2.0=pyhd8ed1ab_0 - orc=1.9.0=hf2b8f0d_1 - orjson=3.8.8=py310h2bbff1b_0 - packaging=23.1=pyhd8ed1ab_0 - pandas=2.0.3=py310h1c4a608_1 - pango=1.50.14=hd64ce24_1 - parso=0.8.3=pyhd8ed1ab_0 - partd=1.4.0=pyhd8ed1ab_0 - patsy=0.5.3=pyhd8ed1ab_0 - pcre2=10.40=h17e33f8_0 - pickleshare=0.7.5=py_1003 - pillow=10.0.0=py310hb653ca7_0 - pip=23.1.2=pyhd8ed1ab_0 - pixman=0.40.0=h8ffe710_0 - pkgutil-resolve-name=1.3.10=pyhd8ed1ab_0 - platformdirs=2.6.0=pyhd8ed1ab_0 - plotly=5.15.0=pyhd8ed1ab_0 - plotly-resampler=0.8.3.2=pyhd8ed1ab_0 - pooch=1.7.0=pyha770c72_3 - prometheus_client=0.14.1=py310haa95532_0 - prompt-toolkit=3.0.38=pyha770c72_0 - prompt_toolkit=3.0.38=hd8ed1ab_0 - protobuf=4.23.3=py310ha3d488f_0 - psutil=5.9.5=py310h8d17308_0 - pthread-stubs=0.4=hcd874cb_1001 - pthreads-win32=2.9.1=hfa6e2cd_3 - pure_eval=0.2.2=pyhd8ed1ab_0 - py-spy=0.3.14=h90009a2_0 - py-xgboost=1.7.4=cpu_py310h2690a58_2 - py4j=0.10.9.7=pyhd8ed1ab_0 - py7zr=0.20.2=pyhd8ed1ab_0 - pyarrow=11.0.0=py310h790e06d_0 - pyasn1=0.4.8=py_0 - pyasn1-modules=0.2.7=py_0 - pybcj=1.0.1=py310h8d17308_2 - pybcpy=0.0.17=pyhd8ed1ab_0 - pycparser=2.21=pyhd8ed1ab_0 - pycryptodomex=3.18.0=py310h8d17308_0 - pydantic=1.10.8=py310h2bbff1b_0 - pydeprecate=0.3.1=pyhd8ed1ab_0 - pygments=2.15.1=pyhd8ed1ab_0 - pyjwt=2.7.0=pyhd8ed1ab_0 - pyopenssl=23.2.0=pyhd8ed1ab_1 - pyparsing=3.1.0=pyhd8ed1ab_0 - pyppmd=0.17.4=py310h8a704f9_0 - pyrsistent=0.19.3=py310h8d17308_0 - pysocks=1.7.1=pyh0701188_6 - python=3.10.12=h4de0772_0_cpython - python-dateutil=2.8.2=pyhd8ed1ab_0 - python-fastjsonschema=2.17.1=pyhd8ed1ab_0 - python-graphviz=0.20.1=pyh22cad53_0 - python-tzdata=2023.3=pyhd8ed1ab_0 - python_abi=3.10=3_cp310 - pytorch=2.0.1=py3.10_cpu_0 - pytorch-lightning=2.0.3=py310haa95532_0 - pytorch-mutex=1.0=cpu - pytz=2023.3=pyhd8ed1ab_0 - pyu2f=0.1.5=pyhd8ed1ab_0 - pywin32=304=py310h00ffb61_2 - pyyaml=6.0=py310h8d17308_5 - pyzmq=25.1.0=py310hcd737a0_0 - pyzstd=0.15.9=py310h0009e47_0 - qpd=0.4.4=pyhd8ed1ab_1 - ray-core=2.6.3=py310h139b6d1_1 - ray-dashboard=2.6.3=py310h5f3105d_1 - ray-default=2.6.3=py310h5588dad_1 - ray-tune=2.6.3=py310h5588dad_1 - re2=2023.03.02=hd4eee63_0 - requests=2.31.0=pyhd8ed1ab_0 - requests-oauthlib=1.3.1=pyhd8ed1ab_0 - retrying=1.3.3=pyhd3eb1b0_2 - rsa=4.9=pyhd8ed1ab_0 - scikit-learn=1.3.0=py310hd266714_0 - scipy=1.11.2=py310h578b7cb_0 - seaborn=0.12.2=hd8ed1ab_0 - seaborn-base=0.12.2=pyhd8ed1ab_0 - setproctitle=1.2.2=py310h2bbff1b_0 - setuptools=68.0.0=pyhd8ed1ab_0 - six=1.16.0=pyh6c4a22f_0 - smart_open=5.2.1=py310haa95532_0 - snappy=1.1.10=hfb803bf_0 - sortedcontainers=2.4.0=pyhd8ed1ab_0 - soupsieve=2.3.2.post1=pyhd8ed1ab_0 - sqlalchemy=1.4.49=py310h8d17308_0 - sqlglot=11.5.7=py310haa95532_0 - stack_data=0.6.2=pyhd8ed1ab_0 - statsforecast=1.5.0=pyhd8ed1ab_0 - statsmodels=0.14.0=py310h9b08ddd_1 - sympy=1.12=pyh04b8f61_3 - tbb=2021.9.0=h91493d7_0 - tblib=1.7.0=pyhd8ed1ab_0 - tenacity=8.2.2=pyhd8ed1ab_0 - tensorboard=2.10.0=py310haa95532_0 - tensorboard-data-server=0.6.1=py310haa95532_0 - tensorboard-plugin-wit=1.8.1=py310haa95532_0 - tensorboardx=2.2=pyhd3eb1b0_0 - texttable=1.6.7=pyhd8ed1ab_0 - threadpoolctl=3.1.0=pyh8a188c0_0 - tk=8.6.12=h8ffe710_0 - toolz=0.12.0=pyhd8ed1ab_0 - torchinfo=1.8.0=pyhd8ed1ab_0 - torchmetrics=0.11.4=pyhd8ed1ab_0 - tornado=6.3.2=py310h8d17308_0 - tqdm=4.65.0=pyhd8ed1ab_1 - trace-updater=0.0.9.1=py310haa95532_0 - traitlets=5.9.0=pyhd8ed1ab_0 - triad=0.9.1=pyhd8ed1ab_0 - typing-extensions=4.7.1=hd8ed1ab_0 - typing_extensions=4.7.1=pyha770c72_0 - tzdata=2023c=h71feb2d_0 - ucrt=10.0.22621.0=h57928b3_0 - unicodedata2=15.0.0=py310h8d17308_0 - urllib3=2.0.4=pyhd8ed1ab_0 - vc=14.3=h64f974e_17 - vc14_runtime=14.36.32532=hfdfe4a8_17 - virtualenv=20.17.1=py310haa95532_0 - vs2015_runtime=14.36.32532=h05e6639_17 - wcwidth=0.2.6=pyhd8ed1ab_0 - werkzeug=2.3.7=pyhd8ed1ab_0 - wheel=0.40.0=pyhd8ed1ab_0 - widgetsnbextension=4.0.7=pyhd8ed1ab_0 - win_inet_pton=1.1.0=pyhd8ed1ab_6 - window-ops=0.0.14=pyhd8ed1ab_0 - xgboost=1.7.4=cpu_py310h2690a58_2 - xlrd=2.0.1=pyhd8ed1ab_3 - xorg-kbproto=1.0.7=hcd874cb_1002 - xorg-libice=1.0.10=hcd874cb_0 - xorg-libsm=1.2.3=hcd874cb_1000 - xorg-libx11=1.8.6=hefa74cf_0 - xorg-libxau=1.0.11=hcd874cb_0 - xorg-libxdmcp=1.1.3=hcd874cb_0 - xorg-libxext=1.3.4=hcd874cb_2 - xorg-libxpm=3.5.16=hcd874cb_0 - xorg-libxt=1.3.0=hcd874cb_0 - xorg-xextproto=7.3.0=hcd874cb_1003 - xorg-xproto=7.0.31=hcd874cb_1007 - xyzservices=2023.7.0=pyhd8ed1ab_0 - xz=5.2.6=h8d14728_0 - yaml=0.2.5=h8ffe710_2 - yarl=1.9.2=py310h8d17308_0 - zeromq=4.3.4=h0e60522_1 - zict=3.0.0=pyhd8ed1ab_0 - zipfile-deflate64=0.2.0=py310h8d17308_3 - zipp=3.15.0=pyhd8ed1ab_0 - zlib=1.2.13=hcfcfb64_5 - zstd=1.5.2=h12be248_6 - pip: - movecolumn==0.0.7 - mplcyberpunk==0.7.0 prefix: C:\Users\admin\mambaforge\envs\statsforecast ```

Reproduction script

import mlforecast import statsforecast import neuralforecast import torch

посмотрим на версии пакетов

print('statsforecast :',statsforecast.version) print('mlforecast :',mlforecast.version) print('neuralforecast :',neuralforecast.version) print('torch :',torch.version)

Issue Severity

High: It blocks me from completing my task.

BWBarber commented 1 year ago

What was the solution here? I am facing a similar error

akmalsoliev commented 8 months ago

@BWBarber there appears to be no solution except downgrading, but downgrading is blocked by other package dependencies...

Reference: https://github.com/antlr/antlr4/issues/3997

UPDATE This issue is caused by omegaconf, at current moment, just pip uninstall omegaconf and all packages that are dependent on it.