can't run on BMC python env

xiuzhi 1450335857 at
Thu Nov 15 17:26:00 AEDT 2018

Hi All,
   I want to use PAM python module  in the /usr/lib/python2.7/site-packages .
 The error is as follows : 
1)root at haiguang1:/usr/lib/python2.7/site-packages# python -m pamela -a `whoami`
Could not import runpy module

2)root at haiguang1:/usr/lib/python2.7/site-packages# python ./
Traceback (most recent call last):
  File "./", line 143, in <module>
    PAM_START = LIBPAM.pam_start
  File "/usr/lib/python2.7/ctypes/", line 379, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/", line 384, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python: undefined symbol: pam_start

I run the on ubuntu16.04 ,it work very well.
Who can give me some suggestions?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openbmc mailing list