Someone else recently had problems on Ubuntu 22 LTS. Look at this discussion here on the Groups site:
Install Problems on Ubuntu 22 <https://groups.google.com/g/leo-editor/c/hzk0zlSv5BY> The OP never said how or if Leo finally got to work, so I've been hoping some of the suggestions helped. In general, I have provisioned a lot of Linux VMs with Leo, including Ubuntu 22, with success. Sometimes a shared library is missing - I mean a .so file, not a Python library. Once or twice, IIRC, I had to install Qt itself, beyond PyQt, to get all the necessary parts. But I don't remember all the details or even which Linux distro was involved. In your case, beyond suggestions on the other thread, I'd probably try to use the package manager to install Qt (it may already be present because some other program uses it, but maybe not). Some desktop managers themselves use Qt, some do not. You can probably find out about Ubuntu's with some internet searching. On my own Ubuntu 22.04 VM (which Leo works on), a search for directories starting with "Qt" gave this: tom@tom-ubuntu-VirtualBox:~$ find / -type d -name Qt 2>/dev/null /usr/lib/python3/dist-packages/orca/scripts/toolkits/Qt /home/tom/.local/lib/python3.10/site-packages/PyQt5/Qt5/qml/Qt /home/tom/.local/lib/python3.8/site-packages/PyQt5/Qt /home/tom/.local/lib/python3.8/site-packages/PyQt5/Qt/qml/Qt /home/tom/.local/lib/python3.8/site-packages/PyQt5/Qt5/qml/Qt Don't forget the 2>/dev/null or the output will be dominated by zillions of "permission denied" messages! On Sunday, May 7, 2023 at 7:32:28 AM UTC-4 [email protected] wrote: > Hi there, > > I'm getting back to Leo after some years away. However, the installation > is failing on my Ubuntu 22.04LTS system. > > I carefully followed the instructions for git install, and the pip step > installed quite a few other packages, some of which mentioned PyQt. > > But when I ran 'leo', what I got was: > > *'NoneType' object has no attribute 'gui'* > > I then ran 'pip uninstall leo' in an attempt to clean it out, then 'pip > install leo' to follow the pip installation method. > > Again, when running leo, the same error. > > Any suggestions? > > Cheers > David > > -- 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/5c5e187b-4350-4f5c-81db-3b1642c31174n%40googlegroups.com.
