I just had an idea about this. The error message says that the calling
signature is wrong. That could happen if you don't have *PyQtWebEngine*
installed for some reason. In that case, VR3 falls back to a different
widget, and that widget uses a different signature, the one that your error
message shows. Although it normally gets installed when Leo is installed,
I have known cases where the WebEngine was missing.
It will take a bit of finagling for me to test this, which I will do
later. In the meantime, would you check to see if *PyQtWebEngine* is
installed? Here are two ways:
1. In a console, run this command (you system may use *py* instead of
*python3*, but use whatever name you normally use):
python3 -m pip list
There should be a line like
PyQtWebEngine 5.15.4
2. Run a Python session, and run these two lines:
from leo.core.leoQt import QtWebKitWidgets
print(type(QtWebKitWidgets))
If the response is <class 'NoneType'>, then you do not have PyQtWebEngine
installed. You would install it from a console with this command:
py -m pip install --upgrade PyQtWebEngine
In fact, it might be worth doing this even if you do have it installed,
just in case an update might fix something that isn't right.
On Sunday, August 8, 2021 at 2:59:45 AM UTC-4 lewis wrote:
> Mostly I'm interested in what's going on with VR3 and those error messages.
>>
>
> I disabled myLeoSettings and used the default leoSettings.leo to rule out
> any custom settings. The @command scripts are in the local outline and at
> the same level as @commands, @string mmap_render_dev = vr3
> I ran mmap-tree and get:
>
>
>
>
>
>
> *Leo Log WindowLeo 6.4-devel2, devel branch, build 27d3615ab22021-08-03
> 16:08:35 -0500Python 3.9.6, PyQt version 5.15.2Windows 10 AMD64 (build
> 10.0.19042) SP0*
>
> *read outline in 0.03 secondsunexpected exception in g.getScript*
>
>
>
> *Traceback (most recent call last):*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * File "N:\git\leo-editor\leo\core\leoGlobals.py", line 7429, in
> getScript s = g.extractExecutableString(c, p, s) File
> "N:\git\leo-editor\leo\core\leoGlobals.py", line 7477, in
> extractExecutableString language = g.scanForAtLanguage(c, p) File
> "N:\git\leo-editor\leo\core\leoGlobals.py", line 3522, in
> scanForAtLanguage for p in p.self_and_parents(copy=False): File
> "N:\git\leo-editor\leo\core\leoNodes.py", line 527, in self_and_parents
> p = p.copy() File "N:\git\leo-editor\leo\core\leoNodes.py", line 1414, in
> copy return Position(self.v, self._childIndex,
> self.stack)RecursionError: maximum recursion depth exceeded*
> [end]
>
> And with the @command scripts as children of @commands node, here are
> error messages :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *VR3 stylesheet:
> N:/git/leo-editor/leo/plugins/viewrendered3/vr3_rst.cssTraceback (most
> recent call last): File "N:\git\leo-editor\leo\core\leoCommands.py", line
> 2203, in doCommand return_value = command_func(event) File
> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1242, in
> update_rendering_pane vr3.update(tag='view', keywords={'c': c, 'force':
> True}) File "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 1908,
> in update f(_tree, keywords) File
> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 2753, in
> update_rst self.set_html(h, w) File
> "N:\git\leo-editor\leo\plugins\viewrendered3.py", line 3649, in set_html
> w.setHtml(s, url_base)TypeError: setHtml(self, str): too many arguments*
> [end]
>
> Hope it helps
> Lewis
>
--
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/8111ee5b-093c-4df1-b64c-772038308234n%40googlegroups.com.