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
Run pulp with environment TMP="/Volumes/RAM Disk/"
What did you expect to see?
Results
What did you see instead?
Usage: gurobi_cl [--command]* [param=value]* filename
Type 'gurobi_cl --help' for more information.
Traceback (most recent call last):
[redacted]
File [redacted]
problem.solve(pulp.GUROBI_CMD(threads=16, timeLimit=600))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[redacted]/Python/3.13/lib/python/site-packages/pulp/pulp.py", line 1996, in solve
status = solver.actualSolve(self, **kwargs)
File "[redacted]/Python/3.13/lib/python/site-packages/pulp/apis/gurobi_api.py", line 494, in actualSolve
lp.assignVarsVals(values)
~~~~~~~~~~~~~~~~~^^^^^^^^
File "[redacted]/Python/3.13/lib/python/site-packages/pulp/pulp.py", line 1918, in assignVarsVals
for name in values:
^^^^^^
TypeError: 'NoneType' object is not iterable
Fix
Run pulp with environment TMP="/Volumes/RAMDisk/" (no space)
Is there anything we can do from the pulp side? such as escaping the paths or something? Let me know. Even better, submit a PR if you think you know how to fix it.
My Python skills aren't good enough to make the PR myself, but e.g. in the lines I cite, the file names/paths should be shell-escaped and shell-quoted before being added to options on the shell cmd
Details for the issue
What did you do?
Run pulp with environment TMP="/Volumes/RAM Disk/"
What did you expect to see?
Results
What did you see instead?
Fix
Run pulp with environment TMP="/Volumes/RAMDisk/" (no space)
See e.g.
pulp/pulp/apis/gurobi_api.py
Lines 463 to 471 in ebbbfde
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: