alkaline-ml / pmdarima

A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
https://www.alkaline-ml.com/pmdarima
MIT License
1.57k stars 231 forks source link

[MRG+2] - Added extra info to ValueError in predict() #517

Closed codeananda closed 1 year ago

codeananda commented 1 year ago

Description

Changes:

Motivation:

Type of change

How Has This Been Tested?

No tests since it's just a doc change. Plus I had issues running pytest locally despite following your instructions.

Checklist:

I've spent the last hour trying to get pytest to run locally but without success.

What I have tried:

The installs all seemingly work but when I run pytest I get the following errors. What am I doing wrong?!

ImportError while importing test module '/Volumes/GoogleDrive/My Drive/1 Projects/pmdarima - update ARIMA.predict ValueError/pmdarima/pmdarima/utils/tests/test_wrapped.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
pmdarima/__check_build/__init__.py:44: in <module>
    from ._check_build import check_build
E   ModuleNotFoundError: No module named 'pmdarima.__check_build._check_build'

During handling of the above exception, another exception occurred:
/Users/king/opt/anaconda3/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pmdarima/__init__.py:49: in <module>
    from . import __check_build
pmdarima/__check_build/__init__.py:46: in <module>
    raise_build_error(ie)
pmdarima/__check_build/__init__.py:31: in raise_build_error
    raise ImportError("""%s
E   ImportError: No module named 'pmdarima.__check_build._check_build'
E   ___________________________________________________________________________
E   Contents of /Volumes/GoogleDrive/My Drive/1 Projects/pmdarima - update ARIMA.predict ValueError/pmdarima/pmdarima/__check_build:
E   __init__.py               _check_build.pyx          setup.py
E   tests                     __pycache__               _check_build.c
E   ___________________________________________________________________________
E   It seems that pmdarima has not been built correctly.
E   If you have installed pmdarima from source, please do not forget
E   to build the package before using it: run `python setup.py install` or
E   `make` from the top-level directory.
E   
E   If you have used an installer, please check that it is suited for your
E   Python version, your operating system and your platform.

I'm using a Macbook pro 2019 v12.4 Monterey, python 3.10.6.