I fixed it by uninstalling it by pip and yay:
pip uninstall ranger
yay -R ranger
and installed ranger again using:
yay -S ranger-git
I fixed it by uninstalling it by pip and yay:
pip uninstall ranger
yay -R ranger
and installed ranger again using:
yay -S ranger-git