Common problems

This subsection elaborates on a few of the common problems (and possible solutions) that occur when importing SIDL-specified extensions.

ImportError: undefined function.
The following illustrates an error that can arise that appears to be associated with an undefined function$:$

$»>$ import X.Y.Zmodule
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function (initZmodule)

This could be a matter of an incorrect import or a problem with the environment. Consider the following$:$

Is the name of your SIDL interface (or class) X.Y.Z or X.Y.Zmodule?
In the former case, the command should be import X.Y.Z instead.

Is PYTHONPATH set properly?
Make sure this environment variable contains directories for all required Python shared libraries.

If the answers to these questions do not solve the problem, submit a bug report for Babel.

Fatal Python error: class load
If the class fails to load, for example, the following occurs$:$

$»>$ import X.Y.Z
Fatal Python error: Cannot load implementation for SIDL class X.Y.Z
Abort (core dumped)

then the Python stub code -- the code that links Python to SIDL's independent object representation (IOR) -- failed in its attempt to load the shared or dynamically linked library that contains the implementation of SIDL class X.Y.Z. This is likely to be a path problem so consider the following$:$

Is SIDL_DLL_PATH set properly?
Make sure it lists all directories where the shared (or dynamic) link libraries for the required SIDL objects and interfaces are stored.

Is LD_LIBRARY_PATH set properly?
Make sure this environment variable (or whatever your machine's mechanism for locating shared library files) also includes the directory in which the SIDL runtime resides.

Fatal Python error: interface load.
If the following error occurs$:$

$»>$ import X.Y.Z
Fatal Python error: Cannot load implementation for SIDL interface X.Y.Z
Abort (core dumped)

it is the same problem described for the fatal error encountered when attempting to load a SIDL class.



babel-1.4.0
users_guide Last Modified 2008-10-16

http://www.llnl.gov/CASC/components
components@llnl.gov