Hello, I followed the Leo installation process, installed bzr, sip and
qt and tried to run Leo (Python 2.5, EPD distribution on Intel Mac OS
10.5.7 and got this error.
Mymachine:leo-editor Suresh$ python launchLeo.py --gui=qt
unexpected Exception in g.pr
make sure your sitecustomize.py contains::
sys.setdefaultencoding("utf-8")
<... repeated many many many times ...>
It appears with gui=tk as well, and also when launched from within
python using leo.run().
I added import sys; sys.setdefaultencoding("utf-8") to
sitecustomize.py and verified that it was being loaded at python
startup by adding a print "Hello" statement that got printed and
verifying that sys.getdefaultencoding() gave utf-8. I now tried leo.run
() and got the same exceptions from g.pr()
I searched google and the site archives, and found one other message
with this problem but the fix was something to do with a scintilla
dependency:
http://groups.google.com/group/leo-editor/browse_thread/thread/640da473684c2b0e
Hope you can help !!
Thanks, cheers, Suresh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---