google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
11k stars 2.1k forks source link

Devsite is following the master branch instead of the stable one #2081

Closed Rajiv2806 closed 4 years ago

Rajiv2806 commented 4 years ago

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

lperron commented 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 .

lperron commented 4 years ago

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 .

Mizux commented 4 years ago

doc "reverted" to stable branch, should be ok now...

manikantagadde commented 4 years ago

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.