-
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
Python3.7.0: Something went wrong while unpickling the StanModel. Consider recompiling. #775
Comments
I'm getting exactly the same error on OSX with fbpropeht 0.4 and pystan 2.18.0.0 |
Same problem here, but with Python 3.6.7 |
I solved this issue by uninstalling anaconda 5.3.1 completely and installing anaconda 5.2.0, which comes with python 3.6.5. Then conda works wonders to install fbprophet. I suspect that this is a python version issue, especially after I checked several mirrors, for example, only to see that there are no fbprophet versions matching pythoh 3.7. I guess that is why it takes forever for conda to solve the environment when python version is 3.7.0. |
Similar to @jiapei100 , I'm seeing this same issue with python 3.6.7, although I'm using Ubuntu 18.04 and pip to install. I think this might be an issue with prophet 0.4, which strangely enough is listed on pypi, but not in Github as a release. It was also released yesterday. Force downgrading to the version before seems to have before fixed things for me: I wonder if building from source might also fix things - the error message seems to suggest some prebuilt STAN model is broken. |
Forcing fbprophet to 0.3.post2 worked for me as a fix. |
Also failed for prophet 0.4.0, Python 3.5.2, and pystan 2.18.0.0. Rolling back to 0.3.post2 fixed the issue. |
This can happen when there is a change in the model (with a new version of fbprophet, or a new version of PyStan) and pip is still using a wheel that is compiled with the old version. We just pushed a new version of fbprophet to PyPI. This should fix the issue (without having to downgrade):
|
It is still not working for me. WARNING:pystan:No module named 'stanfit4anon_model_861b75c6337e237650a61ae58c4385ef_2841341000846931969' |
Facing the same problem that @ciphor related. Could someone reopen the issue ? Using on databricks: WARNING:pystan:No module named 'stanfit4anon_model_861b75c6337e237650a61ae58c4385ef_2841341000846931969' |
repoen the issue on the request of @vavlopes |
Facing the same issue too, python 3.6, pystan and numpy newest version. Using docker for deployment. Do not see the error when doing on my local env, but when it is deployed using python 3.6 docker it returns the error and all modeling fails. |
I have also downgraded the package to the previous 0.3.post2. It worked but what I wanted is to upgrade the package to the newest version. I'm facing other problems, probably related to few data points in the time series, that I was hoping to fix using this new version....But yes, if you downgrade to 0.3.post2 you can still use the package. |
Installing with |
New release of fbprophet results in an error. Added fix to Qlik-Py-Init. facebook/prophet#775
Can this issue please be reopened? I'm seeing the same issue and had to pin to |
As @bletham suggested, I've found that if I install/build using Unfortunately, the |
I am having exactly the same roblem when I instantiate the prophet model with:
|
I've just solved this problem before a minute by following this instruction to install gcc 64 to my computer: |
I had to downgrade from prophet 0.4 to 0.3 by using the prophet version included in Conda-forge As suggested by @windmac I just created a new empty environment in Anaconda and installed fbprophet directly by using:
Please, notice that I did not install gcc 64 in my computer, as I had the C++ Building Tools already installed in Visual Studio 2017 !!! |
I am not sure why this has been closed, there doesn't seem to be a solution to use the latest 0.4 version which has the nice add_holiday functionality. |
Sorry guys I built a wheel on OS X but it was not labeled correctly. I have removed it from PyPI so if you reinstall everything should be fixed. |
I'm going to do a post release soon so that people's package managers are forced to upgrade. Apologies again for the inconvenience, I'm not sure why when I built the wheel that it didn't create the right file name. |
Hi. I'm still not able to import fbprophet 0.4. I got the error in holidays #792: I downgraded fbprophet to 0.3.post2, so I no longer got the holidays issue. Instead, I got the Stan error: I tried downgrading Stan, but without success. |
@leonardonh see #796, this is due to a recent change in the 'holidays' package and can be fixed by downgrading that package as described in #796, while we push out the fix with the new imports. |
I forgot to mention that I have already tried to downgrade holidays Untill Thursday it was working. I'm running it on Google Colab, so you can replicate the error on the same enviroment. |
Thursday is when v0.9.9 of holidays was released, but we'll push out the post release that fixes this on our side very soon. |
The fix has been pushed to pypi.
will get things working. |
Great! Thanks @bletham. It's working. |
Great news.... |
Post release is out. Closing the issue. |
I have the same issue. Prophet version
|
Worked for me with following configuration: OS: MacOS 12.4 Monterey (Apple M1 Pro; so all the Arm64 builts for compilers, used clang as C++ compiler) |
OS: Windows 7 Professional
First of all, I have read through related threads #249 #252 and #599, but still cannot figure out how to solve this issue.
I understand that the easiest way to install fbprophet is to run
conda install -c conda-forge fbprophet
but for reasons I don't know, it takes forever for conda to solve the environment. It's not the case if I use conda to install other packages.
So instead I used pip and it reported that fbprophet 0.4 was installed successfully. But I then got the following error message when importing fbprophet
WARNING:pystan:No module named 'stanfit4anon_model_861b75c6337e237650a61ae58c4385ef_2841341000846931969'
WARNING:pystan:Something went wrong while unpickling the StanModel. Consider recompiling.
Before installing fbprophet, I followed this instruction to install pystan and checked that pystan is working properly. By running the following code.
import pystan
model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
model = pystan.StanModel(model_code=model_code) # this will take a minute
y = model.sampling(n_jobs=1).extract()['y']
y.mean() # should be close to 0
I got message like
I uninstalled both pystan and fbprophet and then reinstalled them with --no-cache flag. But fbprophet still didn't work.
The text was updated successfully, but these errors were encountered: