prophet
prophet copied to clipboard
Propet CMDStanpy error - Procedure Entry Point Not Located
Platform : Windows 10 Python version : 3.8.8 Prophet : 1.1 (not fbprophet)
The 'cmdstanpy' and 'prophet' packages are successfully installed. But I am getting this error while running my model - "The procedure entry point _ZNt3bb19task_scheduler_init10initilaizeEiy could not be located in the dynamic link library D:/ProgramData/ Anaconda3/Lib/site-packages/prophet/stan_model/prophet_model.bin"
Any suggestions?
Hey @Haridut, In order to solve this problem, you will have to keep 2 points under consideration.
- This package will not work under "$ Base" environment. So first, you will have to create separate environment, and install prophet in newly created environment.
- Then change your kernel from base to newly created environment's kernel.
CONCLUSION: To use "prophet", you will have to change your environment from Base to any other environment (or create new one). And perform your entire "prophet" related task in that particular environment.
@Haridut , let me know whether it works for you or not.
I have the same problem. I created an exe file using the pyinstaller with prophet, which works well on the main computer, but not on the subcomputer.
I solved this problem in my work. It didn't work when I proceeded with the administrator account, but it worked when I created and ran a new account. I hope it helps.
I have the same problem when I ran a model.fit() in notebook. And I was in my conda environment, but still met this problem
I got the same error and I tried to follow the suggested steps: I created a new conda environment and installed prophet. I ran model.fit() in the new environment and I again got the prophet_model.bin - Entry Point Not Found error message
Platform : Windows 10 Python version : 3.8.8 Prophet : 1.1 (not fbprophet)
The 'cmdstanpy' and 'prophet' packages are successfully installed. But I am getting this error while running my model - "The procedure entry point _ZNt3bb19task_scheduler_init10initilaizeEiy could not be located in the dynamic link library D:/ProgramData/ Anaconda3/Lib/site-packages/prophet/stan_model/prophet_model.bin"
Any suggestions?
I downgrade mi versión of fbprophet, and a library named cmdstanpy was downgraded also to version 0.9.5, that way function to me, hope it function to you
That's how I resolved the issue. Python 3.9 Prophet 1.1.1
pip install cmdstanpy
Then in the libs import section, I've added
import cmdstanpy
cmdstanpy.install_cmdstan(compiler=True)
Hey @Haridut, In order to solve this problem, you will have to keep 2 points under consideration.
1. This package will not work under **"$ Base"** environment. So first, you will have to create separate environment, and install prophet in newly created environment. 2. Then change your kernel from base to newly created environment's kernel.
CONCLUSION: To use "prophet", you will have to change your environment from Base to any other environment (or create new one). And perform your entire "prophet" related task in that particular environment.
@Haridut , let me know whether it works for you or not.
I created new environment and installed prophet in that environment but still I am getting the same issue.
Finally what worked for me :
on conda prompt activate the environment using
conda activate envname
then I ran this as per documentation https://mc-stan.org/cmdstanpy/installation.html
conda install -c conda-forge cmdstanpy
and import cmdstanpy
import cmdstanpy
cmdstanpy.install_cmdstan(compiler=True)
Amazing, thanks! Works from Jupyter notebook under WIndows after your fix.
지금도 prophet 모듈이 포함된 ~.py를 pyinstaller로 exe를 빌드하여 실행하면 오류가 나네요. 어떻게 해결해야 되죠?
오류 내용은 다음과 같습니다.
(myenv) D:\프로그램\COINAUTO\dist>test2
Installing CmdStan version: 2.32.0
Install directory: C:\Users\user.cmdstan
17:05:01 - cmdstanpy - INFO - Add C++ toolchain to $PATH: C:\Users\user.cmdstan\RTools40
CmdStan version 2.32.0 already installed
Traceback (most recent call last):
File "test2.py", line 32, in
To resolve the problem you can apply the following:
- open cmd and type: where.exe tbb.dll If below command has a result, the most probably is that exist a global variable on machine making reference to tbb.dll To resolve this conflict you have 2 options:
- Validate the origin of the global variable link to tbb.dll
- Modify the model.py of cmdstanpy folder on python site-packages on the following lines:
Original Code if platform.system() == 'Windows': try: do_command(['where.exe', 'tbb.dll'], fd_out=None)
Modified Code if platform.system() == 'Windows': try: do_command(['where.exe', 'OTHERNAMEtbb.dll'], fd_out=None)
Modify the name tbb.dll to other name to force use the tbb.dll that exist inside cmdstanpy folder:
- site-packages\prophet\stan_model\cmdstan-2.33.1\stan\lib\stan_math\lib
With this, the prophet_model.bin use the tbb library that contains the correct binaries.