IDAES / examples

IDAES platform examples and tutorials
https://idaes-examples.readthedocs.io
Other
17 stars 36 forks source link

Running `pytest .` after cloning fails with RuntimeError: Preprocessing not completed in 10 seconds #112

Closed lbianchi-lbl closed 3 weeks ago

lbianchi-lbl commented 5 months ago

image

Steps to reproduce

git clone https://github.com/IDAES/examples && cd examples
conda create --name test-idaes-examples python=3.10 && conda activate test-idaes-examples
pip install -r requirements-dev.txt
pytest .

Known workarounds

If instead pytest idaes_examples is run first, even partially, pytest . will work as it should:

image

dangunter commented 1 month ago

There was some logic changed in conftest.py that should fix this. Somewhat confusingly it was added in PR #129

ksbeattie commented 1 month ago

I just tried to reproduce this, and I could (on my MacOS M3 laptop).

Running pytest . initially failed with RuntimeError: Preprocessing not completed in 10 seconds.. After running pytest idaes_examples (which also failed because I didn't bother to install ipopt) running pytest . finished (with failures about ipopt not being present).