stan-dev / pystan

PyStan, a Python interface to Stan, a platform for statistical modeling. Documentation: https://pystan.readthedocs.io
ISC License
337 stars 58 forks source link

stan.build throws ValueError when python program is launched with nice #403

Closed simkovic closed 8 months ago

simkovic commented 8 months ago

Description:

stan.build throws ValueError when python program is launched with nice command

Reproducible Steps:

I copied the quick-start code from https://pystan.readthedocs.io/en/latest/index.html to schools.py file. Then I ran:

nice -10 python schools.py

Current Output:

ValueError: The JSON document has an improper structure: missing or superfluous commas, braces, missing keys, etc.

Additional Information:

Only crashes when a compilation is necessary. python schools.py works on my machine.

Current Version:

Pystan 3.7.0

riddell-stan commented 8 months ago

I'm not able to reproduce on Linux, Ubuntu 23.04. What operating system and platform are you using?

simkovic commented 8 months ago

I cleared the user Stan cache ($HOME/.cache/httpstan/) and now the nice command works. Since I can't reproduce the problem anymore I'm closing this issue. For the record I'm using Arch Linux, Kernel 6.6.6-arch1-1