-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[v6.10] Python, Gurobi, GLPK and SCIP: Linear solver not recognized #1181
Comments
seems to come from:
because somehow or-tools/makefiles/Makefile.win.mk Lines 134 to 146 in 39f4470
or-tools/makefiles/Makefile.win.mk Lines 160 to 168 in 39f4470
or-tools/makefiles/Makefile.gen.mk Lines 2716 to 2730 in 39f4470
this is use when building the lib so you must use make clean_cc / make cc to take it into account, cleaning third_party or python should not have impact IMHO (ed not 100% for python since we pass the flag to swig.exe ...)
currently investigating... |
So just as an FYI, I'm trying to build Google OR Tools with all linear solvers it supports. So far I've run into the following errors when building from stable: Building on X64 Native Tools Command Prompt for VS 2017. CPLEX Issuesor-tools/makefiles/Makefile.win.mk Line 130 in 39f4470
CPLEX_LIB_VERSION . I manually changed it to STATIC_CPLEX_LNK = "$(WINDOWS_CPLEX_DIR)\\cplex1280.lib" for now.
GLPK Issuesor-tools/makefiles/Makefile.win.mk Lines 114 to 115 in 39f4470
glpk.lib to glpk_4_65.lib on lines 114 and 115.
or-tools/ortools/linear_solver/glpk_interface.cc Lines 35 to 37 in 39f4470
glpk.h does not exist in the directory ortools/linear_solver . I manually copied this over from my glpk installation. It was located under glpk-4.65\src\glpk.h .
or-tools/makefiles/Makefile.win.mk Lines 112 to 113 in 39f4470
SCIP Issues
status_macros.h from or-tools\dependencies\sources\protobuf-3.6.1\src\google\protobuf\stubs to or-tools\ortools\base .
Until finally, I can do no more...
Output of make detect_cc
|
Thanks for the feedback ! I would add: GLPK: if SCIP currently tracked in #1188 |
Thank you for your help @Mizux! So I went back to version 6.10.x, and did a clean build. I'm still unable to run Gurobi. I'm actually trying to get other solvers working as well (SCIP and GLPK) and they're also failing with the error:
I've posted the output of tools\make python, tools\make install_python and tools\make detect_cc below. I've already run tools\make third_party. Any help would be greatly appreciated. tools\make python
tools\make install_python
tools\make detect_cc
|
can you provide us, the output of off topic? todo(mizux): check why python wheel grab all the .md files :( |
Also first, we should check that external solver are working in C++ before testing them in python: make run SOURCE=examples/tests/lp_test.cc src: https://github.com/google/or-tools/blob/v6.10.x/examples/tests/lp_test.cc then after we should test in python from the "build dir" make run SOURCE=examples/tests/lp_test.py src: https://github.com/google/or-tools/blob/v6.10.x/examples/tests/lp_test.py then Sorry to ask so much tests... |
Pas de problème make detect_python
make run SOURCE=examples/tests/lp_test.py
make run SOURCE=examples/tests/lp_test.cc
|
So what I see:
make clean_cc
make cc
make run SOURCE=examples/tests/lp_test.cc should make it, once the "test" pass, do the same for the python layer make clean_python
make python note: I suppose you export the |
After running
Copied
Copied the folder Could this be a versioning issue? It's unusual to have files missing from the appropriate directories, unless these are known bugs. |
Are you using master or the v6.10.X branch
note: I'm "currently" working on master branch to fix all issue spotted little by little, sorry for the delay |
My bad, it looks like I was on stable. I'm currently running through the build process on the branch 6.10.X. Standby for results... |
Running |
All Makefile is in
concerning makefile.local the command or-tools/makefiles/Makefile.third_party.win.mk Lines 176 to 177 in 4040249
My guess, when changing branch, |
Is |
If i recall correctly note: dependencies/check.log build don't depends on build third parties (i.e. call target note: I guess |
tools\make python
Not sure why it's not detecting Gurobi. I'm running |
tools\make cc
I'm also getting:
|
Any updates? |
master branch has been fixed concerning SCIP integration. note: on windows the |
Hello,
I am trying to use the Python interface to Google OR Tools. I was able to get CPLEX to work, but Gurobi fails with the following error:
I've tried building Google OR-Tools Tag v6.10 and branch v6.10.x with Gurobi. For both installations, I added the following lines to Makefile.local :
The Gurobi directory above contains 'win64', and both versions of Google OR Tools are able to build Gurobi without any errors.
I have also edited my user and system variables to include:
The local and system Path also includes
GUROBI_HOME
.My understanding of this error is that it usually occurs when there is a problem with the installation of the IP engine itself. For example, when I installed CPLEX's free trial, and ran an example which went over the allowable limit of 1000 variables and 1000 constraints I saw this error. When I ran an example within the bounds of the free trial, it ran just fine.
So I checked my installation of Gurobi. I made sure to install gurobipy and I was even able to run this python example just fine.
I built OR Tools 6.1 and 6.10.x multiple times, making sure to run
tools\make clean_third_party
andtool\make uninstall_python
between builds but I get the same error referenced above.My environment is as follows:
Have you run into similar issues with Gurobi @lperron? If not, are there more detailed log files I can access?
Thank you,
Tameem
The text was updated successfully, but these errors were encountered: