leo stops working

119 views
Skip to first unread message

Geoff Evans

unread,
Jul 25, 2020, 9:30:30 AM7/25/20
to leo-editor
When I try to run leo now (in Ubuntu 18.04) I get:

(base) geoff:1427>leo ogmap.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 5.9-b2, build 20190409061733, Tue Apr  9 06:17:32 UTC 2019
livecode.py: can not import meta
pip install meta
Segmentation fault (core dumped)

It used to work fine; all I can think of that's changed is that I've done "apt-get update/upgrade": cuold that have broken a prerequisite?

Best,   geoff

Thomas Passin

unread,
Jul 25, 2020, 9:54:36 AM7/25/20
to leo-e...@googlegroups.com
v5.9 is very old by now.  I'm surprised that the Ubuntu package manager is still providing it.  The chances of troubleshooting this package are probably small at this point.

I'd suggest installing the current version of Leo directly using pip.  Make sure that you have python 3.6+ on your system.  You may have to use apt-get to get pip installed - some distros don't include it with Python, some do, and I don't remember about Ubuntu.  It may need to be called pip3 to make sure it's the one for Python 3.x. Then install Leo:

pip3 install leo  # pip3 instead of pip should make sure you are using the Python 3.x version instead of the Python 2.7 version.

Or to see which versions are available:

pip3 install leo==

On some systems you might need to use sudo:

sudo pip3 install leo

Or, if the system isn't finding the correct version of pip:

python3 -m pip install leo        # python3 will launch the available version of pip for Python 3.x

As of today, the latest version of Leo available this way is 6.2.1.

Geoff Evans

unread,
Jul 25, 2020, 4:17:25 PM7/25/20
to leo-editor
Thanks, I'll try that when I'm better able to concentrate if things start going wrong.
One puzzle, though: you refer to the Ubuntu package manager providing it: I didn't think leo was part of the Ubuntu distribution.
(What I'd really love is if it was part of the Anaconda distribution :-)

geoff

Thomas Passin

unread,
Jul 25, 2020, 7:06:34 PM7/25/20
to leo-editor
I assumed from one of your sentences that somehow it had been provided by apt.  Probably not - I'd just been thinking that apt upgraded Python, really..  As I just found out, a system upgrade can require a whole new installation of Leo using pip/pip3, which brings in new versions of all Leo's dependencies.

Geoff Evans

unread,
Jul 26, 2020, 6:40:18 AM7/26/20
to leo-editor
Oohhh!  So maybe after I upgraded Ubuntu I needed to "conda update anaconda" ??  I'll try that first and see what happens.

Geoff Evans

unread,
Jul 28, 2020, 3:44:28 PM7/28/20
to leo-editor
< pip install leo >   appeared to work (once I banished all the 5.9 stuff to a directory outside anaconda), but when I tried to run leo:

(base) geoff:1520>leo mbr.leo


setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)

But at least the complaint about meta went away ;-)
On Saturday, 25 July 2020 at 20:36:34 UTC-2:30 tbp1...@gmail.com wrote:

Thomas Passin

unread,
Jul 28, 2020, 5:43:27 PM7/28/20
to leo-editor
I wonder if you are running python 2.7 (or pip for python 2.7).  On my system, I have to run pip3 and python3 to get the 3.x versions instead of the 2.7 version.  Leo 6.x versions require Python 3.x (I think), and if you tried to run Leo with Python 2.7, you might get that kind of problem.

GEOFFREY EVANS

unread,
Jul 28, 2020, 6:36:35 PM7/28/20
to leo-e...@googlegroups.com
I don't think so:

(base) geoff:1532>which python
/home/geoff/anaconda3/bin/python

and pip also comes from anaconda3

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/79013a05-bb14-4f38-ae24-cec8d8c222f2o%40googlegroups.com
.

GEOFFREY EVANS

unread,
Jul 28, 2020, 6:47:22 PM7/28/20
to leo-e...@googlegroups.com
... and when I start a python or ipython session (not specifying python3) the @ operator for matrix multiplication works, which I think is a python3 innovation.

Thomas Passin

unread,
Jul 29, 2020, 8:31:16 AM7/29/20
to leo-editor
That's something nifty I didn't know.

Otherwise, a segfault makes me think of something wrong (or missing) from Qt5/PyQt5.
To unsubscribe from this group and all its topics, send an email to leo-e...@googlegroups.com.

To view this discussion on the web visit

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-e...@googlegroups.com.

To view this discussion on the web visit

GEOFFREY EVANS

unread,
Jul 29, 2020, 9:49:59 AM7/29/20
to leo-e...@googlegroups.com
Is there a version of Qt5/PyQt5 other than (better suited than) the one anaconda provides?

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.

To view this discussion on the web visit

Thomas Passin

unread,
Jul 29, 2020, 10:32:02 AM7/29/20
to leo-editor
I have no experience with anaconda.  It's conceivable (by which I suppose I mean "let's hope") that your problem is related to one I had a few days ago - see

To unsubscribe from this group and all its topics, send an email to leo-e...@googlegroups.com.

To view this discussion on the web visit

Geoff Evans

unread,
Jul 29, 2020, 3:40:23 PM7/29/20
to leo-editor
'fraid not:

libxcb-xinerama0 is already the newest version (1.13-2~ubuntu18.04).
libxcb-xinerama0 set to manually installed.

Anaconda is such a popular python distribution it's odd if no-one else has had this issue.  Particularly when leo worked well in my current setup for almost a year before suddenly failing.

Brian Theado

unread,
Jul 29, 2020, 8:23:12 PM7/29/20
to leo-editor
Geoff

On Tue, Jul 28, 2020 at 3:44 PM Geoff Evans <gtev...@nl.rogers.com> wrote:
< pip install leo >   appeared to work (once I banished all the 5.9 stuff to a directory outside anaconda), but when I tried to run leo:

(base) geoff:1520>leo mbr.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)

For core dumps, you can add 'import faulthandler; faulthandler.enable()' to launchLeo.py and you should get a python stack trace at the time of the segfault. Maybe you will find a clue in that output. See this thread where I share details about doing the same: https://groups.google.com/d/msg/leo-editor/ghiIN7irzY0/2wreFgcYDQAJ 

Brian

GEOFFREY EVANS

unread,
Jul 30, 2020, 7:24:46 AM7/30/20
to leo-e...@googlegroups.com
Thanks Brian,
    Sorry for the huge file.  There's nothing in it that I can recognize as the problem, but others will have more skill and knowledge ofthese areas.

geoff

(base) geoff:1567>python leo-editor-master/launchLeo.py
Fatal Python error: Segmentation fault

Current thread 0x00007f2f26aa5740 (most recent call first):
  File "/home/geoff/anaconda3/lib/python3.7/ctypes/__init__.py", line 273 in _reset_cache
  File "/home/geoff/anaconda3/lib/python3.7/ctypes/__init__.py", line 543 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/mkl/__init__.py", line 33 in __enter__
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/mkl/__init__.py", line 48 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/numpy/_distributor_init.py", line 13 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1035 in _handle_fromlist
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/numpy/__init__.py", line 140 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/scipy/__init__.py", line 61 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/networkx/generators/community.py", line 20 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/networkx/generators/__init__.py", line 8 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/networkx/__init__.py", line 112 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/asttools/visitors/graph_visitor.py", line 11 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/asttools/__init__.py", line 55 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/decompiler/simple_instructions.py", line 13 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/decompiler/instructions.py", line 8 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/decompiler/__init__.py", line 7 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/python3.7/site-packages/meta/__init__.py", line 2 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  ...
Segmentation fault (core dumped)



--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.

To view this discussion on the web visit

Edward K. Ream

unread,
Jul 30, 2020, 8:56:32 AM7/30/20
to leo-editor
On Wed, Jul 29, 2020 at 7:23 PM Brian Theado <brian....@gmail.com> wrote:
Geoff

On Tue, Jul 28, 2020 at 3:44 PM Geoff Evans <gtev...@nl.rogers.com> wrote:
< pip install leo >   appeared to work (once I banished all the 5.9 stuff to a directory outside anaconda), but when I tried to run leo:

(base) geoff:1520>leo mbr.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)

For core dumps, you can add 'import faulthandler; faulthandler.enable()' to launchLeo.py and you should get a python stack trace at the time of the segfault.

I didn't know that. Thanks. Check the "learn something new every day" box.

Edward

Brian Theado

unread,
Jul 30, 2020, 2:10:00 PM7/30/20
to leo-editor
Based on your output, it looks like you are still stuck with your original problem. It is crashing while trying to load the meta package. Since it is the livecode.py plugin which is using that package, you could just launch leo without any plugins (--no-plugins command line option) and then disable the livecode.py plugin.

If you need the livecode plugin, then your best bet is to try troubleshooting it from python without leo involved.

python
>>> import meta

If that fails in the same way, then the issue is completely separate from leo.


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 leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/1550979585.6600179.1596108273873%40mail.yahoo.com.

GEOFFREY EVANS

unread,
Jul 30, 2020, 3:37:56 PM7/30/20
to leo-e...@googlegroups.com
Thanks Brian,
that seems to work: at least Leo starts now.   If I've got this right, "disable the livecode.py plugin" means comment out that line in myLeoSettings.leo?

geoff



GEOFFREY EVANS

unread,
Jul 30, 2020, 3:55:57 PM7/30/20
to leo-e...@googlegroups.com
More experiments:
    python
    >>> import meta
doesn't complain;  but leo won't run when I comment out livecode.py in myLeoSettings.leo
I can probably live without the plugins, though it would be nice to understand what's still going wrong.

geoff

Thomas Passin

unread,
Jul 30, 2020, 4:30:14 PM7/30/20
to leo-editor
Some of the plugins are awfully handy to have.  If you have the patience, you could comment out all the plugins except one at a time until you find one that causes your problem.


On Thursday, July 30, 2020 at 3:55:57 PM UTC-4, Geoff Evans wrote:
More experiments:
    python
    >>> import meta
doesn't complain;  but leo won't run when I comment out livecode.py in myLeoSettings.leo
I can probably live without the plugins, though it would be nice to understand what's still going wrong.

geoff

To unsubscribe from this group and all its topics, send an email to leo-e...@googlegroups.com.

To view this discussion on the web visit

--
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 leo-e...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-e...@googlegroups.com.

GEOFFREY EVANS

unread,
Jul 31, 2020, 5:13:36 AM7/31/20
to leo-e...@googlegroups.com
I'm a bit confused.  Would I have to comment out the lines in leoSettings.leo?   The way I read the documentation, it appears that commenting them out in myLeoSettings.leo  would simply mean accepting the default from leoSettings.leo.  Or is there a way in myLeoSettings to remove a previously included plugin?

I'm also confused because myLeoSettings.leo, which I didn't deliberately construct when I reinstalled, is almost as long (12000+ lines) as leoSettings.leo, whereas on another (OS-X) computer it is only a couple of hundred lines -- which I thought was the recommended way.

geoff

On Thursday, July 30, 2020, 6:00:17 p.m. NDT, Thomas Passin <tbp1...@gmail.com> wrote:


Some of the plugins are awfully handy to have.  If you have the patience, you could comment out all the plugins except one at a time until you find one that causes your problem.

On Thursday, July 30, 2020 at 3:55:57 PM UTC-4, Geoff Evans wrote:
More experiments:
    python
    >>> import meta
doesn't complain;  but leo won't run when I comment out livecode.py in myLeoSettings.leo
I can probably live without the plugins, though it would be nice to understand what's still going wrong.

geoff

On Thursday, July 30, 2020, 3:40:02 p.m. NDT, Brian Theado <brian...@gmail.com> wrote:


Based on your output, it looks like you are still stuck with your original problem. It is crashing while trying to load the meta package. Since it is the livecode.py plugin which is using that package, you could just launch leo without any plugins (--no-plugins command line option) and then disable the livecode.py plugin.

If you need the livecode plugin, then your best bet is to try troubleshooting it from python without leo involved.

python
>>> import meta

If that fails in the same way, then the issue is completely separate from leo.


On Thu, Jul 30, 2020 at 7:24 AM GEOFFREY EVANS <gtev...@nl.rogers.com> wrote:
Thanks Brian,
    Sorry for the huge file.  There's nothing in it that I can recognize as the problem, but others will have more skill and knowledge ofthese areas.

geoff

(base) geoff:1567>python leo-editor-master/launchLeo.py
Fatal Python error: Segmentation fault

Current thread 0x00007f2f26aa5740 (most recent call first):
  File "/home/geoff/anaconda3/lib/ python3.7/ctypes/__init__.py", line 273 in _reset_cache
  File "/home/geoff/anaconda3/lib/ python3.7/ctypes/__init__.py", line 543 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/mkl/__ init__.py", line 33 in __enter__
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/mkl/__ init__.py", line 48 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/numpy/ _distributor_init.py", line 13 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1035 in _handle_fromlist
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/numpy/ __init__.py", line 140 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/scipy/ __init__.py", line 61 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/ networkx/generators/community. py", line 20 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/ networkx/generators/__init__. py", line 8 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/ networkx/__init__.py", line 112 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/ asttools/visitors/graph_ visitor.py", line 11 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/ asttools/__init__.py", line 55 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/ decompiler/simple_ instructions.py", line 13 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/ decompiler/instructions.py", line 8 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/ decompiler/__init__.py", line 7 in <module>

  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external> ", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/home/geoff/anaconda3/lib/ python3.7/site-packages/meta/_ _init__.py", line 2 in <module>

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/ topic/leo-editor/Y6KRkP5wi2o/ unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-e...@ googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.

To view this discussion on the web visit

Thomas Passin

unread,
Jul 31, 2020, 8:17:34 AM7/31/20
to leo-e...@googlegroups.com
Whoa, 12000 lines is out of sight!  Definitely something wrong there.

If you delete myLeoSettings.leo and then ask Leo to open it from the settings menu, Leo will offer to create a new one (I renamed my existing one so I could restore it later).  I just did that, and the new MyLeoSettings.leo file (on Windows) was some 3.95k long with less than 200 lines.  The entire list of plugins is in there, apparently copied from LeoSettings,Leo.  It's worth trying.  The appearance (fonts and window layout) was awful, but at least it's a start.  You could copy the theme and font settings from your old MyLeoSettings.leo file, if they haven't been munged up too badly.

About the plugins, LeoSettings.leo normally has, IIRC, a small set of plugins that are not commented out, and a larger number that are.  Those lists of enabled and commented plugins seems to get copied to myLeoSettings.leo. I think that your understanding fits with mine - MyLeoSettings has priority for setting something (that is, uncommented settings), otherwise LeoSettings.leo prevails.

On Friday, July 31, 2020 at 5:13:36 AM UTC-4, Geoff Evans wrote:
I'm a bit confused.  Would I have to comment out the lines in leoSettings.leo?   The way I read the documentation, it appears that commenting them out in myLeoSettings.leo  would simply mean accepting the default from leoSettings.leo.  Or is there a way in myLeoSettings to remove a previously included plugin?

I'm also confused because myLeoSettings.leo, which I didn't deliberately construct when I reinstalled, is almost as long (12000+ lines) as leoSettings.leo, whereas on another (OS-X) computer it is only a couple of hundred lines -- which I thought was the recommended way.

.

GEOFFREY EVANS

unread,
Jul 31, 2020, 9:22:08 AM7/31/20
to leo-e...@googlegroups.com
Sorry to be slow, but:
"MyLeoSettings has priority for setting something, otherwise LeoSettings.leo prevails."

It seems to me that if I simply comment out a plugin line in myLeoSettings.leo, I'm turning it into a line that gets ignored, not a line that contradicts what's in leoSettings.leo -- so the plugin would still be there.  Which would mean that I'd have to edit leoSettings.leo itself?

I suppose an alternative is that there's a whole plugins section in both files, and the section in My... would override the section in Leo...   In which case commenting out would work.

I guess I can experiment.

geoff


On Friday, July 31, 2020, 10:12:38 a.m. NDT, Thomas Passin <tbp1...@gmail.com> wrote:


Whoa, 12000 lines is out of sight!  Definitely something wrong there.

If you delete myLeoSettings.leo and then ask Leo to open it from the settings menu, Leo will offer to create a new one (I renamed my existing one so I could restore it later).  I just did that, and the new MyLeoSettings.leo file (on Windows) was some 3.95k long with less than 200 lines.  The entire list of plugins is in there, apparently copied from LeoSettings,Leo.  It's worth trying.  The appearance (fonts and window layout) was awful, but at least it's a start.  You could copy the theme and font settings from your old MyLeoSettings.leo file, if they haven't been munged up too badly.

About the plugins, LeoSettings.leo normally has, IIRC, a small set of plugins that are not commented out, and a larger number that are.  Those lists of enabled and commented plugins seems to get copied to myLeoSettings.leo. I think that your understanding fits with mine - MyLeoSettings has priority for setting something, otherwise LeoSettings.leo prevails.

On Friday, July 31, 2020 at 5:13:36 AM UTC-4, Geoff Evans wrote:
I'm a bit confused.  Would I have to comment out the lines in leoSettings.leo?   The way I read the documentation, it appears that commenting them out in myLeoSettings.leo  would simply mean accepting the default from leoSettings.leo.  Or is there a way in myLeoSettings to remove a previously included plugin?

I'm also confused because myLeoSettings.leo, which I didn't deliberately construct when I reinstalled, is almost as long (12000+ lines) as leoSettings.leo, whereas on another (OS-X) computer it is only a couple of hundred lines -- which I thought was the recommended way.

geoff

You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit

GEOFFREY EVANS

unread,
Jul 31, 2020, 9:40:37 AM7/31/20
to leo-e...@googlegroups.com
PS  I guess the alternative was correct.  I commented out the whole recommended plugins section and now leo will start without --no-plugins :-)

BUT  it turns out that livecode.py is not one of the recommended ones in myLeoSettings.py -- and still, until I commented out all the ones that were recommended, leo with no option failed.  So I still need to find the culprit (but not immediately; other things press)


Thomas Passin

unread,
Jul 31, 2020, 11:08:50 AM7/31/20
to leo-editor


On Friday, July 31, 2020 at 9:22:08 AM UTC-4, Geoff Evans wrote:
Sorry to be slow, but:
"MyLeoSettings has priority for setting something, otherwise LeoSettings.leo prevails."

It seems to me that if I simply comment out a plugin line in myLeoSettings.leo, I'm turning it into a line that gets ignored, not a line that contradicts what's in leoSettings.leo -- so the plugin would still be there.  Which would mean that I'd have to edit leoSettings.leo itself?

I suppose an alternative is that there's a whole plugins section in both files, and the section in My... would override the section in Leo...   In which case commenting out would work.

I think the way it works is this:

LeoSettings.leo has a list of plugins. most are commented out, but a few of the more useful ones are not commented out.  An uncommented plugin in MyLeoSettings.leo will cause that plugin to be enabled.  That is, a setting line that is commented out is the same as it it were not there.  So a line that is commented out in MyLeoSettings.leo will not override the same uncommented line in LeoSettings.leo; only the uncommented lines count, and also if there are uncommented settings that are different between the two files, the one in MyLeoSettings.leo will be used.

 

GEOFFREY EVANS

unread,
Jul 31, 2020, 3:33:19 PM7/31/20
to leo-e...@googlegroups.com
My latest hypothesis:
    there is an @enabled-plugins node in both leoSettings and myLeoSettings
    when myLeoSettings is created for the first time by a new leo user, the two nodes are the same
    if myLeoSettings has an @enabled-plugin node, it overrides the node of the same name in leoSettings
    this explains why leo will run for me when I comment out plugins recommended in myLeoSettings (but leave leoSettings unchanged)
    because the whole leoSettings node was overridden, the plugins that were not commented out there have no effect

Edward, we need an umpire :-)

I'm going to have to start reading the docstrings of the recommended plugins to see what they all do.  Fun!

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit

Edward K. Ream

unread,
Jul 31, 2020, 5:45:04 PM7/31/20
to leo-editor
On Fri, Jul 31, 2020 at 2:33 PM GEOFFREY EVANS <gtev...@nl.rogers.com> wrote:

Edward, we need an umpire :-)

My apologies for the troubles you are having.

In general, settings in myLeoSettings.leo completely override settings in leoSettings.leo.

Alas, @enabled-plugins is an exception. There is no good way to disable a plugin once it is active, so @enabled-plugins can only add to the enabled plugins.

Edward

GEOFFREY EVANS

unread,
Aug 1, 2020, 6:29:44 AM8/1/20
to leo-e...@googlegroups.com
No need at all to apologize.  With help from the group I've got leo to work, and I'm having fun exploring.
Besides, I'm forever in your debt for the creation of leo.

But I'm still puzzled.  leoSettings.leo includes a snippet SN of plugins:

leo_to_html.py
mod_scripting.py
nav_qt.py
nodetags.py
quicksearch.py
screen_capture.py
settings_finder.py
stickynotes.py
todo.py
viewrendered.py

The myLeosettings.leo file that gets created automatically (call that file IN) contains a copy of SN.
I can create a near-copy of IN (call it OUT) by prepending "# " to each line of SN.
As I understand your explanation, IN does nothing here because the lines repeat what leoSettings did;
OUT should do nothing because its lines are just comments.  So their effects should be identical.  Now:

(base) geoff:1674>cp IN myLeoSettings.leo
(base) geoff:1675>leo


setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)
(base) geoff:1676>cp OUT myLeoSettings.leo
(base) geoff:1677>leo


setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
wrote recent file: /home/geoff/.leo/.leoRecentFiles.txt
wrote /home/geoff/.leo/leo.session

OUT allows leo to run; IN does not.   What am I missing?

geoff

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit

Edward K. Ream

unread,
Aug 1, 2020, 7:32:06 AM8/1/20
to leo-editor
On Sat, Aug 1, 2020 at 5:29 AM GEOFFREY EVANS <gtev...@nl.rogers.com> wrote:

As I understand your explanation, IN does nothing here because the lines repeat what leoSettings did;
OUT should do nothing because its lines are just comments.  So their effects should be identical.

This is a complicated setting. Trust what you see, not what I say.

Edward

GEOFFREY EVANS

unread,
Aug 1, 2020, 8:35:47 AM8/1/20
to leo-e...@googlegroups.com
It gets stranger:

****************************************************
(base) geoff:1699>leo inLeoSettings.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)
(base) geoff:1700>leo outLeoSettings.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
wrote recent file: /home/geoff/.leo/.leoRecentFiles.txt
*********************************************************

inLeoSettings.leo is IN renamed as a leo file, similarly for outLeo...
So leo won't even edit a .leo file that it doesn't like as a settings file.
???

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/Y6KRkP5wi2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit

Edward K. Ream

unread,
Aug 2, 2020, 6:32:42 AM8/2/20
to leo-editor
On Sat, Aug 1, 2020 at 7:35 AM GEOFFREY EVANS <gtev...@nl.rogers.com> wrote:

It gets stranger:

****************************************************
(base) geoff:1699>leo inLeoSettings.leo

setting leoID from os.getenv('USER'): 'geoff'
Leo 6.2.1 final
Segmentation fault (core dumped)
(base) geoff:1700>leo outLeoSettings.leo

Segfaults are not supposed to happen in pure python programs. They usually indicate installation problems.

I can't usually help debug installation problems. My advice is to get Leo working with a reasonable version of myLeoSettings.leo. Don't go looking for ways to stress your installation.

Edward
Reply all
Reply to author
Forward
0 new messages