On Fri, Oct 4, 2019 at 12:08 PM The Living Cosmos <[email protected]>
wrote:

> Hello, HOME/.leo/myLeoSettings.leo I attempted to enable the OPML plugin
> as follows:
>
> @enabled-plugins
> leoOPML.py
>
> But when starting Leo I get the following errors:
> Qt: Untested Windows version 10.0 detected!
>

See this stack overflow question
<https://stackoverflow.com/questions/32966226/>:

> reading settings in C:\LEO_5~1.7_F\LeoApp\leo\config\leoSettings.leo
> reading settings in C:\Users\terre\.leo\myLeoSettings.leo
> error parsing C:\Users\terre\.leo\myLeoSettings.leo
> Traceback (most recent call last):
>
>   File "leo\core\leoFileCommands.py", line 1401, in parse_leo_file
>     parser.parse(theFile) # expat does not support parseString
>
>   File "xml\sax\expatreader.py", line 111, in parse
>
>   File "xml\sax\xmlreader.py", line 123, in parse
>
>   File "xml\sax\expatreader.py", line 224, in feed
>
>   File "xml\sax\handler.py", line 38, in fatalError
>
> SAXParseException: <unknown>:1:0: not well-formed (invalid token)
>
>
> Note: sys.stdout.encoding is not UTF-8
> See: https://stackoverflow.com/questions/14109024
>

I suggest putting the following in python/lib/sitecustomize.py:

import sys
sys.stdout.reconfigure(encoding='utf-8')

HTH.
Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS34%2B7%2BmoOqReeo5KJGDw-TKyrdtim7eGNqxRPTQgJ4KMg%40mail.gmail.com.

Reply via email to