-
Notifications
You must be signed in to change notification settings - Fork 4
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
lp_solve on linux #4
Comments
Sorry for the late reply. Since the dependency is not only OS-dependent but machine-dependent, and I don't think the program should automatically download an external program either. A fix I would propose is a quick checker on the availability of Feel free to propose another solution, otherwise, I will remove the existing |
I believe this is the way to go. |
The We use macOS 14, on some systems the bundled |
Thank you all for pointing out the issue and I apologize for delaying this issue for quite a long time. I removed the built-in executable to get rid of any confusion. The program now tries to resolve the path of
When none of the above steps finds a valid I will still keep this issue open for a while in case there's still a problem with some people's machines because I don't have machines of all platforms to test. If everyone is OK with the current solution, I may close this issue afterwards. |
Tested a fresh clone, seems to work on debian on my side. |
I still have problems with lp_solve. I tried the updated version and to set path.json directly to the binary. |
Which OS are you on ? |
macOS Sonoma 14.2.1 |
Some quick test you may try:
|
Sorry for not answering sooner. |
@kuetebbg In this case, it probably is not the problem directly from lp_solve. If it's ok for you, please provide the network file you tested and briefly state what happened on your machine so I can reproduce the issue. |
I use the demo file under src/exampe/demo.json. |
Hey,
an issue we discussed with Stéphan a while ago:
The repo provides a copy of the lp_solve executable.
But when trying to launch on Linux for the first time I had the following error:
Digging a bit (printing the exception that you catch), I see:
And indeed executables don't have the same format depending on OS.
On linux/debian, lp_solve is provided by lp-solve apt package, so
sudo apt install lp-solve
Then
which lp_solve
returns on my machine/usr/bin/lp_solve
.So I replaced the
saihu/panco/lpSolvePath.py
file by commenting-out everything and writingLPSOLVEPATH = ["/usr/bin/lp_solve"]
.But of course it's a debian-specific solution. Maybe you can edit panco's file and your installation procedure to solve the installation issue on Linux/Debian while maintaining compatibility with other OSs ?
Ludovic
The text was updated successfully, but these errors were encountered: