question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'metric_file'

See original GitHub issue

Hi!

Version 0.7.1 of Prophet is unusable for me. Even if I use it in the most basic way, it constantly produces an error.

from fbprophet import Prophet
p = Prophet()
p.fit(df)

Error:

KeyError: ‘metric_file’ Exception ignored in: ‘stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_7332008770348935536._set_stanargs_from_dict’ KeyError: metric_file

Process finished with exit code -1073741819 (0xC0000005)

OS: Windows 10 Python: 3.7

Thanks for help! 👍

Best regards Robert

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:35 (7 by maintainers)

github_iconTop GitHub Comments

24reactions
Meng-QQcommented, Sep 15, 2020

I met the same problem. After upgrading pandas to ver 1.0.4 and pystan to ver 2.19.1.1, it was solved. Hopefully it works for you as well.

16reactions
jmloncommented, Dec 8, 2020

Same problem. The solution I found was to uninstall previous versions and install the ones in conda-forge:

conda remove pystan fbprophet
conda install --channel conda-forge pystan fbprophet
Read more comments on GitHub >

github_iconTop Results From Across the Web

Prophet on google colab return - Error: KeyError: 'metric_file'
today I start to have problems with my colab script that use facebook prophet. I try to reproduce the error on a basic...
Read more >
Based on the references to 'stan', I'm guessing the issue is ...
I found that issue by googling “keyerror: 'metric_file' pystan". It looks like a few people have found temporary solutions or workarounds that ...
Read more >
Developers - KeyError: 'metric_file' - - Bountysource
Hi! Version 0.7.1 of Prophet is unusable for me. Even if I use it in the most basic way, it constantly produces an...
Read more >
fbprophet模型运行出现KeyError: 'metric_file' - CSDN博客
我运行这一段代码的时候出现了错误。m = Prophet.Prophet()m.fit(dfp_train)错误内容是KeyError: 'metric_file'Exception ignored in: ...
Read more >
Fixing KeyError Exceptions in Python - YouTube
When you encounter a KeyError, there are a few standard ways to handle it. Depending on your use case, some of these solutions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found