Skip to content
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

2 tests fail #951

Open
yurivict opened this issue Feb 9, 2025 · 4 comments
Open

2 tests fail #951

yurivict opened this issue Feb 9, 2025 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Feb 9, 2025

Describe the bug

================================================================================================================================== FAILURES ===================================================================================================================================
___________________________________________________________________________________________________________________________ test_incomplete_pricer ____________________________________________________________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.11 /usr/local/bin/python3.11
CALL ERROR: Exceptions caught in Qt event loop:
________________________________________________________________________________
Traceback (most recent call last):
  File "src/pyscipopt/pricer.pxi", line 28, in pyscipopt.scip.Pricer.pricerredcost
    raise NotImplementedError("pricerredcost() is a fundamental callback and should be implemented in the derived class")
NotImplementedError: pricerredcost() is a fundamental callback and should be implemented in the derived class
________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------------------------------------------------------------
feasible solution found by trivial heuristic after 0.0 seconds, objective value 0.000000e+00
presolving:
presolving (1 rounds: 1 fast, 1 medium, 1 exhaustive):
 0 deleted vars, 0 deleted constraints, 0 added constraints, 0 tightened bounds, 0 added holes, 0 changed sides, 0 changed coefficients
 0 implications, 0 cliques
presolved problem has 0 variables (0 bin, 0 int, 0 impl, 0 cont) and 0 constraints
Presolving Time: 0.00
transformed 1/1 original solutions to the transformed problem space

---------------------------------------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------------------------------------
Exceptions caught in Qt event loop:
________________________________________________________________________________
Traceback (most recent call last):
  File "src/pyscipopt/pricer.pxi", line 28, in pyscipopt.scip.Pricer.pricerredcost
    raise NotImplementedError("pricerredcost() is a fundamental callback and should be implemented in the derived class")
NotImplementedError: pricerredcost() is a fundamental callback and should be implemented in the derived class
________________________________________________________________________________
[pricer.c:422] ERROR: Error <0> in function call
[pricer.c:506] ERROR: Error <0> in function call
[solve.c:2216] ERROR: Error <0> in function call
[solve.c:2487] ERROR: Error <0> in function call
[solve.c:3217] ERROR: Error <0> in function call
[solve.c:4023] ERROR: Error <0> in function call
[solve.c:4323] ERROR: Error <0> in function call
[solve.c:5114] ERROR: Error <0> in function call
[scip_solve.c:2664] ERROR: Error <0> in function call
____________________________________________________________________________________________________________________________ test_empty_relaxator _____________________________________________________________________________________________________________________________
[gw3] freebsd14 -- Python 3.11.11 /usr/local/bin/python3.11
CALL ERROR: Exceptions caught in Qt event loop:
________________________________________________________________________________
AssertionError: relaxexec() must return a dictionary.
________________________________________________________________________________
---------------------------------------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------------------------------------
Exceptions caught in Qt event loop:
________________________________________________________________________________
AssertionError: relaxexec() must return a dictionary.
________________________________________________________________________________
[relax.c:395] ERROR: Error <0> in function call
[solve.c:3333] ERROR: Error <0> in function call
[solve.c:3998] ERROR: Error <0> in function call
[solve.c:4323] ERROR: Error <0> in function call
[solve.c:5114] ERROR: Error <0> in function call
[scip_solve.c:2664] ERROR: Error <0> in function call
============================================================================================================================== warnings summary ===============================================================================================================================
tests/test_linexpr.py::test_ranged
tests/test_linexpr.py::test_power_for_quadratic
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_linexpr.py:8: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_vars.py::test_vtype
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_vars.py:51: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_logical.py: 182 warnings
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_logical.py:30: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model(name)

tests/test_pricer.py::test_cuttingstock
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_pricer.py:80: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model("CuttingStock")

tests/test_pricer.py::test_cuttingstock
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_pricer.py:15: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    subMIP = Model("CuttingStock-Sub")

tests/test_pricer.py::test_incomplete_pricer
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_pricer.py:172: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_pricer.py::test_incomplete_pricer
  /usr/local/lib/python3.11/site-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning: Exception ignored in: 'pyscipopt.scip.PyPricerRedcost'
  
  Traceback (most recent call last):
    File "src/pyscipopt/pricer.pxi", line 28, in pyscipopt.scip.Pricer.pricerredcost
      raise NotImplementedError("pricerredcost() is a fundamental callback and should be implemented in the derived class")
  NotImplementedError: pricerredcost() is a fundamental callback and should be implemented in the derived class
  
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_vars.py::test_variablebounds
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_vars.py:5: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_nodesel.py::test_nodesel_fifo
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nodesel.py:73: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_alldiff.py::test_main
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_alldiff.py:216: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model("Sudoku")

tests/test_strong_branching.py: 3 warnings
tests/test_relax.py: 1 warning
tests/test_heur.py: 1 warning
tests/test_nodesel.py: 1 warning
tests/test_nogil.py: 1 warning
tests/test_branch_mostinfeas.py: 1 warning
tests/test_solution.py: 2 warnings
tests/test_model.py: 1 warning
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/helpers/utils.py:5: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_recipe_primal_dual_evolution.py::test_primal_dual_evolution
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/helpers/utils.py:96: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model("Binpacking")

tests/test_reader.py::test_sudoku_reader
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_reader.py:65: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("sudoku")

tests/test_quicksum.py::test_largequadratic
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quicksum.py:25: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("dense_quadratic")

tests/test_quicksum.py::test_quicksum_model
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quicksum.py:5: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("quicksum")

tests/test_nonlinear.py::test_addExprNonLinear
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nonlinear.py:292: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_nonlinear.py::test_string
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nonlinear.py:75: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_nonlinear.py::test_gastrans
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nonlinear.py:204: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_nonlinear.py::test_quad_coeffs
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nonlinear.py:270: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_relax.py::test_empty_relaxator
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_relax.py:49: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_relax.py::test_empty_relaxator
  /usr/local/lib/python3.11/site-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning: Exception ignored in: 'pyscipopt.scip.PyRelaxExec'
  
  Traceback (most recent call last):
    File "/usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_relax.py", line 65, in test_empty_relaxator
      m.optimize()
  AssertionError: relaxexec() must return a dictionary.
  
    warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_relax.py::test_relaxator
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_relax.py:19: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_heur.py::test_heur
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_heur.py:87: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_heur.py::test_heurTiming
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_heur.py:135: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_nonlinear.py::test_string_poly
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nonlinear.py:20: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_recipe_nonlinear.py::test_nonlinear_objective
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_recipe_nonlinear.py:5: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_recipe_nonlinear.py::test_nonlinear_objective
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_recipe_nonlinear.py:23: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model2 = Model()

tests/test_heur.py::test_heur_memory
tests/test_memory.py::test_freed
tests/test_memory.py::test_not_freed
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_memory.py:21: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_copy.py::test_copy
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_copy.py:6: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_copy.py::test_copy
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_copy.py:15: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s2 = Model(sourceModel=s)

tests/test_gomory.py::test_CKS
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_gomory.py:300: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_sub_sol.py::test_sub_sol
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_sub_sol.py:33: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("sub_sol_test")

tests/test_sub_sol.py::test_sub_sol
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_sub_sol.py:19: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m2 = self.original_model.copyLargeNeighborhoodSearch(self.fix_vars, self.fix_vals)

tests/test_knapsack.py::test_knapsack
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_knapsack.py:5: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model("Knapsack")

tests/test_expr.py::test_degree
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_expr.py:8: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_benders.py::test_flpbenders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_benders.py:24: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    master = Model("flp-master")

tests/test_benders.py::test_flpbenders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_benders.py:25: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    subprob = Model("flp-subprob")

tests/test_event.py::test_event_handler_callback
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_event.py:86: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_event.py::test_event
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_event.py:69: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_recipe_piecewise.py::test_add_piecewise_linear_cons2
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_recipe_piecewise.py:18: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_recipe_piecewise.py::test_add_piecewise_linear_cons
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_recipe_piecewise.py:6: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_printCons
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:174: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_getOrigConss
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:157: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_constraint_option_setting
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:32: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_cons_indicator_fail
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:133: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_addConsCardinality
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:146: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_addConsDisjunction_expr_init
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:204: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_addConsElemDisjunction
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:183: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_cons_logical
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:49: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_getConsVars
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:22: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_getConsNVars
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:8: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_cons_indicator
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:103: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cons.py::test_SOScons
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cons.py:76: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_bipartite.py::test_bipartite_graph
tests/test_bipartite.py::test_bipartite_graph_static
tests/test_bipartite.py::test_bipartite_graph_static_use_prev
tests/test_bipartite.py::test_bipartite_graph_use_prev
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_bipartite.py:46: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_conshdlr.py::test_conshdlr
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_conshdlr.py:190: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_reopt.py::ReoptimizationTest::test_reopt
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_reopt.py:8: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_model_relax
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:225: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_model.py::test_delCoefLinear
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:191: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_chgCoefLinear
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:202: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_getTreesizeEstimation
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:310: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_nogil.py::test_optimalNogil
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nogil.py:10: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    models = [Model(sourceModel=ori_model) for _ in range(N_Threads)]

tests/test_model.py::test_version_external_codes
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:382: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_model.py::test_addCoefLinear
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:180: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_multiple_cons_params
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:170: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_model
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:10: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_model.py::test_setLogFile
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:324: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_model
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:74: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_model.py::test_getObjVal
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:449: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_multiple_cons_simple
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:110: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_model.py::test_multiple_cons_simple
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:115: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_objLim
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:267: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_objLim
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:275: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_getVarsDict
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:243: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model()

tests/test_model.py::test_solve_concurrent
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:87: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_model.py::test_solve_concurrent
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:92: UserWarning: SCIP was compiled without task processing interface. Parallel solve not possible - using optimize() instead of solveConcurrent()
    s.solveConcurrent()

tests/test_model.py::test_model_ptr
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:213: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model1 = Model()

tests/test_model.py::test_model_ptr
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:217: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model2 = Model.from_ptr(ptr1, take_ownership=True)

tests/test_model.py::test_getStage
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:283: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_locale
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:363: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_customizedbenders.py::test_customized_benders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_customizedbenders.py:146: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    master = Model("flp-master")

tests/test_customizedbenders.py::test_customized_benders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_customizedbenders.py:24: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    subprob = Model("flp-subprob")

tests/test_customizedbenders.py::test_customized_benders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_customizedbenders.py:57: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    subprob = self.model.getBendersSubproblem(probnumber, self)

tests/test_customizedbenders.py::test_customized_benders
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_customizedbenders.py:91: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    subprob = self.model.getBendersSubproblem(probnumber, benders=self.benders)

tests/test_tree.py::test_tree
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_tree.py:38: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_solution.py::test_hasPrimalRay
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:131: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_hasPrimalRay
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:140: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_print_solution
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:180: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_solution_evaluation
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:81: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_getPrimalRay
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:162: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_getSolTime
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:113: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_createOrigSol
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:52: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_getSols
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:190: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_solution_getbest
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:8: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_solution.py::test_solution_create
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:29: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_quickprod.py::test_quickprod_model
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quickprod.py:7: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("quickprod")

tests/test_quickprod.py::test_largequadratic
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quickprod.py:27: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("dense_quadratic")

tests/test_quadcons.py::test_niceqcqp
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quadcons.py:18: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_quadcons.py::test_niceqp
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_quadcons.py:4: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    s = Model()

tests/test_recipe_infeasibilities.py::test_get_infeasible_constraints
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_recipe_infeasibilities.py:6: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_recipe_infeasibilities.py::test_get_infeasible_constraints
  /usr/ports/math/py-PySCIPOpt/work-py311/stage/usr/local/lib/python3.11/site-packages/pyscipopt/recipes/infeasibilities.py:10: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model(sourceModel=orig_model, origcopy=True) # to preserve the model

tests/test_nlrow.py::test_nlrow
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_nlrow.py:13: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model("nlrow")

tests/test_branch_probing_lp.py::test_branching
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_branch_probing_lp.py:44: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_tsp.py::test_main
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_tsp.py:64: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    model = Model("TSP")

tests/test_model.py::test_setLogFile_none
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:340: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_redirection
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:495: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    redirect = Model()

tests/test_model.py::test_primal_dual_limit
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:389: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_model.py::test_multiple_cons_names
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:127: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_multiple_cons_names
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:139: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_model.py::test_getObjective
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_model.py:302: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

tests/test_cutsel.py::test_cut_selector
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_cutsel.py:35: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    scip = Model()

tests/test_solution.py::test_getPrimalRayVal
  /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_solution.py:150: UserWarning: linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1
    m = Model()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

-------- coverage: platform freebsd14, python 3.11.11-final-0 --------
Name                                             Stmts   Miss  Cover
--------------------------------------------------------------------
src/pyscipopt/Multidict.py                          17     17     0%
src/pyscipopt/_version.py                            1      1     0%
src/pyscipopt/recipes/infeasibilities.py            30     30     0%
src/pyscipopt/recipes/nonlinear.py                  11     11     0%
src/pyscipopt/recipes/piecewise.py                  18     18     0%
src/pyscipopt/recipes/primal_dual_evolution.py      24     24     0%
--------------------------------------------------------------------
TOTAL                                              101    101     0%

=========================================================================================================================== short test summary info ===========================================================================================================================
SKIPPED [96] tests/test_logical.py:162: unsupported logical: B
SKIPPED [1] tests/test_reader.py:83: Test fails on Windows when using cibuildwheel. Cannot find tests/data
SKIPPED [1] tests/test_nonlinear.py:111: Test fails on CPython3.6 for MacOS with x86_64
SKIPPED [1] tests/test_short.py:62: got empty parameter set ['instance'], function test_instance at /usr/ports/math/py-PySCIPOpt/work-py311/PySCIPOpt-5.3.0/tests/test_short.py:61
SKIPPED [1] tests/test_heur.py:110: Skipped
SKIPPED [1] tests/test_memory.py:12: Skipped
SKIPPED [1] tests/test_memory.py:6: Skipped
SKIPPED [1] tests/test_cons.py:218: TODO: test getValsLinear()
SKIPPED [1] tests/test_cons.py:223: TODO: test getRowLinear()
SKIPPED [1] tests/test_model.py:379: pt_PT locale was not found. It might need to be installed.
==================================================================================================== 2 failed, 299 passed, 105 skipped, 11 xfailed, 308 warnings in 58.95s ====================================================================================================

System

  • OS: FreeBSD 14.2
  • Version: 5.3.0
  • SCIP version: 9.2.0
  • How did you install pyscipopt? From source
@Joao-Dionisio
Copy link
Collaborator

Hey @yurivict, thank you for bringing this to our attention! Apparently, these errors are being ignored on the Python side, I'll try to find out why.

Also, it probably makes sense for us to not print the same warning about linking to a newer SCIP version every test :)

@Joao-Dionisio
Copy link
Collaborator

So just looked into it, and this is the desired behavior.

So, for example, in the Pricer plugin, pricerredcost is a fundamental callback, meaning that a Pricer should not work without it. When we're testing an empty pricer, we want the error to show up, so we assert its existence. I'll try to suppress this desired failed assertion message.

@termoshtt
Copy link

termoshtt commented Feb 10, 2025

linked SCIP 9.02 is not recommended for this version of PySCIPOpt - use version 9.2.1

I get same warning after upgrade to 5.3.0 on Linux and macOS:

pip install "pyscipopt==5.3.0"
python -c "import pyscipopt; pyscipopt.Model()"

Is this warning message correct? I guess attached SCIP in pyscipopt wheel is incompatible.

(cc: Jij-Inc/ommx#311)

@Joao-Dionisio
Copy link
Collaborator

Joao-Dionisio commented Feb 10, 2025

Hey, @termoshtt! That also happened to me, and then I remember I had SCIPOPTDIR defined somewhere else, and my local pyscipopt was linking against it. After uninstalling my previous version of pyscipopt and removing SCIPOPTDIR from my bash, I stopped having the warning. Could something like this help?

(On a side note, I'm always super happy to see other projects using PySCIPOpt!! Please don't be afraid to ask for features you'd want to see)

EDIT: This warning was also reproducible on our end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants