PuLP version changed
PuLP version recently changed and caused the notebooks to get the following error:
/srv/conda/envs/notebook/lib/python3.7/site-packages/omegalpes/general/optimisation/model.py in <module>
27 import time as pytime
28
---> 29 from pulp import LpProblem, LpStatus, LpVariable, lpSum, LpVariableDict
30 from pulp.solvers import LpSolver
31
ImportError: cannot import name 'LpVariableDict' from 'pulp' (/srv/conda/envs/notebook/lib/python3.7/site-packages/pulp/__init__.py)
The examples requirements for PuLP have been changed to the version == 1.6.10 instead of >=1.6.10 (see commit in OMEGAlpes_examples). The following steps should be followed:
- Check if LpVariableDict is used in the OMEGAlpes source code. If not, remove it.
- Update PuLP to its last version in OMEGAlpes and check if everything works properly (tests, examples, ...).
- Go back to puLP version >=1.6.10 in OMEGAlpes examples.