Nix error with python program

Problem description

I have been running a python program without problems for over a week. Today, I started receiving the following error:

--> poetry add pytz requests google-auth gspread numpy pandas
/nix/store/9vafkkic27k7m4934fpawl6yip3a6k4h-bash-5.2-p21/bin/bash: /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/9vafkkic27k7m4934fpawl6yip3a6k4h-bash-5.2-p21/bin/bash)
exit status 1

/nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/bin/python3: /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libm.so.6: version `GLIBC_2.38' not found (required by /nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/lib/libpython3.10.so.1.0)
/nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/bin/python3: /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/lib/libpython3.10.so.1.0)
/nix/store/8w6mm5q1n7i7cs1933im5vkbgvjlglfn-python3-3.10.13/bin/python3: /nix/store/dg8mpqqykmw9c7l0bgzzb5znkymlbfjw-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/3wvj2nbynari4iirc4yx3mhf26hbjr9s-libxcrypt-4.4.36/lib/libcrypt.so.2)

I updated my Nix packages using the following commands:

nix-channel --update
nix-env -u '*'

The program now executes, but it continued to generate an error:

nix error: building nix env: os.Readlink() channel: readlink /home/runner/.nix-defexpr/channels/nixpkgs-stable-23_05: no such file or directory

I tried running the following command, but it made no difference:

nix-channel --add https://channels.nixos.org/nixpkgs-23.05-darwin
nix-channel --update

Any ideas on how to address this?

Expected behavior

Program should run

Actual behavior

Generates the nix errors noted above

Steps to reproduce

Run program and wait for it to execute

Browser

Chrome

OS

Mac OS

Device if mobile

N/A

Plan

Core membership

11 posts were merged into an existing topic: GLIBC Python version incompatibility

This topic is a valid bug report but has already been reported. Please search before posting bug reports in the future.

The original bug report can be found here.