Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gilbc version error on running in a container #75

Closed
D3xter1922 opened this issue Sep 5, 2024 · 1 comment
Closed

gilbc version error on running in a container #75

D3xter1922 opened this issue Sep 5, 2024 · 1 comment

Comments

@D3xter1922
Copy link

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.

@filaPro
Copy link
Owner

filaPro commented Sep 5, 2024

It is extremely strange as i just built the docker image with this dockerfile and everything is fine.

By the way, why your directory is /workspace/mmdetection3d and not /workspace/oneformer3d?

@filaPro filaPro closed this as completed Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants