安装python模块时,freeradius不查找某些库, 特别是pip列表中的py加密库
Python脚本在没有加密的情况下运行良好
如果我从控制台运行scrypt,那么所有库都是可见的,并且脚本工作正常
python脚本中的行
from Crypto.Cipher import AES
有错误:
python_function_load - Module 'radius' not found
python_error_log:200, Exception type: <class 'ImportError'>, Exception value: /usr/local /lib/python3.8/dist-packages/Crypto/Cipher/_AES.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyExc_SystemError
python_error_log:218, full_backtrace: ['Traceback (most recent call last):\n', ' File "/etc/freeradius/3.0/scripts/radius.py", line 15, in <module>\n from Crypto.Cipher import AES\n', ' File "/usr/local/lib/python3.8/dist-packages/Crypto/Cipher/AES.py", line 50, in <module>\n from Crypto.Cipher import _AES\n', 'ImportError: /usr/local/lib/python3.8/dist-packages/Crypto/Cipher/_AES.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyExc_SystemError\n']
python_function_load - Failed to import python function 'radius.authorize'
python_error_log:188, Unknown error
/etc/freeradius/3.0/radius.conf[78]:模块“python3”的实例化失败
Config radius.conf Python3{
python_path="/etc/freeradius/3.0/scripts/"
module = "radius"
mod_authorize = radius
func_authorize = authorize
mod_accounting = radius
func_accounting = accounting
}
python sys.path输出:
sys.path ‘/usr/lib/python38.zip’,
‘/usr/lib/python3.8’,
‘/usr/lib/python3.8/lib-dynload’,
‘/usr/local/lib/python3.8/dist-packages’,
‘/usr/local/lib/python3.8/dist-packages/py_crypto-0.0.4-py3.8.egg’,
‘/usr/lib/python3/dist-packages’,
‘/etc/freeradius/3.0/scripts/’,
’/usr/local/lib/python3.8/dist-packages/
目前没有回答
相关问题 更多 >
编程相关推荐