Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lbianchi-lbl opened this issue May 3, 2024 · 2 comments · Fixed by #130
Labels
bug Something isn't working Priority:Normal Normal Priority Issue or PR

Comments

@lbianchi-lbl
Copy link
Contributor

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
Copy link
Member

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

@ksbeattie
Copy link
Member

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).

lbianchi-lbl added a commit to dangunter/idaes-examples that referenced this issue Sep 6, 2024
@lbianchi-lbl lbianchi-lbl linked a pull request Sep 6, 2024 that will close this issue
lbianchi-lbl added a commit that referenced this issue Sep 6, 2024
* Initial commit

* set default worker to gw0

* rewrote add notebook howto

* fixed TOC and internal links

* Add CI step to test #112

* Remove unused arguments from pytest hook to indirectly address warnings

The warnings are about the use of the deprecated `startdir` argument

* Revert "set default worker to gw0"

This reverts commit 9f2d61b.

* Revert "Revert "set default worker to gw0""

This reverts commit 8f62fcb.

---------

Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority:Normal Normal Priority Issue or PR
Projects
None yet
3 participants