-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 prophet #2402
Comments
i met a same error.. wait a answer. |
same here |
Following |
pfff..... any guesses? |
for me it looks like it stopped working after macOS upgraded to Ventura. I've already formatted my mac and it's still not working |
Any Solutions guys? this absolutely sucks |
This is what I did, I went to google colab and did and I worked |
Hmmm any known issues with the RTools helper on Windows @WardBrian ? |
Not that I know of. I last ran it myself on a clean install of Windows on Tuesday It seems weird to me that it is even attempting a source installation at all in this scenario |
When I tried to do it today same problem “can’t build a wheel”, I tried downloading the dependencies first but no change. Even anaconda could not install it, the last time I tried led to an hour of waiting but still no success message can be seen. The installation goes perfect on google colab thou, so I stopped trying it on windows and working on colab. Not sure what makes the difference |
Are you using a 32bit or ARM installation on Windows? |
Nope |
If you download the file The fact that the installer is trying to build a wheel on your own system at all is a bit odd to me, since we provide these pre-compiled versions. |
It was not just my computer’s problem as the thread creator got the same problem. Well I could try doing the pip install of prophet.whl. I will let you know if that works |
Hi, Just adding to the thread, the same happens when doing the installation in macOS with M chip. Although, when creating a new environment, Prophet does correctly install (I tried it as part of Darts). Therefore there might be an issue when attempting to install in "used" environments and not new ones. Btw, the 1.1.2 version throws an strange error when fitting models: `16:57:22 - cmdstanpy - INFO - Chain [1] start processing
|
This is the summary of the error: File "", line 144, in run note: This error originates from a subprocess, and is likely not a problem with pip. |
issue labels should include MacOS, as it's not only a Windows problem |
Also, I asked my team to test the issue. Those with MacOS 12 didn't have it, only the ones with MacOS 13. |
Tried just now on a fresh Windows 11 instance, and it immediately installed the built wheel with no issues:
I used |
Downloading and unzipping the source and then running |
Okay, I've isolated the issue. It is caused by the build location having a path length that is too long (classic Windows). Installing in Causes the build failures seen above and the same ones as when running Pip does their builds in a very deep directory by default:
This seems to be long enough to trigger the build issue. I have no idea what we can do to work around this @tcuongd. We may be able to fix it by installing the "repackaged" CmdStan somewhere else before copying the files over. |
Hi, Just for adding a bit on this... in macOS 13 indeed the issue happens (I am running on macOS 13), although only in "old" or "used" environments. If you create a new environment and install prophet either as parto of a package (ie as part of Darts) or as a standalone, it installs without problems. Best |
I discovered that prophet downloads 32 bit version of Rtools during its installation, which doesn't run on 64 bit versions of Windows. So, the error occurs in the following line: |
@sarafid1968 are you using a 32bit version of Python? CmdStanPy selects Rtools based on the value of |
you are right! I was using python 3.8 32 bit..When I installed the latest stable 64 bit version after your post, the installation of prophet finished succesfully.. thnx :-) |
same problem in macOS 13, but cant solve the problem by creating new environment. |
I am getting the same error trying to install fbprophet in Colab. |
We believe this should be resolved with 1.1.5: |
it actually solved the problem for me :) thank you |
facing same issue in colab |
It works for me on the colab but not on my device. |
#2402 (comment), how do you made it work in colab? |
+1 |
I got this error when running |
@williambrandler's observation worked for me.
|
I'm running this in git bash and cannot seem to find anything that will fix the error:
$ python -m pip install prophet
Collecting prophet
Using cached prophet-1.1.2.tar.gz (67 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting convertdate>=2.1.2
Using cached convertdate-2.4.0-py3-none-any.whl (47 kB)
Collecting LunarCalendar>=0.0.9
Using cached LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB)
Collecting holidays>=0.14.2
Using cached holidays-0.22-py3-none-any.whl (412 kB)
Requirement already satisfied: matplotlib>=2.0.0 in c:\treasure\virt\lib\site-packages (from prophet) (3.7.1)
Requirement already satisfied: numpy>=1.15.4 in c:\treasure\virt\lib\site-packages (from prophet) (1.24.2)
Requirement already satisfied: pandas>=1.0.4 in c:\treasure\virt\lib\site-packages (from prophet) (2.0.0)
Requirement already satisfied: python-dateutil>=2.8.0 in c:\treasure\virt\lib\site-packages (from prophet) (2.8.2)
Requirement already satisfied: cmdstanpy>=1.0.4 in c:\treasure\virt\lib\site-packages (from prophet) (1.1.0)
Requirement already satisfied: tqdm>=4.36.1 in c:\treasure\virt\lib\site-packages (from prophet) (4.65.0)
Collecting pymeeus<=1,>=0.3.13
Using cached PyMeeus-0.5.12-py3-none-any.whl
Requirement already satisfied: tzdata in c:\treasure\virt\lib\site-packages (from holidays>=0.14.2->prophet) (2023.3)
Collecting korean-lunar-calendar
Using cached korean_lunar_calendar-0.3.1-py3-none-any.whl (9.0 kB)
Collecting hijri-converter
Using cached hijri_converter-2.2.4-py3-none-any.whl (14 kB)
Collecting ephem>=3.7.5.3
Using cached ephem-4.1.4-cp310-cp310-win32.whl (1.4 MB)
Requirement already satisfied: pytz in c:\treasure\virt\lib\site-packages (from LunarCalendar>=0.0.9->prophet) (2023.3)
Requirement already satisfied: cycler>=0.10 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (0.11.0)
Requirement already satisfied: pillow>=6.2.0 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (9.5.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (4.39.3)
Requirement already satisfied: pyparsing>=2.3.1 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (3.0.9)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (1.4.4)
Requirement already satisfied: packaging>=20.0 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (23.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\treasure\virt\lib\site-packages (from matplotlib>=2.0.0->prophet) (1.0.7)
Requirement already satisfied: six>=1.5 in c:\treasure\virt\lib\site-packages (from python-dateutil>=2.8.0->prophet) (1.16.0)
Requirement already satisfied: colorama in c:\treasure\virt\lib\site-packages (from tqdm>=4.36.1->prophet) (0.4.6)
Building wheels for collected packages: prophet
Building wheel for prophet (pyproject.toml): started
Building wheel for prophet (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Building wheel for prophet (pyproject.toml) did not run successfully.
exit code: 3
[15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-cpython-310
creating build\lib.win32-cpython-310\prophet
creating build\lib.win32-cpython-310\prophet\stan_model
Compiling cmdstanpy model
C++ toolchain 'RTools' version: 4.0
Install directory: C:\Users\alex.cmdstan
Downloading C++ toolchain: RTools40.exe
Download successful, file: RTools40.exe
Installing the C++ toolchain: RTools40
RTools40.exe /SP- /SILENT /SUPPRESSMSGBOXES /CURRENTUSER LANG="English" /DIR="Users\alex.cmdstan\RTools40" /NOICONS /NORESTART
Installation failed: returncode=1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for prophet
Failed to build prophet
ERROR: Could not build wheels for prophet, which is required to install pyproject.toml-based projects
(virt)
The text was updated successfully, but these errors were encountered: