cannot import math module in rlm_python

Alan DeKok aland at deployingradius.com
Wed Jun 19 16:01:04 UTC 2024


On Jun 19, 2024, at 11:53 AM, Chinnapaiyan, Nagamani <nagamani.chinnapaiyan at viasat.com> wrote:
> We are using latest master branch(#933d82589741cf7e70150eb01744735be3380f5c).
> 
> built the rpms on alma8 using redhat/freeradius.spec, noticed python was compiled successfully and installed on an alma8 machine.
> 
> we see following error when using python module.(when importing math in example.py).
> ...
> 
> Error : python - python_function_load - Module 'example' load failed
> 
> Error : python - <class 'ImportError'> (/usr/lib64/python3.8/lib-dynload/math.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyExc_ValueError)

  This looks like a python library issue.

https://stackoverflow.com/questions/44596588/custom-python-build-time-so-undefined-symbol-pyexc-valueerror

  i.e. some libraries are using one version of python, and other libraries are using a different version of python.

  Alan DeKok.



More information about the Freeradius-Users mailing list