Cool. Starts up.
I see some Qt4 related errors which are maybe harmless? but mentioning them
just in case you'll want to address
----------------------------------------------------------

$ ./launchLeo.py

** isPython3: True
Leo 4.11 final, build 20140908184639, Mon Sep  8 18:46:39 CDT 2014
Git repo info: branch = master, commit = 26b5e4d40330
Python 3.4.1, PyQt version 5.3.1
linux
setting leoID from os.getenv('USER'): 'emacs'
reading settings in /home/emacs/build/leo-editor/leo/config/leoSettings.leo
Using default leo file name:
/home/emacs/.leo/workbook.leo
created: /home/emacs/build/leo-editor/leo/plugins/spellpyx.txt
error importing plugin: leo.plugins.quicksearch
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/quicksearch.py", line 79,
in <module>
    from leo.plugins import threadutil

  File "/home/emacs/build/leo-editor/leo/plugins/threadutil.py", line 6, in
<module>
    from PyQt4 import QtCore, QtGui

ImportError: cannot import name 'QtCore'

loadOnePlugin: can not load enabled plugin: leo.plugins.quicksearch
error importing plugin: leo.plugins.stickynotes
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/stickynotes.py", line 80,
in <module>
    from PyQt4.QtCore import (QSize, QVariant, Qt, SIGNAL, QTimer)

ImportError: No module named 'PyQt4.QtCore'

loadOnePlugin: can not load enabled plugin: leo.plugins.stickynotes
reading settings in /home/emacs/build/leo-editor/leo/doc/CheatSheet.leo
error importing plugin: leo.plugins.quicksearch
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/quicksearch.py", line 79,
in <module>
    from leo.plugins import threadutil

  File "/home/emacs/build/leo-editor/leo/plugins/threadutil.py", line 6, in
<module>
    from PyQt4 import QtCore, QtGui

ImportError: cannot import name 'QtCore'

loadOnePlugin: can not load enabled plugin: leo.plugins.quicksearch
error importing plugin: leo.plugins.stickynotes
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/stickynotes.py", line 80,
in <module>
    from PyQt4.QtCore import (QSize, QVariant, Qt, SIGNAL, QTimer)

ImportError: No module named 'PyQt4.QtCore'

loadOnePlugin: can not load enabled plugin: leo.plugins.stickynotes
wrote recent file: /home/emacs/.leo/.leoRecentFiles.txt

----------------------------------------------------------

and this is what I have of qt4
extra/pyqt4-common 4.11.1-1 [installed]
    Common PyQt files shared between python-pyqt4 and python2-pyqt4
extra/python-pyqt4 4.11.1-1
    A set of Python 3.x bindings for the Qt toolkit
extra/python2-pyqt4 4.11.1-1 [installed]
    A set of Python 2.x bindings for the Qt toolkit

----------------------------------------------------------
Actually installing python-pyqt4
yields a new error message which you might consider:
----------------------------------------------------------

$ ./launchLeo.py

** isPython3: True
Leo 4.11 final, build 20140908184639, Mon Sep  8 18:46:39 CDT 2014
Git repo info: branch = master, commit = 26b5e4d40330
Python 3.4.1, PyQt version 5.3.1
linux
setting leoID from os.getenv('USER'): 'emacs'
reading settings in /home/emacs/build/leo-editor/leo/config/leoSettings.leo
exception importing plugin leo.plugins.quicksearch
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/quicksearch.py", line 79,
in <module>
    from leo.plugins import threadutil

  File "/home/emacs/build/leo-editor/leo/plugins/threadutil.py", line 6, in
<module>
    from PyQt4 import QtCore, QtGui

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

exception importing plugin leo.plugins.stickynotes
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/stickynotes.py", line 80,
in <module>
    from PyQt4.QtCore import (QSize, QVariant, Qt, SIGNAL, QTimer)

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

Using default leo file name:
/home/emacs/.leo/workbook.leo
exception importing plugin leo.plugins.quicksearch
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/quicksearch.py", line 79,
in <module>
    from leo.plugins import threadutil

  File "/home/emacs/build/leo-editor/leo/plugins/threadutil.py", line 6, in
<module>
    from PyQt4 import QtCore, QtGui

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

loadOnePlugin: can not load enabled plugin: leo.plugins.quicksearch
exception importing plugin leo.plugins.stickynotes
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/stickynotes.py", line 80,
in <module>
    from PyQt4.QtCore import (QSize, QVariant, Qt, SIGNAL, QTimer)

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

loadOnePlugin: can not load enabled plugin: leo.plugins.stickynotes
reading settings in /home/emacs/build/leo-editor/leo/doc/CheatSheet.leo
exception importing plugin leo.plugins.quicksearch
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/quicksearch.py", line 79,
in <module>
    from leo.plugins import threadutil

  File "/home/emacs/build/leo-editor/leo/plugins/threadutil.py", line 6, in
<module>
    from PyQt4 import QtCore, QtGui

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

loadOnePlugin: can not load enabled plugin: leo.plugins.quicksearch
exception importing plugin leo.plugins.stickynotes
Traceback (most recent call last):

  File "/home/emacs/build/leo-editor/leo/core/leoPlugins.py", line 534, in
loadOnePlugin
    __import__(moduleName)

  File "/home/emacs/build/leo-editor/leo/plugins/stickynotes.py", line 80,
in <module>
    from PyQt4.QtCore import (QSize, QVariant, Qt, SIGNAL, QTimer)

RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the
QObject class

loadOnePlugin: can not load enabled plugin: leo.plugins.stickynotes
wrote recent file: /home/emacs/.leo/.leoRecentFiles.txt
----------------------------------------------------------


On Tue, Sep 9, 2014 at 1:53 AM, Edward K. Ream <[email protected]> wrote:

> On Mon, Sep 8, 2014 at 6:17 PM, Edward K. Ream <[email protected]>
> wrote:
>
> >> Otoh, I'm not sure whether anyone is using Qt5 for Leo, despite the
> >> support in leoQt.py.  I'll see whether I can get Leo working with Qt5
> >> on ubuntu and report back.
> >
> > Happily, I got the same traceback you did.  The problem is a Qt4/5
> > gotcha:  QtGui exists in Qt4; in Qt5 one must use QtWidgets.
> > QtWidgets.QTextEdit, etc. works also in Qt4, so it should be possible
> > to fix this easily.
>
> Rev 26b5e4d and several previous allow Leo to run with Qt5.  Hooray!
>
> This qualifies you for the coveted "I fixed Leo" bumper sticker ;-)
>
> On my ubuntu machine, all unit tests pass with Qt5 and python3.4.
>
> Please let me know how the new code works for you.
>
> Edward
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to