Hello,

In the @enabled-plugins I changed viewrendered to viewrendered2, both in 
the Global and Personal settings.

The viewrendered2 window loads, all of the functionality is apparent.

But when I attempt to view an @html node, I receive the folllowing:

hook failed: select2, <bound method ViewRenderedController.update of 
<leo.plugins.viewrendered2.ViewRenderedController object at 0x46d0b00>>, <no 
module>

Traceback (most recent call last):

  File "/home/chris/Working/leo/leo-editor/leo/core/leoPlugins.py", line 336, 
in callTagHandler
    result = handler(tag,keywords)

  File "/home/chris/Working/leo/leo-editor/leo/plugins/viewrendered2.py", line 
1493, in update
    f(s,keywords)

  File "/home/chris/Working/leo/leo-editor/leo/plugins/viewrendered2.py", line 
1645, in update_html
    w.setHtml(s)

AttributeError: 'WebViewPlus' object has no attribute 'setHtml'


Am I missing something?

Chris

On Saturday, March 1, 2014 8:33:24 AM UTC-8, Terry wrote:
>
> On Sat, 1 Mar 2014 05:08:01 -0600 
> "Edward K. Ream" <[email protected] <javascript:>> wrote: 
>
> > On Sat, Mar 1, 2014 at 4:59 AM, lewis <[email protected]<javascript:>> 
> wrote: 
> > 
> > > Still no success for me running viewrendered2 on leo build 
> > > 476c9ced2d63, Python 3.3.5, qt version 4.8.5 
> > > I still get 
> > > syntax error importing plugin: leo.plugins.viewrendered 
> > > loadOnePlugin: can not load enabled plugin: leo.plugins.viewrendered 
> > > 
> > 
> > ​Fixed at a recent rev. 
> > 
> > The problem was due to a recently introduced "print e" statement. 
> > 
> > You can easily discover why a plugin fails to load.  In this case, I 
>
> @bool show_full_tracebacks_in_scripts = True 
>
> helps a lot with that, otherwise you just get the exception and not the 
> traceback. 
>
> Cheers -Terry 
>
> > ran Leo with Python 3.3 and executed the following script in the body 
> > pane:: 
> > 
> >     import leo.plugins.viewrendered2 
> > 
> > This showed me the offending statement (in a traceback) in the log 
> > pane. 
> > 
> > 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/groups/opt_out.

Reply via email to