When attempting to save XRC files on WinXP, running Py2.7, I received the following error:
valueError: invalid mode ('wtb')
This error was not apparent on ubuntu.
A quick ggl search brought up the following suggestion: http://stackoverflow.com/questions/5941988/print-to-utf-8-encoded-file-with-platform-dependent-newlines
Editing xrced.py at lines at 1409 and 1411, replacing the following:
if g.currentEncoding: f = codecs.open(path, 'wt', g.currentEncoding) else: f = codecs.open(path, 'wt')
With:
if g.currentEncoding: f=open(path,'w') else: f=open(path,'w')
Solved the problem. XRCed files now save.
Cheers,
Cam.
Log in to post a comment.
When attempting to save XRC files on WinXP, running Py2.7, I received the following error:
This error was not apparent on ubuntu.
A quick ggl search brought up the following suggestion:
http://stackoverflow.com/questions/5941988/print-to-utf-8-encoded-file-with-platform-dependent-newlines
Editing xrced.py at lines at 1409 and 1411, replacing the following:
With:
Solved the problem. XRCed files now save.
Cheers,
Cam.