{"id":27279,"library":"pyflux","title":"PyFlux","description":"PyFlux is a time-series analysis library for Python, offering a wide range of models including ARIMA, GARCH, and state space models. The current version is 0.4.15, but the library is no longer actively maintained and does not support Python 3.9+. It relies on older dependencies like NumPy and pandas.","status":"deprecated","version":"0.4.15","language":"python","source_language":"en","source_url":"https://github.com/rjt1990/pyflux","tags":["time-series","ARIMA","GARCH","forecasting"],"install":[{"cmd":"pip install pyflux","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Core dependency for numerical operations","package":"numpy","optional":false},{"reason":"Data structures for time series","package":"pandas","optional":false}],"imports":[{"note":"The main class is PyFlux, not the module name.","wrong":"import pyflux","symbol":"PyFlux","correct":"from pyflux import PyFlux"},{"note":"Model classes are in submodules.","wrong":"from pyflux import ARIMA","symbol":"ARIMA","correct":"from pyflux.arma import ARIMA"}],"quickstart":{"code":"import pandas as pd\nimport numpy as np\nfrom pyflux.arma import ARIMA\n\n# Create sample data\ndates = pd.date_range('2021-01-01', periods=100, freq='D')\ndata = pd.Series(np.random.randn(100), index=dates)\n\n# Fit ARIMA model\nmodel = ARIMA(data=data, ar=1, ma=1, integ=1)\nmodel.fit()\n\n# Forecast\nforecast = model.predict(h=5)\nprint(forecast)","lang":"python","description":"Basic ARIMA model fit and forecast."},"warnings":[{"fix":"Use statsmodels.tsa.arima.model.ARIMA or pmdarima instead.","message":"PyFlux is no longer actively maintained. Consider migrating to statsmodels or pmdarima for time series analysis.","severity":"deprecated","affected_versions":"all"},{"fix":"Use Python 3.8 or earlier, or switch to a maintained library.","message":"PyFlux does not support Python 3.9 or later. Installation may fail on modern Python versions.","severity":"breaking","affected_versions":">=0.4.15"},{"fix":"Use 'from pyflux.arma import ARIMA' instead of 'from pyflux import ARIMA'.","message":"Import model classes from submodules like pyflux.arma, not directly from pyflux.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install pyflux' in the correct Python environment.","cause":"PyFlux is not installed or installed in a different environment.","error":"ModuleNotFoundError: No module named 'pyflux'"},{"fix":"Use 'from pyflux.arma import ARIMA'.","cause":"Incorrect import path; ARIMA is in pyflux.arma.","error":"AttributeError: module 'pyflux' has no attribute 'ARIMA'"},{"fix":"Use 'from pyflux import PyFlux' (note capital P).","cause":"The main class is PyFlux, not the module name.","error":"ImportError: cannot import name 'PyFlux' from 'pyflux'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}