[Numpy-discussion] PY_ARRAY_UNIQUE_SYMBOL
Bill Spotz
wfspotz at sandia.gov
Wed May 21 16:34:33 EDT 2008
I am running into a problem with a numpy-compatible extension module
that I develop, and I believe it has to do with PY_ARRAY_UNIQUE_SYMBOL.
I set PY_ARRAY_UNIQUE_SYMBOL to "PyTrilinos". On my machine (Mac OS
X), the module loads and works properly. Another user, however (on
Ubuntu), gets the following:
ImportError: Failure linking new module: /usr/local/lib/python2.4/
site-
packages/PyTrilinos/_Epetra.so: Symbol not found: _PyTrilinos
Referenced from: /usr/local/lib/libpytrilinos.dylib
Expected in: dynamic lookup
On my machine, I see:
$ nm libpytrilinos.dylib | grep PyTrilinos
U _PyTrilinos
...
and I'm not sure where the symbol actually IS defined. I don't
understand enough about how PY_ARRAY_UNIQUE_SYMBOL is actually used to
hunt this down, especially through another user on a machine I don't
have access to.
Any ideas on what I should be looking for?
Thanks
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370 Email: wfspotz at sandia.gov **
More information about the NumPy-Discussion
mailing list