after running my model (succesfully) I get the following traceback:
Exception ignored in: <function Cplex.__del__ at 0x00000171E25A08B0>
Traceback (most recent call last):
File "C:\Users\Ervin\Documents\Pyprojects\Inventory optimization\inv-opt\lib\site-packages\cplex\__init__.py", line 927, in __del__
File "C:\Users\Ervin\Documents\Pyprojects\Inventory optimization\inv-opt\lib\site-packages\cplex\__init__.py", line 917, in end
AttributeError: 'NoneType' object has no attribute 'freeprob'
Exception ignored in: <function Environment.__del__ at 0x00000171E25649D0>
File "C:\Users\inv-opt\lib\site-packages\cplex\_internal\__init__.py", line 162, in __del__
File "C:\\inv-opt\lib\site-packages\cplex\_internal\__init__.py", line 153, in _end
File "C:\Users\Ervin\Documents\Pyprojects\Inventory optimization\inv-opt\lib\site-packages\cplex\_internal\__init__.py", line 245, in _delete_stream
AttributeError: 'NoneType' object has no attribute 'getchannels'
This leads me to believe this is some kind of bug as nowhere is my code is anything named 'getchannels' nor 'freeprob'. I am using pulp to compile the model and solve it through the python api.
Has anyone encountered something similar?
Dear Viu,the cplex python api has been installed only in one location, the path differ because of some error during copy-pasting.
Checking the __innit__ version 126.96.36.199 is indeed installed.
Do have however 2 version of cplex optimization studio installed, I do not know if that would be relevant?Kind regards
thank you for your help.
The command seems to run fine, this is the output:C:\Users\Ervin\Documents\Pyprojects\Inventory optimization\inv-opt\lib\site-packages\cplex\_internal\_procedural.py