Nixtla / hierarchicalforecast

Probabilistic Hierarchical forecasting 👑 with statistical and econometric methods.
https://nixtlaverse.nixtla.io/hierarchicalforecast
Apache License 2.0
590 stars 76 forks source link

dependency on `quadprog` #256

Closed twobitunicorn closed 9 months ago

twobitunicorn commented 12 months ago

What happened + What you expected to happen

Executing pip install hierarchicalforecast on python=3.11.6 (Mac, M2) fails building with quadprog identified as the failure. A fix for the issue is in this branch . However, it seems that the project is looking for maintainers.

Versions / Dependencies

quadprog

Reproduction script

mamba create -n nixtla python=3.11.6 -c conda-forge pip install hierarchicalforecast

Issue Severity

Medium: It is a significant difficulty but I can work around it.

mnajaria commented 11 months ago

It also failed on Windows 10, I checked some links but still unable to fix it. Here is the error:

Building wheels for collected packages: quadprog Building wheel for quadprog (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for quadprog (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [5 lines of output] running bdist_wheel running build running build_ext building 'quadprog' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for quadprog Failed to build quadprog ERROR: Could not build wheels for quadprog, which is required to install pyproject.toml-based projects

mnajaria commented 11 months ago

I also tried to get the wheel from the pypi but it didn't have it for Python 3.11.

hmanz commented 11 months ago

In case it's useful to anyone, you can use this temporary workaround in the meantime. Before installing hierarchicalforecast, first install this version of quadprog: pip install git+https://github.com/quadprog/quadprog.git@refs/pull/43/head

leassis91 commented 10 months ago

@hmanz thank you so much bro <3

jmoralez commented 9 months ago

quadprog 0.1.12 includes wheels for CPython 3.8-3.12 and for the most common operating systems. Feel free to reopen if you encounter this issue again.

twobitunicorn commented 9 months ago

thank you ! appreciate the work