version `GLIBC_2.27' not found
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- aws, docker, linux, python
- 领域
- build-system, cloud
调研方向
从 Docker 镜像中复现导入失败,并检查从 lambda_function.py 经过 get_prediction.py 和 feature_extraction.py 到 opensmile/core/SMILEapi.py 的依赖路径。检查构建的 libSMILEapi.so 是否与 Lambda 运行时兼容,以及 Docker 构建和 LD_LIBRARY_PATH 设置是否能够实现正常导入。当 Lambda 能够在没有 GLIBC_2.27 错误的情况下导入 opensmile 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hi guys, please help me with this issue:
[ERROR] OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /var/lang/lib/python3.9/site-packages/opensmile/core/bin/linux/libSMILEapi.so)
Traceback (most recent call last):
File "/var/lang/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/var/task/lambda_function.py", line 15, in
from get_prediction import get_prediction
File "/var/task/get_prediction.py", line 7, in
from feature_extraction import get_features
File "/var/task/feature_extraction.py", line 19, in
import opensmile as opnsmile
File "/var/lang/lib/python3.9/site-packages/opensmile/init.py", line 6, in
from opensmile.core.smile import (
File "/var/lang/lib/python3.9/site-packages/opensmile/core/smile.py", line 13, in
from opensmile.core.SMILEapi import (
File "/var/lang/lib/python3.9/site-packages/opensmile/core/SMILEapi.py", line 23, in
smileapi = cdll.LoadLibrary(smileapi_path)
File "/var/lang/lib/python3.9/ctypes/init.py", line 452, in LoadLibrary
return self._dlltype(name)
File "/var/lang/lib/python3.9/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
*** Server AWS SageMaker system. System information:
sh-4.2$ uname -r 4.14.248-129.473.amzn1.x86_64
***Docker image:
FROM public.ecr.aws/lambda/python:3.9 as build-image
ARG FUNCTION_DIR="./app/"
ARG NUMBA_CACHE_DIR="/tmp"
RUN yum install -y tar xz yum-utils
RUN yum remove cmake
RUN yum update -y
# start install sudo, wget and openssl, which is required for building CMake
RUN yum install sudo wget openssl-devel -y
### start install development tools
RUN sudo yum groupinstall "Development Tools" -y
RUN gcc --version
RUN g++ --version
# Download, build and install cmake
RUN wget https://cmake.org/files/v3.18/cmake-3.18.0.tar.gz
RUN tar -xvzf cmake-3.18.0.tar.gz
RUN cd cmake-3.18.0/ && \
./bootstrap && \
make && \
make install
### start opensmile compilation and
RUN wget https://github.com/audeering/opensmile/archive/master.zip && \
unzip master.zip && \
cd opensmile-master/ && \
./build.sh
### end opensmile compilation
## start glibc installation
RUN mkdir ~/glibc227
RUN cd ~/glibc227
RUN wget http://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.gz
RUN tar zxvf glibc-2.27.tar.gz && \
cd glibc-2.27 && \
mkdir build && \
cd build && \
../configure --prefix=/opt/glibc-2.27 && \
make -j4 && \
make install
# Install aws-lambda-cpp build dependencies
RUN yum update -y
RUN yum install -y git cmake libmad-devel libsndfile-devel gd-devel boost-devel
RUN yum install -y install apt-utils gcc libpq-dev libsndfile-dev
RUN yum update -y
RUN python -m pip install -U scikit-image
RUN python -m pip install boto3
COPY ${FUNCTION_DIR} ./
COPY requirements.txt ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
RUN python -m pip install -r requirements.txt
# Install the runtime interface client
RUN python -m pip install \
--target ${FUNCTION_DIR} \
awslambdaric
RUN show-installed
CMD [ "lambda_function.lambda_handler" ]
In the lambda I add this line:
os.environ['LD_LIBRARY_PATH'] = '/opt/glibc-2.27/lib:' + os.environ['LD_LIBRARY_PATH']
def lambda_handler(event, context):
...
Please help me
- 主要语言
- BitBake
- 星标
- 334
- 派生
- 42
- 平均合并
- 57 分钟
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
audeering/opensmile-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
audeering/opensmile-python#133 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
audeering/opensmile-python#131 ·
-
难度 4/5 3-5 天 新手友好度 25/100
audeering/opensmile-python#123 ·
-
难度 3/5 1-2 天 新手友好度 35/100
audeering/opensmile-python#122 ·
-
难度 4/5 3-5 天 新手友好度 25/100
audeering/opensmile-python#110 ·
查看 audeering/opensmile-python 的全部 Issue
相似的 Issue
-
core dependencies
难度 1/5 1 小时以内 新手友好度 80/100
-
bug github_actions
难度 2/5 1-3 小时 新手友好度 75/100
registrystack/registry-stack#1393 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
Name consistency 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
eellak/triplestore#65 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100