-
Notifications
You must be signed in to change notification settings - Fork 526
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
["scip.exe", "--version"] timed out after 1 second #3064
Comments
Thanks, @mihsamusev , for this. I am going to attach it to one of our ongoing efforts : #1030 . We are actively working on refactoring how the solver interfaces work, and we will look into this as part of that. |
I am suffering this issue every time to call scip. |
Same issue here. Were you able to resolve it? |
Same issue here... |
I had the same issue. Then I tried running the command "scip --version" in the Terminal. After that, I ran the previous command again, and then it worked. I do not know the reason, but it worked :> |
All who commented: The cause of this issue is that there was a hardcoded timeout of 1 second when checking the version of
|
This worked for me as well! |
Summary
A proper and feasible linear model solves ok with scip but on a rare occasion a subprocess error of a kind
subprocess.TimeoutExpired: Command [".../scip.exe", "--version"] timed out after 1 second
error is thrown. If it is possible to reach the solver within given 1 second the rest of the interaction with solver and problem results are correct every single time.Steps to reproduce the issue
Very hard to reproduce, but it seems to be affected by how many python processes are re-using
scip
and whether the os is busy running some other heavy task like Teams Video call.Error Message
Information on your system
Pyomo version: 6.6.0
Python version: 3.11
Operating system: Windows 11
How Pyomo was installed (PyPI, conda, source):
pip install Pyomo==6.6
Solver (if applicable): SCIP 8.1.0 installed by
conda install -c conda-forge scip
Additional
Tried the same problem on GLPK solver and it doesnt seem to call the above mentioned subprocess first before calling the solver executable. No matter how busy is the OS.
Here it is i believe,
timeout
set 1:pyomo/pyomo/solvers/plugins/solvers/SCIPAMPL.py
Lines 96 to 111 in de96bef
The text was updated successfully, but these errors were encountered: