libffcv / ffcv

FFCV: Fast Forward Computer Vision (and other ML workloads!)
https://ffcv.io
Apache License 2.0
2.87k stars 179 forks source link

GLIBC_2.34 not found #384

Open richardrl opened 3 months ago

richardrl commented 3 months ago
  File "/data/scratch-oc40/pulkitag/rli14/hamer_diffusion_policy/workspace/train_diffusion_unet_image_workspace.py", line 80, in run
    from ffcv.loader import Loader, OrderOption
  File "/data/pulkitag/models/rli14/ffcv/ffcv/__init__.py", line 1, in <module>
    from .loader import Loader
  File "/data/pulkitag/models/rli14/ffcv/ffcv/loader/__init__.py", line 1, in <module>
    from .loader import Loader, OrderOption
  File "/data/pulkitag/models/rli14/ffcv/ffcv/loader/loader.py", line 14, in <module>
    from ffcv.fields.base import Field
  File "/data/pulkitag/models/rli14/ffcv/ffcv/fields/__init__.py", line 1, in <module>
    from .base import Field
  File "/data/pulkitag/models/rli14/ffcv/ffcv/fields/base.py", line 6, in <module>
    from ..pipeline.operation import Operation
  File "/data/pulkitag/models/rli14/ffcv/ffcv/pipeline/__init__.py", line 2, in <module>
    from .pipeline_spec import PipelineSpec
  File "/data/pulkitag/models/rli14/ffcv/ffcv/pipeline/pipeline_spec.py", line 5, in <module>
    from ..transforms.module import ModuleWrapper
  File "/data/pulkitag/models/rli14/ffcv/ffcv/transforms/__init__.py", line 5, in <module>
    from .random_resized_crop import RandomResizedCrop
  File "/data/pulkitag/models/rli14/ffcv/ffcv/transforms/random_resized_crop.py", line 5, in <module>
    from .utils import fast_crop
  File "/data/pulkitag/models/rli14/ffcv/ffcv/transforms/utils/fast_crop.py", line 4, in <module>
    from ...libffcv import ctypes_resize
  File "/data/pulkitag/models/rli14/ffcv/ffcv/libffcv.py", line 6, in <module>
    import ffcv._libffcv

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /data/pulkitag/models/rli14/ffcv/ffcv/_libffcv.cpython-39-x86_64-linux-gnu.so)

I got this error today. It seems I already have libc6.

(/data/scratch-oc40/pulkitag/rli14/micromamba/ffcv_oct40) rli14@fitzroy:/data/scratch-oc40/pulkitag/rli14/hamer_diffusion_policy$ sudo apt install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc6 is already the newest version (2.31-0ubuntu9.16).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Any clue on the fix?

richardrl commented 3 months ago

I got this error because I was trying to use FFCV across different systems in a SLURM setup. It works if I run it on the original system...