Addendum: when I try to force using Qt with the "--gui=QT" flag, I get
the following errors:
C:\Python26\Lib\site-packages\Leo-4.7.1-final>c:\Python26\python.exe
LaunchLeo.py --gui=QT
*** isPython3: False

qtGui.py: can not import Qt
Use "launchLeo.py --gui=tk" to force Tk
Traceback (most recent call last):
  File "LaunchLeo.py", line 8, in <module>
    leo.core.runLeo.run()
  File "C:\Python26\Lib\site-packages\Leo-4.7.1-final\leo\core
\runLeo.py", line 89, in run
    fn,relFn,script,versionFlag = doPrePluginsInit(fileName,pymacs)
  File "C:\Python26\Lib\site-packages\Leo-4.7.1-final\leo\core
\runLeo.py", line 130, in doPrePluginsInit
    createSpecialGui(gui,pymacs,script,windowFlag)
  File "C:\Python26\Lib\site-packages\Leo-4.7.1-final\leo\core
\runLeo.py", line 152, in createSpecialGui
    elif gui == 'qt':   g.app.createQtGui(tag)
  File "C:\Python26\Lib\site-packages\Leo-4.7.1-final\leo\core
\leoApp.py", line 387, in createQtGui
    import leo.plugins.qtGui
  File "C:\Python26\Lib\site-packages\Leo-4.7.1-final\leo\plugins
\qtGui.py", line 52, in <module>
    from PyQt4 import QtCore
ImportError: DLL load failed: The specified module could not be found.

But when I look in the site-packages directory, PyQt4 is there:

C:\Python26\Lib\site-packages>dir
 Volume in drive C is DRIVE_C
 Volume Serial Number is 987F-EB5D

 Directory of C:\Python26\Lib\site-packages

08/11/2010  04:31 PM    <DIR>          .
08/11/2010  04:31 PM    <DIR>          ..
08/11/2010  04:32 PM    <DIR>          Leo-4.7.1-final
08/11/2010  04:19 PM    <DIR>          PyQt4
10/28/2005  08:07 PM               121 README.txt
07/12/2010  08:16 AM            64,512 sip.pyd
07/12/2010  08:15 AM            91,619 sipconfig.py
01/29/2010  08:02 AM             5,264 sipdistutils.py


On Aug 11, 4:45 pm, Steve Allen <[email protected]> wrote:
> I've drug my feet upgrading from Leo 4.4.3 because Cleo didn't seem to
> be available in the Qt environment.  Since recently rummaging through
> some old posts, I saw that todo.py was the Qt successor to Cleo.
>
> So, I installed the latest version of Qt for Python 2.6 (PyQt-Py2.6-
> gpl-4.7.4-1.exe) and the latest version of Leo (LeoSetup-4.7.1-
> final.exe).  However when I try to run Leo, it thinks that PyQt is not
> installed and it defaults to Tk UI instead.
>
> <output>
> C:\Python26\Lib\site-packages\Leo-4.7.1-final>c:\Python26\python.exe
> LaunchLeo.py
> *** isPython3: False
> No g.app.config, making stub...
> PyQt not installed - reverting to Tk UI
> Leo 4.7.1 final, build 3005, February 26, 2010
> Python 2.6.4, Tk 8.5, Pmw 1.3
> Windows 5, 1, 2600, 2, Service Pack 3
> </output>
>
> How do I make Leo 4.7.1 recognize PyQt?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to