Re: iluPr?

Bill Janssen (janssen@parc.xerox.com)
Tue, 14 Feb 1995 17:15:02 PST

Excerpts from ext.ilu.bugs: 14-Feb-95 iluPr? Don Ledford@networx.com (1200*)

> I've built the 1.7beta on Linux (P90, 1.1.84, X11R6 ...). I configured
> for C, C++, and python interfaces. All went well after the following:

> 1) I stopped setting ILUSRC to ILUHOME - This seemed to confuse things

In our setup, ILUSRC is usually equal to $(ILUHOME)/src

> 2) I properly installed python on my system

Making sure it's Python 1.1.1, I hope...

> 3) I added a '-r' flag to the LD command to build iluPrmodule.so

Ah, good. We'll add that to the macros in ILUSRC/imake/ilu.defs.

> But the python versions fail as follows:
> python pyServer.py
> Traceback (innermost last):
> File "pyServer.py", line 1, in ?
> import ilu
> File "/home/ledford/proj/ilu/lib/ilu.py", line 21, in ?
> from iluRt import \
> File "/home/ledford/proj/ilu/lib/iluRt.py", line 20, in ?
> from iluPr import *
> ImportError: No module named iluPr

> I get the same error from both the python client and server. I don't
> seem to have a iluPr.py module. Was this left out of the tar or did
> it fail to build or ?

It's possible it just didn't install properly. There should be a file
called $(ILUHOME)/lib/iluPrmodule.so. Make sure that $(ILUHOME)/lib is
on your PYTHONPATH (it appears to be).

It could also be that Python does not support dynamic loading on Linux,
so that you can't use .so files. When we build Python on Linux, we
#undef PYTHON_USES_SHARED_LIBRARIES_FOR_EXTENSIONS (in
ILUSRC/imake/local.defs), and just build a new Python image (called
``ilupython'') that includes the iluPr module statically linked.

> ILU looks pretty good; I plan to write an test application. I hoped to
> use python with tkinter for the GUI portion.

Great; please keep us posted.

Bill