Red Hat Bugzilla – Bug 7119
Can't use NIS module with Python
Last modified: 2008-05-01 11:37:53 EDT
I can't import and use the NIS module with Python 1.5.2. This is what it
looks like trying it from the interactive prompt:
Python 1.5.2 (#1, Nov 18 1999, 16:29:32) [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import nis
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: /usr/lib/python1.5/lib-dynload/nismodule.so: undefined
I've looked at the definition of /usr/include/rpcsvc/ypclnt.h and
yperr_string is indeed in there. I don't do much with dynamically loaded
libraries, so I'm not sure where to go from here.
nismodule needed to be linked with -lnsl
Fixed in python-1.5.2-8 package which will be in the next RawHide
release. Please re-open this bug if that is not the case.
Thanks for the report!