Hi Daniel, On Sun, Oct 11, 2020 at 03:10:31PM -0400, Daniel Dickman wrote: > feedback? ok?
First, the python bindings seem to have a missing dependency: ``` cc -pthread -shared -fPIC -L/usr/local/lib/ -L/usr/obj/ports/Python-3.8.6/Python-3.8.6 -L/usr/local/lib/ -O2 -pipe /usr/local/pobj/py-lpsolve-5.5.2.5/lp_solve_5.5/extra/Python/temp.openbsd-6.8-amd64-3.8/lpsolve.o /usr/local/pobj/py-lpsolve-5.5.2.5/lp_solve_5.5/extra/Python/temp.openbsd-6.8-amd64-3.8/pythonmod.o -L../../lpsolve55/bin/ux32 -L/usr/local/lib -llpsolve55 -lcolamd -o /usr/local/pobj/py-lpsolve-5.5.2.5/lp_solve_5.5/extra/Python/lib.openbsd-6.8-amd64-3.8/lpsolve55.so ld: error: unable to find library -lcolamd ``` I was able to get further by installing math/suiteparse. I then went to diff the output of the examples before and after conversion to python 3. After converting 'print blah' to 'print(blah)' in the examples, I tried running the first example: ``` $ python3 example1.py Traceback (most recent call last): File "example1.py", line 3, in <module> lp = lpsolve('make_lp', 0, 4) lpsolve.error: Expecting a character element. ``` That error comes from C extension code, so it seems the conversion to Python3 incomplete? Might be easy to fix for someone who knows the Python extension API. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk