I am trying to run an image from this dockerfile, by first creating a docker image from it and then creating an apptainer image from the docker image.
here is the model config file
Inside the container when I try to run cd /workspace/mmdetection3d && python tools/train.py <config>, it gives an error:
Traceback (most recent call last):
File "/workspace/mmdetection3d/tools/train.py", line 10, in <module>
from mmengine.runner import Runner
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/__init__.py", line 2, in <module>
from ._flexible_runner import FlexibleRunner
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/_flexible_runner.py", line 14, in <module>
from mmengine._strategy import BaseStrategy
File "/opt/conda/lib/python3.10/site-packages/mmengine/_strategy/__init__.py", line 3, in <module>
from mmengine.utils.dl_utils import TORCH_VERSION
File "/opt/conda/lib/python3.10/site-packages/mmengine/utils/dl_utils/__init__.py", line 3, in <module>
from .collect_env import collect_env
File "/opt/conda/lib/python3.10/site-packages/mmengine/utils/dl_utils/collect_env.py", line 8, in <module>
import cv2
File "/opt/conda/lib/python3.10/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/opt/conda/lib/python3.10/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /.singularity.d/libs/libGLX.so.0)
This might be because the base image is pytorch 1.13.1 which is a bit old, and using cv2 might require newer versions of glibc.
I am trying to run an image from this dockerfile, by first creating a docker image from it and then creating an apptainer image from the docker image.
here is the model config file Inside the container when I try to run
cd /workspace/mmdetection3d && python tools/train.py <config>
, it gives an error:This might be because the base image is pytorch 1.13.1 which is a bit old, and using cv2 might require newer versions of glibc.