Well I tried: my_file = "Text To Speech.mp3" opened = open(my_file)
opened.close() But it still gave the PermissionError when trying to delete the file. In the handling of that error, it tries to reload Pygame. In doing so, it gives an AttributeError, explained in detail here <https://stackoverflow.com/questions/44221985/attributeerror-imageext-when-trying-to-reload-module-pygame> . Does this have anything to do with it? -- View this message in context: http://pygame-users.25799.x6.nabble.com/Pygame-doesn-t-close-properly-so-I-can-t-delete-the-file-it-s-using-tp3044p3053.html Sent from the pygame-users mailing list archive at Nabble.com.