Dear fluka experts,
We found the solution to our problem, If any other user is facing a similar issue please go through the link given below.
We tried to downgrade the numpy library version to 1.25.4 by running the following command in terminal.
pip install numpy==1.26.4
By executing this command, later we were able to run flair with no issues.
Thank You.