-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Failed building wheel for fbprophet #1760
Comments
Full command output: pypa/pip#9329 (comment) |
It looks like what you're seeing here is just that you need to have the dependencies installed in order to build the wheel. There is a whole lot of discussion about this in #401, and some recent discussion in #1683 and #1716. In short, when you try to install it with pip it wants to do things in this order:
This fails because we need to install the dependencies (step 2) before we can build the wheel (step 1) (we absolutely require pystan, but right now it tries to load all of them, and you can see convertdate in your stacktrace above is the first one it is getting stuck on). When building the wheel fails, pip falls back to a different flow:
This flow works, which is what you're seeing. If you want to avoid that flow, then you just need to install the dependencies before doing your pip install:
Then building the wheel will succeed and you won't get shunted to the other install flow. Does that make sense? As a sidenote, if you're installing in conda, then you can also install from conda-forge which has a pre-built wheel. |
Would fbprophet be interested in opting into PEP 518? I cannot tell the maintainers’ stance on this from reading the linked issues. The required |
I've tried this in the past and ran into the issue described here: #401 (comment) , which is basically that when using a pyproject.toml the wheel is built in a different environment than the package is actually run in, which can be a big mess for the pystan model compilation. |
I really hope there is a way to make this work better, but I don't think the straightforward pyproject.toml approach works and I don't know what the better approach is. |
Thanks for the work. It seems like you're another project blocked by this problem. Hopefully we can come up with a solution soon. https://discuss.python.org/t/support-for-build-and-run-time-dependencies/1513/74 |
Attempted to install
fbprophet
using pyenv+pip.error: command 'clang' failed with exit status 1
fbprophet
via conda+pipERROR: Command errored out with exit status 1:
,ERROR: Failed building wheel for fbprophet
message continues...
DEPRECATION: fbprophet was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
message continues...
Successfully installed Cython-0.29.21 LunarCalendar-0.0.9 cmdstanpy-0.9.5 convertdate-2.2.0 ephem-3.7.7.1 fbprophet-0.7.1 holidays-0.10.4 korean-lunar-calendar-0.2.1 pymeeus-0.3.7 pystan-2.19.1.1 pytz-2019.3 setuptools-git-1.2 tqdm-4.54.1
Conda+pip seems to be able to fix the issue itself using an older setup.py. Good for conda users, but I don't use conda and many don't use conda. pyenv+pip is a no go.
fbprophet
via conda into a pyenv environment? 🤡The text was updated successfully, but these errors were encountered: