Permission denied running client on windows in verbose mode as normal user
When trying to run the client:
* on Windows,
* from an install that was packaged using py2exe,
* from a normal user account without admin rights,
If an exception or error occurs, then instead of the Traceback being saved in
the log file the following message is displayed in a msgbox titled "Errors
occurred":
The logfile 'C:\Program Files (x86)\tryton-4.0.3\tryton.exe.log' could not be opened:
[Errno 13] Permission denied: 'C:\\Program Files (x86)\\tryton-4.0.3\\tryton.exe.log'
This is because py2exe by default (for windows programs) redirects stderr to
a file with the same name as the executable with .log appended to the end[1].
As this is inside the "Program Files" directory normal windows users cannot
write to it.
A work around is to (as a user with administrator rights) create the
"C:\Program Files (x86)\tryton-4.0.3\tryton.exe.log" file and give the
appropriate other users permission to write to it and modify it.
[1] http://www.py2exe.org/index.cgi/StderrLog