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 >> >> <https://groups.google.com/d/msgid/leo-editor/7a44ecc6-56c5-4579-99f0-305f8b585af2n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/97ca4600-64f6-4f15-9c4a-883faef0cc18n%40googlegroups.com.
