*(All this was tried with the Latest LXML version 5.3.0 )*

I tried installing lxml with:

pip install lxml

Seems to have worked, but when importing a freemind file, the imported lxml 
library does not have the 'html' member, and the import just errors out.

When exploring why the lxml library did not have any valid members, like 
html or etree as per Leo uses it and was also in the official lxml docs, I 
tried something :

If I replace the import at the top of the leoImport.py file with :


*from lxml import html*instead of:
*import lxml*

Then, replacing that line further down the file:

*htmltree = lxml.html.parse(path)*
with this one:

*htmltree = html.parse(path)*
... makes everything works!!  Wow! :)

I'm a total newb with python so I'm wondering if someone can explain this, 
and if they have the same behavior experience in Leo with importing 
FreeMind (.mm or .mm.html files) in leo.

Should I open an issue on github and suggest importing and using it this 
way?


-- 
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/9d5136c9-3688-45e3-9405-bc71a3fa1ab1n%40googlegroups.com.

Reply via email to