-
-
Notifications
You must be signed in to change notification settings - Fork 462
Description
Hey arviz team,
I got the same error that I have preveously got on Update on pystan library #2482 ticket.
So i decide to go there and do the steps so you can see what is actually going on and reproduce it:
the two code files ch1.py and utils.py.
ch1.py
utils.py
The steps for the environment setup:
running windows 11 OS
wsl --install
wsl -d Ubuntu (on the workdir to test this)
wget https://repo.continuum.io/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
(when it asks: "Do you wish the installer to initialise Anaconda3?" type "yes")
(close the session and reopen it, it needs to say "(base)" before the mounted path)
sudo apt update
sudo apt install build-essential
sudo apt-get install manpages-dev
conda create -n stan_env python=3.10
conda activate stan_env
conda install -c conda-forge gcc libstdcxx-ng
pip install pystan
pip install pandas
pip install nest_asyncio
pip install arviz==0.21
the print(type(posterior).module) result:
stan.model
then it gets stuck on the "fit = posterior.sample(num_chains=4, num_samples=100000)" line
with this output (it stops between 2900 and 3400 everytime):
Sampling: 1% (3200/404000)
when i ctrl+C to interrupt it after 5 minutes or before "aiohttp" package timeout, i get this error:
File "/mnt/c/FCUL/projeto/pystan/utils.py", line 36, in get_pystan_statistics
az_data = az.from_pystan(fit)
File "/home/diogo/anaconda3/envs/stan_env/lib/python3.10/site-packages/arviz/data/io_pystan.py", line 1081, in from_pystan
return PyStanConverter(
File "/home/diogo/anaconda3/envs/stan_env/lib/python3.10/site-packages/arviz/data/io_pystan.py", line 70, in init
import pystan # pylint: disable=import-error
ModuleNotFoundError: No module named 'pystan'
but the actual problem is that I can't get the fit object because the program stops.
Sorry for bother you again with the same issue,
Best regards.