-
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
Another error with pip install #1598
Comments
All of the dependencies for fbprophet are build dependencies, meaning they have to be installed before fbprophet can be installed. Usually if you are installing with pip and don't have the dependencies installed, it will first try to build a wheel, that will fail because the build dependencies are not in place, but then it will install the dependencies and install from source which succeeds. See #401 for lengthy discussion of this. It sounds like for you it is just exiting after the failure to build the wheel? What version of pip are you using? You can get all the dependencies with
for this requirements.txt: https://github.com/facebook/prophet/blob/master/python/requirements.txt but like I said I expect pip to install the dependencies itself, so am surprised to hear it isn't. |
@bletham it seems like there is a problem when using requirements to build the wheel itself (see the following Dockerfile for how to reproduce it). @mkleinbort this Dockerfile works:
|
It makes sense to me that it would fail when trying to build the wheel, what's surprising to me is that the install then exits with an error. When I do
So you can see that it is failing to build the wheel, but then after it fails to build the wheel it installs the missing dependencies (lunarcalendar and cmdstanpy in this case) and then successfully installs. Is this different behavior something with different versions of pip I wonder? I used pip 20.1.1 above. |
You are right, it should not happen, ad indeed it is not (I edited my Dockerfile above accordingly). As far as I understood here is what happens:
Note that the missing dependency of point 2) can be anything, depending of what it is already installed or not, I personally saw errors about missing ...so I guess that the OP experienced step 2), he saw one of the errors of a missing build deps (i.e. A) he stopped the B) he got the error about the missing dependency, he did not stop the process, but then the missing dev tools error piled up and even the "second try" of building the wheel failed (command 'x86_64-linux-gnu-gcc' failed with exit status 1) I have to say that this is a pretty messy situation to navigate, is there anything that you can do on your side of the install/build process to help the user understand what is going on...? Best, |
@sarusso thanks for the summary, that all seems correct to me. I agree it's really non-ideal and seeing error messages during install can be really confusing, even if it does ultimately install correctly. We've tried a few things to resolve this but it's pretty complicated. I don't see a clean way to have it build the wheel without pystan at the least. We did try to have it install the build dependencies before trying to build the wheel (with a pyproject.toml file), and #401 describes why that ended up not being an option. Hopefully we can work out a clean solution for this at some point. |
This simple change may prevent further additions to and discussions in facebook#401 and facebook#1598 and the like.
use these commands to in docker to install fbprohet USER root fbprophetRUN apt-get update && apt-get install build-essential unixodbc-dev -y |
Hello,
When trying to run
pip install fbprophet
(in a python3.8 docker container) it tells me theconvertdate
module is not installed.When I install the
convertdate
module it tells me thelunarcalendar
module is not installed, and if I installconvertdate
andlunarcalendar
it then tells meholidays
is not installed.Thus I need to do
and then
pip install fbprophet
(still not working, figuring out pystan)
The text was updated successfully, but these errors were encountered: