Eryk Sun added the comment: Your example works fine for me in Windows 10, and I see no reason why it would fail in Windows 7. The crash dialog in your screenshot shows that the problem occurred in a DLL named "winhadnt.dll". I suspect that this is malware injected into the python.exe process. Even if it's part of a legitimately installed program on your machine, this DLL has nothing to do with Python, so I'm closing this issue as 3rd party.
By the way, Python 2 doesn't completely support raw unicode strings. '\u' and '\U' are still parsed as Unicode escape sequences. You can use forward slash for the path literal instead. Then normalize the path to use backslash at runtime. ---------- nosy: +eryksun resolution: -> third party stage: -> resolved status: open -> closed type: -> crash _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30494> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com