Viewrendered not loading using Python 3.5.1 64-bit and PyQt 5.6.0 on Windows 10 64-bit

51 views
Skip to first unread message

Dee

unread,
Jun 12, 2016, 8:24:41 AM6/12/16
to leo-editor
Hi,

I just installed Leo on my Windows 10 64-bit computer, but it won't load viewrendered.

I installed Leo following the recommended installation instructions.

First I installed:

Python 3.5.1 64-bit
PyQt 5.6.0
Git 2.8.4 64-bit

Then I used the following command in Git Bash to install the latest version of Leo:


which installed it here:

C:\Users\Dee\leo-editor

To run Leo, I run launchLeo.py from the above directory.

Here's the log when I first run Leo:

Leo Log Window
Leo 5.4-devel, build 20160412153848, Tue Apr 12 15:38:48 CDT 2016
Git repo info: branch = master, commit = 09002eae17d0
Python 3.5.1, PyQt version 5.6.0
Windows 10 AMD64 (build 10.0.10586) SP0
leoID=Dee (in C:\Users\Dee\.leo)
load dir: C:\Users\Dee\leo-editor\leo\core
global config dir: C:\Users\Dee\leo-editor\leo\config
home dir: C:\Users\Dee
reading settings in C:\Users\Dee\leo-editor\leo\config\leoSettings.leo
Using default leo file name:
C:\Users\Dee\.leo\workbook.leo
loadOnePlugin: can not load enabled plugin: leo.plugins.viewrendered
reading settings in C:\Users\Dee\leo-editor\leo\doc\CheatSheet.leo

Then if I attempt to open the viewrendered pane, the log gives the following errors:

exception executing command
Traceback (most recent call last):
  File "C:\Users\Dee\leo-editor\leo\core\leoCommands.py", line 5348, in doCommand
    val = command(event)
  File "C:\Users\Dee\leo-editor\leo\plugins\viewrendered.py", line 423, in toggle_rendering_pane
    viewrendered(event)
  File "C:\Users\Dee\leo-editor\leo\plugins\viewrendered.py", line 309, in viewrendered
    controllers[c.hash()] = vr = ViewRenderedController(c)
  File "C:\Users\Dee\leo-editor\leo\plugins\viewrendered.py", line 490, in __init__
    self.html_class = QtWebKitWidgets.QWebView
AttributeError: 'NoneType' object has no attribute 'QWebView'

Note: Prior to installing Leo as described above, I downloaded and briefly tried out the "Quick Install" version, which uses PyQt version 4.8.7, and it worked fine.

I am very intrigued by Leo, so I'd be grateful for any assistance to get it working. :)


Edward K. Ream

unread,
Sep 23, 2016, 11:52:45 AM9/23/16
to leo-editor
On Sun, Jun 12, 2016 at 7:24 AM, Dee <dgg...@gmail.com> wrote:

I just installed Leo on my Windows 10 64-bit computer, but it won't load viewrendered.

There has been considerable work on the vr and vr2 plugins lately.  They should both work with the latest revs, or explain why not.

In particular, vr2 is known not to work with PyQt5.  This is due to significant changes in the QWebView class.

Edward
Reply all
Reply to author
Forward
0 new messages