How to install console leo w/o installing pyqt?

49 views
Skip to first unread message

gar

unread,
Dec 22, 2019, 11:47:40 PM12/22/19
to leo-editor
I have a very ancient notebook, it is still 32bits. surprisingly recent lubuntus run fine there.
I use it time after time but! I cannot use it with .leo files cause it is absolutely impossible to install Leo on 32bit systems since pyqt is required and pyqt for itself supports only 64bit linuxes.
I'd love to have a chance to use console gui, but cannot imagine how to do it.
Clone from git, install all deps manually, ignore failed pyqt? Is it possible to ask pip install all ignoring failed packages?

Brian Theado

unread,
Dec 23, 2019, 10:04:09 AM12/23/19
to leo-editor
Just don't install pyqt at all.

I was playing with the web app version of flexx a while back and I think I only installed these pip packages:

pip install docutils nbformat pylint pypandoc sphinx semantic_version flexx

and then ran leo from the git checkout with --gui=browser.

You should be able to replace flexx above with whatever pip package provides the curses functionality.


--
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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/7376413a-8242-49a6-88ce-33435be99137%40googlegroups.com.

Matt Wilkie

unread,
Dec 23, 2019, 3:09:16 PM12/23/19
to leo-editor
I haven't found a way of instructing pip to skip failures.

One option would be to comment out the lines in setup.py:user_requires that involve pyqt, and then `pip install --editable path/to/leo-code` as normal.
 
Just the 1st two I think:

user_requires = [
   
#'PyQt5 >= 5.12, < 5.13',  # v5.12+ to close #1217
   
#'PyQtWebEngine < 5.13',  # #1202 QtWebKit needs to be installed separately starting Qt 5.6
   
'asttokens', # abstract syntax tree text parsing
   
'docutils',  # used by Sphinx, rST plugin
   
'flexx',  # for LeoWapp browser gui
   
'meta',  # for livecode.py plugin, which is enabled by default
   
'nbformat',  # for Jupyter notebook integration
   
'pylint', 'pyflakes', 'black',  # coding syntax standards
   
'setupext-janitor >= 1.1',  # extend `setup.py clean` #1055,#1255
   
'pyshortcuts >= 1.7',  # desktop integration (#1243)
   
'sphinx',  # rST plugin
   
'windows-curses; platform_system=="Windows"',  # for console mode on Windows
   
]


2nd option would be to just run `python launchLeo.py --gui=console` iteratively and manually pip install each "failed to import xxxx" module until it works.

-matt

gar

unread,
Dec 23, 2019, 11:33:37 PM12/23/19
to leo-e...@googlegroups.com
Thanks!
I suspected that it would be that strange :-)
BTW if there be widely used console gui - it could be great to have a dedicated package for it, so that leo could consist of several packages: core, console, qt, probably vim and emacs...

Matt Wilkie

unread,
Dec 24, 2019, 2:19:19 PM12/24/19
to leo-editor
BTW if there be widely used console gui - it could be great to have a dedicated package for it, so that leo could consist of several packages: core, console, qt, probably vim and emacs...

It might be as simple as a req-console.txt, req-flexx.txt. etc. that can be installed with `pip install --requirements req-console.txt`. Share the modules list if/when you figure it out and we'll save it somehwere.

-matt
Reply all
Reply to author
Forward
0 new messages