Leo won't start

32 views
Skip to first unread message

Rob

unread,
Jan 11, 2022, 5:26:23 PM1/11/22
to leo-editor
After pulling in the latest devel branch, I get this:
~~~
'type' object is not subscriptable

*** Leo could not be started ***
Please verify you've installed the required dependencies:
https://leoeditor.com/installing.html

~~~

Before posting as an issue on GitHub, anyone else seeing this or know why Leo won't start?

Rob...

tbp1...@gmail.com

unread,
Jan 11, 2022, 5:36:31 PM1/11/22
to leo-editor
I got that too, but it turned out that it wasn't the latest devel branch, but only the latest zip of 6.6b1 that Github was offering.  When I fetched the actual latest using git yesterday (not the zip file), which was some version of 6.6b2, that error had gone away.

Rob

unread,
Jan 11, 2022, 5:40:16 PM1/11/22
to leo-editor
Hmm, how did you 'fetch' it? I did what I always do, from my repo CLI, I type `git pull` and update my devel branch. I also tried 'fetching' using GitHub for Windows. What else should I try?

Rob...

Rob

unread,
Jan 11, 2022, 5:51:51 PM1/11/22
to leo-editor
I switched to the `Master` branch in GitHub for Windows and `fetched`. Leo opens as before showing Leo 6.6b1, master branch, build 383d6776d1.

I guess problem solved, just not sure why the devel branch doesn't work, though.

Rob...

tbp1...@gmail.com

unread,
Jan 11, 2022, 6:19:54 PM1/11/22
to leo-editor
I use Git Extensions on Windows, and after checking out devel, ran the Pull/Fetch command, which I imagine is (behind the scene) the same command as what you did.  You do have to make sure you are pulling from Upstream (the Leo git repo) and not Origin (your clone, if you've got one).  I don't know what state master is in, but 6.6b1 is not the current version in devel.  Here's what I have right now:

Leo 6.6b2-devel, devel branch, build bdd9ba7442
2022-01-10 17:30:14 -0500


Rob

unread,
Jan 11, 2022, 6:45:32 PM1/11/22
to leo-editor
Not sure I understand that (what does `Upstream` mean?). I don't know about Git Extensions on Windows (I'm in an Anaconda environment, in case that matters). I'm not pulling from Origin. When I switch back to the devel branch, I get the same error and when I switch again to master, Leo starts fine.

Do I need to delete my repo altogether and start over again? Sorry I'm such a GH dunce, it's just not intuitive to me.

Rob...

tbp1...@gmail.com

unread,
Jan 11, 2022, 7:19:14 PM1/11/22
to leo-editor
Upstream means the original repo, the Leo-editor repo on Github in this case.  Origin means one's own clone, if any.  Upstream and Origin are standard terms.  Git Extensions is a Windows program, nothing to do with Python or anaconda, which I find easier to work with than just git itself (although it has its own learning curve).

Don't feel bad, I get confused about git/GitHub all the time. I'm not really the person to ask abut git questions, I'm afraid.  I think I know this much: if you are using git from the command line, you would want to start by checking out the devel branch.  You want to cd to the top directory where git stores the Leo-editor repository on your computer. Then 

git checkout devel

That should get you the latest version of the devel branch.  Then you have to make sure that Python uses it.  I don't know how you have been doing that.  How I do it, without Anaconda, is to set the PYTHONPATH environmental variable:

set PYTHONPATH=c:\tom\git\leo-editor

Then start Leo by running it from the command line:

python -m leo.core.runLeo

If you are not using git from the command line, someone else (or Prof. Google) will have to help you.

Félix

unread,
Jan 12, 2022, 12:58:27 AM1/12/22
to leo-editor
Devel doesnt work for me neither.

I switched to commit f85c47489eb7dc769b73370d1d8b7abd9b9f6028 from devel in the meantime
--
Félix

Edward K. Ream

unread,
Jan 12, 2022, 3:33:51 AM1/12/22
to leo-editor
On Wednesday, January 12, 2022 at 12:58:27 AM UTC-5 Félix wrote:
Devel doesnt work for me neither.

I switched to commit f85c47489eb7dc769b73370d1d8b7abd9b9f6028 from devel in the meantime

My apologies for the recent problems. I can not reproduce the problem on my machine. I have just checked out leo-editor from github and still no problem.

Something strange did happen yesterday. I mistakenly merged a PR that was based on master. Rather than asking for a new PR, I just merged master into devel. All seemed to go well for me, so I thought nothing more about the merge.

Let me know if the problem persists. I can talk you through single-stepping though the startup process.  I'll also check to see whether this issue may depend on python version.

Edward

Edward K. Ream

unread,
Jan 12, 2022, 3:58:20 AM1/12/22
to leo-editor
On Wednesday, January 12, 2022 at 3:33:51 AM UTC-5 Edward K. Ream wrote:

I'll also check to see whether this issue may depend on python version.

I just did a clean install of python 3.9.7 and python 3.6.8. I see the `'type' object is not subscriptable` message with python 3.6. All is fine with python 3.9.  I'll fix this today.

Edward
Reply all
Reply to author
Forward
0 new messages