To anyone who wants to know, it stopped giving me the error when i deleted the instance folder which is i guess the session instance or something like that
the instance folder was present in my repo