Gene-Weaver / LeafMachine2

LeafMachine2 is a modular suite of computer vision and machine learning algorithms that enables efficient identification, location, and measurement of vegetative, reproductive, and archival components from digital plant datasets.
https://leafmachine.org/
GNU General Public License v3.0
26 stars 6 forks source link

GLIBC_2.32 not found #3

Closed Gene-Weaver closed 2 months ago

Gene-Weaver commented 8 months ago

OSError - OSError: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.32' not found (required by /workspaces/LeafMachine2/venv_LM2/lib/python3.10/site-packages/pyexiv2/lib/libexiv2.so)`

This error arises if your Linux distro is too old to support GLIBC 2.32 https://lwn.net/Articles/828210/ which is used by the pyexiv2 package.

We use pyexiv2 in the SpecimenCrop.py workflow for cropping away whitespace around specimens, such as bryophytes or fungi specimens.

The best solution to fix this error is to use a more recent Linux distro, like Ubuntu 20.XX or 22.XX.

LM2 should not produce this error as of March 18, 2024 since pyexiv2 is only imported if you run SpecimenCrop.py, but the error will appear if you run SpecimenCrop.py on an older version of Linux.

Otherwise, you can try installing an older version of pyexiv2. I would try: pip install pyexiv2==2.32 OR pip install pyexiv2==2.0.0