file is not a str