I'm on a brand new install of Ubuntu 20.04. Here's what I did, and the problem remains. Thoughts?
python3 --version > Python 3.11.3 python3 -m pip install --user --upgrade leo > <snip> Successfully installed leo-6.7.2 python3 -m pip show leo > Name: leo > Version: 6.7.2 > Summary: An IDE, PIM and Outliner > Home-page: http://leo-editor.github.io/leo-editor > Author: Edward K. Ream > Author-email: [email protected] > License: MIT License > Location: /home/greg/.local/lib/python3.11/site-packages > Requires: asttokens, black, build, docutils, flexx, meta, nbformat, > pyenchant, pyflakes, pylint, PyQt5, PyQtWebEngine, pyshortcuts, sphinx, tk > Required-by: python3 -m pip list | grep -i "qt" > PyQt5 5.15.9 > PyQt5-Qt5 5.15.2 > PyQt5-sip 12.12.1 > PyQtWebEngine 5.15.6 > PyQtWebEngine-Qt5 5.15.2 > sphinxcontrib-qthelp 1.0.3 python3 -m leo.core.runLeo > 'NoneType' object has no attribute 'gui' > > *** Leo could not be started *** > Please verify you've installed the required dependencies: > https://leoeditor.com/installing.html On Sun, Apr 23, 2023 at 7:44 PM Thomas Passin <[email protected]> wrote: > > I cannot speak to the homebrew thing. But I'm pretty sure that the system > version of Python3 is lower than 3.11. So there could be some confusion > about where - in what version of python - things are getting installed. Not > having PyQt6 might be a problem, though Leo can use either PyQt5 or 6 > depending on what is available. > > Here is what I suggest. First of all, always pip-install using python3 -m > pip install ... (or use the name you use if it's not "python3"). This makes > sure that pip is being run by and installing into the intended version of > Python. > > Second, run python3 -m pip list |grep -i "qt". This will show you what > version if any of Qt has been installed for the version of Python that is > actually running. > > Remember that this version of Python may not be the same as the > system-installed one, especially if a homebrew path is involved. > > Next, run python3 -m pip show leo to see if Leo is installed. for this Python > installation. > > If not, or if PyQT isn't installed, try to install Leo from PyPi with pip. > You can worry about getting the latest devel version from GitHub later. > Doing it this way will install all the dependencies you need: > > python3 -m pip install --user --upgrade leo > > If this succeeds and Leo runs using python3 -m leo.core.runLeo, then we can > go on from there. All Leo's dependencies will have been installed. > > I'm afraid I forgot something in my previous suggestion. You said you had > cd'ed to the git checkout directory. I'm not sure that in itself is enough > for the paths to work right. The best way is not to be in the checkout > directory, but to export the leo-editor directory to $PYTHONPATH before > running Leo. I do that using a batch file that sets the variable and then > runs Leo. Or you could use a venv or install with --editable, but my way is > the most direct for troubleshooting. > > I have installed Leo from PyPi and github many times in various versions of > Ubuntu (all virtual machines on a Windows host), and so I know it can be done > and usually without a problem. But as I say, I don't know anything about > homebrew and how it may be changing how things work. > On Sunday, April 23, 2023 at 8:40:27 PM UTC-4 [email protected] wrote: >> >> My first question of concern is why is there a homebrew path where this is >> installing? As far as I know pip should install into a local Python >> system-wide directory, or into a user directory if given the --user option. >> >> Second, with Ubuntu 20.04, do you actually have QT version 6? I'm not >> certain of the state of things with QT version 5 and Leo, however you might >> need to try installing the PyQT5 package instead. >> >> That said I'm using Ubuntu 22.10 with plasma KDE backports, and I'm having a >> very reasonable time with it. I would suggest upgrading because 20.04 will >> continue to have outdated packages until it's end of life, which is how a >> stable distribution works. >> >> 23.04 is already out and I am planning a distupgrade to it soon. >> >> I hope this perhaps leads to some success on your end. >> >> Mike >> >> >> >> On Sun, Apr 23, 2023, 04:16 Greg Edwards <[email protected]> wrote: >>> >>> I've followed the directions at >>> https://leo-editor.github.io/leo-editor/installing.html, including >>> pip3 install PyQt6 >>> pip3 install leo >>> >>> And when I run leo, I get an error >>> which leo >>> > /home/linuxbrew/.linuxbrew/bin/leo >>> leo >>> > 'NoneType' object has no attribute 'gui' >>> >>> Help? >>> >>> Thanks, >>> Greg >>> >>> -- >>> 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/7a44ecc6-56c5-4579-99f0-305f8b585af2n%40googlegroups.com. > > -- > You received this message because you are subscribed to a topic in the Google > Groups "leo-editor" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/leo-editor/hzk0zlSv5BY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/leo-editor/97ca4600-64f6-4f15-9c4a-883faef0cc18n%40googlegroups.com. -- 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/CA%2BRmYvgXX89-%3D_DbCbc4dkLJwrx5GjAL2cULA--pNtyMgrFzeQ%40mail.gmail.com.
