Operating System:Mac OS 10.14 Mojave
Interface Version:2.18.0.0
Compiler/Toolkit:
Hi
Having installed Python 3.6.6 over Anaconda and PyStan 2.18, I was trying to run the Eight School Problem in Jupyter:
http://mc-stan.org/users/documentation/case-studies/pystan_workflow.html
On the line
model = stan_utility.compile_model(‘eight_schools_cp.stan’)
I get the following error (copied the first 13 lines):
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_71b609c34d59a40b345b5328a36dbb39 NOW.
/anaconda3/lib/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive ‘language_level’ not set, using 2 for now (Py2). This will change in a later release! File: /var/folders/r9/xxppbx0s5q190x6xqpsjcx6m0000gp/T/tmpbd0odkm6/stanfit4anon_model_71b609c34d59a40b345b5328a36dbb39_3878708735013528215.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
FileNotFoundError Traceback (most recent call last)
~/Dropbox/02 economics/00 my projects/10 Bayesian Anaysis/09 PyStan/pystan_workflow/stan_utility.py in compile_model(filename, model_name, **kwargs)
134 try:
–> 135 sm = pickle.load(open(cache_fn, ‘rb’))
136 except:
FileNotFoundError: [Errno 2] No such file or directory: ‘cached-model-71b609c34d59a40b345b5328a36dbb39.pkl’
I don’t know how to fix the error. Any help is very much appreciated. Best -Stephan