Closed Rajiv2806 closed 4 years ago
You are using an example of the master branch against a previous version. Please recompile using the master branch if you want to use it. Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
Le jeu. 25 juin 2020 à 16:04, Rajiv2806 notifications@github.com a écrit :
What version of OR-tools and what language are you using? Version: '7.7.7810' Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) mixed-integer programming (MIP) solvers as defined in: https://developers.google.com/optimization/mip/integer_opt
What operating system (Linux, Windows, ...) and version?
Windows python 3.6 Conda Virtual Environment
What did you do? Steps to reproduce the behavior: import ortools print(ortools.version) from ortools.linear_solver import pywraplp solver = pywraplp.Solver.CreateSolver('simple_mip_program', 'cbc')
What did you expect to see
Successful Execution
What did you see instead?
7.7.7810
AttributeError: type object 'Solver' has no attribute 'CreateSolver'
Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/2081, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3ODSNMNFVFNIKRY7WLRYNKP7ANCNFSM4OIM37ZA .
My bad, it updated directly on devsite. Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
Le jeu. 25 juin 2020 à 16:08, Laurent Perron lperron@google.com a écrit :
You are using an example of the master branch against a previous version. Please recompile using the master branch if you want to use it. Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
Le jeu. 25 juin 2020 à 16:04, Rajiv2806 notifications@github.com a écrit :
What version of OR-tools and what language are you using? Version: '7.7.7810' Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) mixed-integer programming (MIP) solvers as defined in: https://developers.google.com/optimization/mip/integer_opt
What operating system (Linux, Windows, ...) and version?
Windows python 3.6 Conda Virtual Environment
What did you do? Steps to reproduce the behavior: import ortools print(ortools.version) from ortools.linear_solver import pywraplp solver = pywraplp.Solver.CreateSolver('simple_mip_program', 'cbc')
What did you expect to see
Successful Execution
What did you see instead?
7.7.7810
AttributeError: type object 'Solver' has no attribute 'CreateSolver'
Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/2081, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3ODSNMNFVFNIKRY7WLRYNKP7ANCNFSM4OIM37ZA .
doc "reverted" to stable branch, should be ok now...
Hi, I am still getting this error, I followed the getting started guide provided here - https://developers.google.com/optimization/introduction/python#run-program
Update -- when running with python3 program.py it is getting executed.
What version of OR-tools and what language are you using? Version: '7.7.7810' Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) mixed-integer programming (MIP) solvers as defined in: https://developers.google.com/optimization/mip/integer_opt
What operating system (Linux, Windows, ...) and version?
Windows python 3.6 Conda Virtual Environment
What did you do? Steps to reproduce the behavior:
import ortools print(ortools.__version__) from ortools.linear_solver import pywraplp solver = pywraplp.Solver.CreateSolver('simple_mip_program', 'cbc')
What did you expect to see
What did you see instead?
Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment