Open andregirard opened 5 years ago
I'm not sure what the test-solvers
option does but if you just want to check which solvers are available to Pyomo, use the command:
pyomo help -s
Test-solver seems to run some test on a set of problems to check the installation.
I have been able to use Pyomo to solve some simple problems so this is no longer an issue for me.
I am reopening this. This is a definite issue with packaging in Pyomo. Clearly, the test-solvers
command has never been used by anyone that did not work with a checkout of the pyomo source installed with setup-develop. I believe it is a relatively easy fix to setup.py to get it to include the necessary JSON files as part of the distribution.
In the future, we should revisit the design / utility of test-solvers
to see if it is something that is really useful to users and if there is a better way to distribute the models/reference files to support things like this.
@jsiirola - Are there any other JSON files that need to be included in the packaging? With the current setup.py
configuration, there are no json
, ui
, or any other types of non-Python files being grabbed.
Updating packaging is going to be involved, and will probably involve a PEP to define what should be included in, e.g., the wheels. I am not entirely sure that adding the testing data and baselines into the distribution is a good idea.
Separately, I just tried pyomo test-solvers
with a checkout of master, and the tests failed with a missing LP_unbounded.json
. This indicates that pyomo test-solvers
doesn't work at all (and may not have worked for quite some time). This raises the question as to if the ultimate resolution of this specific issue is to remove the pyomo test-solvers
sub-command entirely.
Just want to add my vote to resolve this as well. I was trying to test SCIP which I built from source, and this error almost misdirected me towards worrying about whether I missed something while compiling.
pyomo test-solvers
has been broken for some time. We need to decide on a path forward.
I have a working installation of Pyomo. I now want to install some solvers following the instructions at
https://pyomo.readthedocs.io/en/latest/installation.html#using-conda
I installed the standard solvers with
Sure enough, the file is not there