You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently need to read a .mps file back into Pycharm using LpProblem.fromMPS([file directory], sense=Lp.Maximize). However, when doing things on UNIX system in a Docker container (Jenkins), I kept bumping into the weird error:
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/pulp.py", line 1541, in fromMPS
15:36:40 data = mpslp.readMPS(filename, sense=sense, **kwargs)
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/mps_lp.py", line 91, in readMPS
15:36:40 row_name = line[1]
15:36:40 IndexError: list index out of range
What did you expect to see?
I expect the file to be read successfully, as I was able to do so locally on a Windows 10 system.
What did you see instead?
Error message:
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/pulp.py", line 1541, in fromMPS
15:36:40 data = mpslp.readMPS(filename, sense=sense, **kwargs)
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/mps_lp.py", line 91, in readMPS
15:36:40 row_name = line[1]
15:36:40 IndexError: list index out of range
Useful extra information
The info below often helps, please fill it out if you're able to. :)
Details for the issue
What did you do?
I currently need to read a
.mps
file back into Pycharm usingLpProblem.fromMPS([file directory], sense=Lp.Maximize)
. However, when doing things on UNIX system in a Docker container (Jenkins), I kept bumping into the weird error:15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/pulp.py", line 1541, in fromMPS
15:36:40 data = mpslp.readMPS(filename, sense=sense, **kwargs)
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/mps_lp.py", line 91, in readMPS
15:36:40 row_name = line[1]
15:36:40 IndexError: list index out of range
What did you expect to see?
I expect the file to be read successfully, as I was able to do so locally on a Windows 10 system.
What did you see instead?
Error message:
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/pulp.py", line 1541, in fromMPS
15:36:40 data = mpslp.readMPS(filename, sense=sense, **kwargs)
15:36:40 File "/-python/.local/lib/python3.10/site-packages/pulp/mps_lp.py", line 91, in readMPS
15:36:40 row_name = line[1]
15:36:40 IndexError: list index out of range
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
I'm using python version:
I installed PuLP via:
Did you also
The text was updated successfully, but these errors were encountered: