Problems trying to run LeoWapp

44 views
Skip to first unread message

Xavier G. Domingo (xgid)

unread,
Dec 5, 2018, 9:02:17 PM12/5/18
to leo-editor
Today I've updated Leo to the latest current devel version in GitHub:

Leo 5.8.1 devel, build 20181204214531, Tue Dec  4 21:45:31 PST 2018
Git repo info: branch = devel, commit = 09f59c3537f8
Python 3.6.2, PyQt version 5.6.2
Windows 10 AMD64 (build 10.0.17134) SP0


... and then tried to run the browser GUI version with the command:

python launchLeo.py --gui=browser


But it produced the following error message (in a popup):

LeoWapp_Webruntime_error_message.png



Any advice will be much appreciated. Tell me if you prefer that I create a GitHub issue for this.



This is the whole error log (ignore the reference to "Leo-5.4" appearing in the path, it *is* in fact the current devel version):


[I 22:52:04 flexx.app] Asset store collected 2 new modules.

use_ace True

Leo 5.8.1 devel, build 20181204214531, Tue Dec  4 21:45:31 PST 2018
Traceback (most recent call last):

  File "c:\dev\Leo-5.4\leo\core\leoPlugins.py", line 519, in loadOnePluginHelper
    __import__(moduleName)

  File "c:\dev\Leo-5.4\leo\plugins\attrib_edit.py", line 427, in <module>
    class ListDialog(QtWidgets.QDialog):

NameError: name 'QtWidgets' is not defined

Traceback (most recent call last):

  File "c:\dev\Leo-5.4\leo\core\leoPlugins.py", line 519, in loadOnePluginHelper
    __import__(moduleName)

  File "c:\dev\Leo-5.4\leo\plugins\attrib_edit.py", line 427, in <module>
    class ListDialog(QtWidgets.QDialog):

NameError: name 'QtWidgets' is not defined

registerCommand redefining dehoist <function CommanderCommand.__call__.<locals>.commander_command_wrapper at 0x0654B6F0> -> <function chapterHoist.createDehoistButton.<locals>.dehoistCallback at 0x081DE858>
Leo Log Window
Leo 5.8.1 devel, build 20181204214531, Tue Dec  4 21:45:31 PST 2018
Git repo info: branch = devel, commit = 09f59c3537f8
Python 3.6.2, LeoGui: dummy version
Windows 10 AMD64 (build 10.0.17134) SP0
isPython3: True
current dir: c:/dev/Leo-5.4
load dir: C:/dev/Leo-5.4/leo/core
global config dir: C:/dev/Leo-5.4/leo/config
home dir: C:/Users/sysadmin
reading settings in C:/dev/Leo-5.4/leo/config/leoSettings.leo
reading settings in C:/Users/sysadmin/.leo/myLeoSettings.leo
Traceback (most recent call last):

  File "c:\dev\Leo-5.4\leo\core\leoPlugins.py", line 519, in loadOnePluginHelper
    __import__(moduleName)

  File "c:\dev\Leo-5.4\leo\plugins\attrib_edit.py", line 427, in <module>
    class ListDialog(QtWidgets.QDialog):

NameError: name 'QtWidgets' is not defined

Plugin leo.plugins.nodetags not loaded.
http serving enabled at 127.0.0.1:8130
reading settings in C:/Users/sysadmin/.leo/workbook.leo
Traceback (most recent call last):

  File "c:\dev\Leo-5.4\leo\core\leoPlugins.py", line 519, in loadOnePluginHelper
    __import__(moduleName)

  File "c:\dev\Leo-5.4\leo\plugins\attrib_edit.py", line 427, in <module>
    class ListDialog(QtWidgets.QDialog):

NameError: name 'QtWidgets' is not defined

Plugin leo.plugins.nodetags not loaded.
may be open in another Leo:
C:/Users/sysadmin/.leo/workbook.leo
read 1 files in 0.02 seconds
read outline in 0.02 seconds

[I 22:52:05 flexx.app] Serving apps at http://localhost:49190/
[I 22:52:05 flexx.app] Asset store collected 24 new modules.

Running from --gui=browser

(AceWrapper: body) setAllText set_body_text_after_select 'By convention, a Startup node contains settings, scripts,...(101)\n'
set_focus (gui): unknown widget <StringTextWrapper: 136013424 body> init,selectPosition,select,select,outerUpdate,set_focus
Runtime names should be "app", "browser" or end with "-app" or "-browser", not 'webruntime'
Traceback (most recent call last):
  File "launchLeo.py", line 8, in <module>
    leo.core.runLeo.run()
  File "c:\dev\Leo-5.4\leo\core\runLeo.py", line 72, in run
    g.app.loadManager.load(fileName, pymacs)
  File "c:\dev\Leo-5.4\leo\core\leoApp.py", line 2294, in load
    g.app.gui.runMainLoop()
  File "c:\dev\Leo-5.4\leo\plugins\leoflexx.py", line 1129, in runMainLoop
    flx.launch(LeoBrowserApp, runtime)
  File "C:\dev\Anaconda3\lib\site-packages\flexx\app\_funcs.py", line 229, in launch
    return a.launch(runtime, **runtime_kwargs)
  File "C:\dev\Anaconda3\lib\site-packages\flexx\app\_app.py", line 167, in launch
    session._runtime = webruntime.launch(url, runtime=runtime, **runtime_kwargs)
  File "C:\dev\Anaconda3\lib\site-packages\webruntime\__init__.py", line 200, in launch
    raise ValueError('Could not detect a suitable backend among %r.' % runtimes)
ValueError: Could not detect a suitable backend among ['webruntime'].


Edward K. Ream

unread,
Dec 6, 2018, 3:35:50 AM12/6/18
to leo-editor
On Wed, Dec 5, 2018 at 8:02 PM Xavier G. Domingo (xgid) <xgdo...@gmail.com> wrote:
Today I've updated Leo to the latest current devel version in GitHub:

Did you 'pip install flexx' ?

Edward

Edward K. Ream

unread,
Dec 6, 2018, 3:48:08 AM12/6/18
to leo-editor
On Thursday, December 6, 2018 at 2:35:50 AM UTC-6, Edward K. Ream wrote:

Did you 'pip install flexx' ?

Never mind, I am seeing similar problems on my Linux machine.

I'll attempt a fix today.

Edward

Edward K. Ream

unread,
Dec 6, 2018, 4:58:18 AM12/6/18
to leo-editor
On Thursday, December 6, 2018 at 2:48:08 AM UTC-6, Edward K. Ream wrote:

Never mind, I am seeing similar problems on my Linux machine.

I'll attempt a fix today.

Recent revs allow me to run leoflexx.py in standalone mode in Ubuntu.  The following works, provided that you start from the leo-editor directory:

python leo/plugins/leoflexx.py

On Ubuntu, problems remain when attempting to run:

leo --gui=browser

The connection between LeoWapp and the server seems to break immediately. This is mysterious. For now, the workaround on Linux is to run leoflexx in stand-alone mode.

Edward

Xavier G. Domingo (xgid)

unread,
Dec 6, 2018, 10:21:41 PM12/6/18
to leo-editor
Great! After switching to the latest skeleton commit from this morning (Commit hash: 324649a689927aee0b847bf7a16f2d7285c53aed), it's working for me with the usual:

python launchLeo.py --gui=browser

Now playing with the new GUI. I like it!!

Edward K. Ream

unread,
Dec 7, 2018, 4:50:12 AM12/7/18
to leo-editor
On Thu, Dec 6, 2018 at 9:21 PM Xavier G. Domingo (xgid) <xgdo...@gmail.com> wrote:
Great! After switching to the latest skeleton commit from this morning (Commit hash: 324649a689927aee0b847bf7a16f2d7285c53aed), it's working for me with the usual:

python launchLeo.py --gui=browser

Now playing with the new GUI. I like it!!

Thanks for the report.  Recent revs allow you to specify a list of files to load.  However, only the first one is actually shown.

Edward
Reply all
Reply to author
Forward
0 new messages