Leo won't start

41 views
Skip to first unread message

Rob

unread,
Oct 2, 2020, 12:19:53 PM10/2/20
to leo-editor
On just one of my Windows 10 PCs, Leo no longer starts (other PC works fine). Up until recently, this command line started Leo as expected:

python.exe .\launchLeo.py

Now, it just goes to a new command line with no error messages or anything. I tried various command line options with no success. The Leo version was updated on 7/2/2020, then again today from GitHub.

Any ideas why or how to fix?

Rob...

tbp1...@gmail.com

unread,
Oct 2, 2020, 2:22:07 PM10/2/20
to leo-editor
I always use the command python -m leo.core.runLeo. This lets me avoid problems with paths to any special launchers, and just runs the actual code directly.  If I want to run from my Github repo, I first set the PYTHONPATH environmental variable to the top of the repo first.

As for the command you use, in its exact form your current directory would need to be the same as the directory that launchLeo.py is in.  The ".\" does nothing useful.

My installation of Leo 6.2 final using the Windows installer does not even have a launchLeo.py file.  That might be what is happening to you.

Just use my command (above).  You won't need to cd to the starting directory, or add its location to the path, so it's easier and more reliable.

Rob

unread,
Oct 6, 2020, 6:53:19 AM10/6/20
to leo-editor
Thanks for the suggestion. However, I get the same result using your command, which is nothing happens.

Rob...

Thomas Passin

unread,
Oct 6, 2020, 8:24:15 AM10/6/20
to leo-editor
Pretty strange, all right.  If you open the Windows Task Manager, can you tell if it is running?  There should be an entry for "Python", which should look something like the attached image. If you see it, Leo is running but somehow invisible.  If not, Leo has quit.  Also, is it possible that there is a Leo icon in the task bar, even if Leo itself is invisible?

You could try the Event Viewer.  Open it, and look in Windows Logs/Application.  Filter the view to show only errors, or errors and warnings.  With luck, there  will be an entry for you, and with more luck it might even say something useful.
taskman.png

Rob

unread,
Oct 6, 2020, 12:47:21 PM10/6/20
to leo-editor
Well, it's not a Leo problem as I can't even execute a simple Hello World script. I must have a corrupted Python installation. Looks like more digging...

Rob...

Thomas Passin

unread,
Oct 6, 2020, 2:00:26 PM10/6/20
to leo-editor
Do you get anything from python -V?  Probably better just to reinstall and be done with it.

Rob

unread,
Oct 6, 2020, 2:12:10 PM10/6/20
to leo-editor
No, I get nothing, just returns to command line. I have Python installed through Anaconda and now it's stuck trying to update. I'm afraid I'll have to reinstall everything; not looking forward to that.

Rob...

Thomas Passin

unread,
Oct 6, 2020, 2:33:31 PM10/6/20
to leo-editor
I feel for you!  Good luck.
Reply all
Reply to author
Forward
0 new messages