PermissionError [Errno 13] Permission denied Python 2023

According to the documentation, the argument should be the path of a TMX file, but it looks like you passed the path of a directory.

On Windows, attempting to open a directory as if it’s a regular file fails with ERROR_ACCESS_DENIED, which the C runtime translates to EACCES (13). In turn, the Python runtime raises PermissionError. In this case, the permission error has nothing to do with file security.