https://alezinhacris.blogspot.com/2024/04/attributeerror-partially-initialized.html