Re: Leo not running with pythonw.exe

2016-07-30 Thread lewis

If you don't run git, you can also go to 
https://github.com/leo-editor/leo-editor/commits/master
and download the "f329acf" commit. Hope it helps.

Lewis

On Friday, 29 July 2016 07:18:50 UTC+10, Terry Brown wrote:
>
>
> the arrowed link is always the most recent Leo, and it's just a .zip 
> file, not gitness needed. 
>
> Cheers -Terry
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-28 Thread 'Terry Brown' via leo-editor
On Thu, 28 Jul 2016 13:48:02 -0700 (PDT)
Terry  wrote:

> Ed,
> 
> I feel like we're starting to go in circles
> 
> Let me be clear: I don't know Git - unfortunately, I don't have it.
> I've been getting Leo from the links on the Download 
> page http://leoeditor.com/download.html
> So please - let me know where/how to get Leo with the "f329acf" fix

>From the bottom of that page:

  Here are some direct download links:
  
  Latest<
  1 day ago
  2 days ago
  5 days ago
  10 days ago
  30 days ago
  90 days ago

the arrowed link is always the most recent Leo, and it's just a .zip
file, not gitness needed.

Cheers -Terry

> thanks
> 
> 
> On Thursday, July 21, 2016 at 12:17:16 PM UTC-4, Edward K. Ream wrote:
> >
> > On Thu, Jul 21, 2016 at 11:04 AM, Terry  > > wrote: 
> > > 
> > > the fix is not in the "latest" 
> >
> >
> > The latest is f329acf. Not sure where the other rev number came
> > from. 
> >
> > This works for me on both Linux and Windows 10. 
> >
> > EKR 
> >
> 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-28 Thread Edward K. Ream
On Thu, Jul 28, 2016 at 3:48 PM, Terry  wrote:

> Let me be clear: I don't know Git - unfortunately, I don't have it.

If you want to be sure that you have a particular git commit, then
installing git is the most direct way.

> I've been getting Leo from the links on the Download page
> http://leoeditor.com/download.html

​T​
he snapshots  part of the
downloads page
​ should contain the commit you want.​
​ ​
Th
​is commit was pushed several days ago, so the 1 day ago

link should incorporate the desired code.

EKR

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-28 Thread Terry
Ed,

I feel like we're starting to go in circles

Let me be clear: I don't know Git - unfortunately, I don't have it.
I've been getting Leo from the links on the Download 
page http://leoeditor.com/download.html
So please - let me know where/how to get Leo with the "f329acf" fix

thanks


On Thursday, July 21, 2016 at 12:17:16 PM UTC-4, Edward K. Ream wrote:
>
> On Thu, Jul 21, 2016 at 11:04 AM, Terry > 
> wrote: 
> > 
> > the fix is not in the "latest" 
>
>
> The latest is f329acf. Not sure where the other rev number came from. 
>
> This works for me on both Linux and Windows 10. 
>
> EKR 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-25 Thread Edward K. Ream
On Mon, Jul 25, 2016 at 3:12 PM, Terry  wrote:
> Why is it you don't seem to want to support Windows 7 ?
> I'd bet my left ear that W7 has far, far more installations than W10.

Windows 10 is what I have, but afaik anything that work on 10 should
work on 7.  Do you know of any incompatibilities?

EKR

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-25 Thread Terry
Why is it you don't seem to want to support Windows 7 ?
I'd bet my left ear that W7 has far, far more installations than W10.



On Thursday, July 21, 2016 at 12:17:16 PM UTC-4, Edward K. Ream wrote:
>
> On Thu, Jul 21, 2016 at 11:04 AM, Terry > 
> wrote: 
> > 
> > the fix is not in the "latest" 
>
>
> The latest is f329acf. Not sure where the other rev number came from. 
>
> This works for me on both Linux and Windows 10. 
>
> EKR 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-21 Thread Edward K. Ream
On Thu, Jul 21, 2016 at 11:04 AM, Terry  wrote:
>
> the fix is not in the "latest"


The latest is f329acf. Not sure where the other rev number came from.

This works for me on both Linux and Windows 10.

EKR

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-21 Thread Terry

the fix is not in the "latest" 
(https://github.com/leo-editor/leo-editor/archive/master.zip)
 >>> Leo 5.4-devel, build 20160412153848

is it ?

If not how can I get it ?

BTW Python crashes upon Leo start


On Monday, July 18, 2016 at 12:04:37 PM UTC-4, Edward K. Ream wrote:

On Mon, Jul 18, 2016 at 9:00 AM, Terry > 
> wrote:
>
>> Nothing happens.
>> I'm suspecting maybe the process just crashes on the Qt issues ?
>>
>
> Rev 9d28e6c fixes this, at least on Windows 10.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-18 Thread Edward K. Ream
On Mon, Jul 18, 2016 at 9:00 AM, Terry  wrote:

> Nothing happens.
> I'm suspecting maybe the process just crashes on the Qt issues ?
>

Rev 9d28e6c fixes this, at least on Windows 10.

All the new code is in LM.setStdStreams, which sends stderr and/or stdout
to the log pane if they don't exist.

For debugging this code it's essential to redirect stderr to a file.  On
windows this would be done with 2>stderr.txt. You can't even use
pdb.set_trace because sys.stdin does not exist.

This is exceptionally tricky code.  The key difference between g.es and
LeoStdOut.write is setting from_redirect=True in the call to log.put in
LeoStdOut.write.  This suppresses unwanted newlines when calling print.  It
also allows the 'end' keyword argument to be handled properly in calls to
print.

All unit tests pass, but not tested yet on Linux. Let me know if there
problems.

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-18 Thread Terry
Nothing happens.
I'm suspecting maybe the process just crashes on the Qt issues ?


On Saturday, July 16, 2016 at 6:15:39 AM UTC-4, tfer wrote:
>
> From a terminal/console try:
>pythonw .\launchLeo.py  1>stdout.txt 2>stderr.txt
>
>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-16 Thread Edward K. Ream
On Sat, Jul 16, 2016 at 7:02 AM, Edward K. Ream  wrote:

​> ​
It would best if Leo worked out of the box with pythonw without the need
for redirection.

​There are two parts to the solution:​

​1. ​
sys.stdout & sys.stderr should send to to dev/nul or its equivalent if they
don't exist
​ on startup.​
​ I assume this happens when using pythonw.exe
​with no command-line redirection of stdout or stderr.

2. g.es and g.pr should send all messages exactly once to the log pane.
This may be a bit tricky. We could also imagine new stderr or stdout panes
in the log window, but this is not essential.

Only point 1 is urgent.

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-16 Thread Edward K. Ream
​​
On Sat, Jul 16, 2016 at 5:15 AM, 'tfer' via leo-editor <
leo-editor@googlegroups.com> wrote:

> From a terminal/console try:
>
> ​​
>  pythonw
> ​​
> .\launchLeo.py  1>stdout.txt 2>stderr.txt
>
> This worked for me, reference <
> http://stackoverflow.com/questions/9705982/pythonw-exe-or-python-exe>
>


​Thanks for this.  It does work for me on Windows 10.  For example:

from __future__ import print_function # python 2.x.
import sys
for i in range(10):
print(i, file=sys.stderr)

It would best if Leo worked out of the box with pythonw without the need
for redirection.  I'll look into it.  This should be feasible: most calls
to stdout/stderr happen from just a few places: g.es, g.es_print, etc.,
which funnel into g.pr.

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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Leo not running with pythonw.exe

2016-07-16 Thread 'tfer' via leo-editor
>From a terminal/console try:
   pythonw .\launchLeo.py  1>stdout.txt 2>stderr.txt

This worked for me, reference <
http://stackoverflow.com/questions/9705982/pythonw-exe-or-python-exe>

On Friday, July 15, 2016 at 12:07:11 PM UTC-4, Terry wrote:
>
> *Problem: Leo does not run when launched with pythonw.exe. Appears to run 
> fine with python.exe but has starting messages (see output below)*
>
> platform : win-64
> python version : 3.5.2.final.0
> Leo is installed with: LeoSetup-5.3-final.exe
> Qt5 installed: 
> http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe
>
> Launching with python.exe:
>
>
> C:\Users\terry\AppData\Local\Continuum\Miniconda3\python.exe "C:\Program 
> Files (x86)\Leo-5.3-final\launchLeo.py"
>
> leoID=6857 (in C:\Users\terry\.leo)
> reading settings in C:\Program Files 
> (x86)\Leo-5.3-final\leo\config\leoSettings.leo
> reading settings in C:\Users\terry\.leo\myLeoSettings.leo
> @openwith lines must start with a tag: 
> 'subprocess.Popen',['pythonw','C:/Python24/Lib/idlelib/idle.pyw'],'.py'
> @openwith lines must start with a tag: 'subprocess.Popen','C:/Program 
> Files/Microsoft Office/Office/WINWORD.exe',None
> conflicting key bindings in myLeoSettings.leo
>all Ctrl+Shift+Key-0 delete-comments
>all Ctrl+Shift+Key-0 delete-comments
> Failed to load libEGL (The specified module could not be found.)
> QWindowsEGLStaticContext::create: Failed to load and resolve libEGL 
> functions
> Failed to load opengl32sw.dll (The specified module could not be found.)
> Failed to load and resolve WGL/OpenGL functions
> reading settings in C:\Users\terry\.leo\harry.leo
>
> ** isPython3: True
> Leo 5.3-final, build 20160412153848, Tue Apr 12 15:38:48 CDT 2016
> Not running from a git repo
> Python 3.5.2, PyQt version 5.6.0
> Windows 7 AMD64 (build 6.1.7601) SP1
> wrote recent file: C:\Users\terry\.leo\.leoRecentFiles.txt
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Leo not running with pythonw.exe

2016-07-15 Thread Terry
*Problem: Leo does not run when launched with pythonw.exe. Appears to run 
with python.exe but has messages (see below)*

platform : win-64
python version : 3.5.2.final.0
Leo is installed with: LeoSetup-5.3-final.exe
Qt5 
installed: 
http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x64-2.exe

Launching with python.exe:


C:\Users\terry\AppData\Local\Continuum\Miniconda3\python.exe "C:\Program 
Files (x86)\Leo-5.3-final\launchLeo.py"

leoID=6857 (in C:\Users\terry\.leo)
reading settings in C:\Program Files 
(x86)\Leo-5.3-final\leo\config\leoSettings.leo
reading settings in C:\Users\terry\.leo\myLeoSettings.leo
@openwith lines must start with a tag: 
'subprocess.Popen',['pythonw','C:/Python24/Lib/idlelib/idle.pyw'],'.py'
@openwith lines must start with a tag: 'subprocess.Popen','C:/Program 
Files/Microsoft Office/Office/WINWORD.exe',None
conflicting key bindings in myLeoSettings.leo
   all Ctrl+Shift+Key-0 delete-comments
   all Ctrl+Shift+Key-0 delete-comments
Failed to load libEGL (The specified module could not be found.)
QWindowsEGLStaticContext::create: Failed to load and resolve libEGL 
functions
Failed to load opengl32sw.dll (The specified module could not be found.)
Failed to load and resolve WGL/OpenGL functions
reading settings in C:\Users\terry\.leo\harry.leo

** isPython3: True
Leo 5.3-final, build 20160412153848, Tue Apr 12 15:38:48 CDT 2016
Not running from a git repo
Python 3.5.2, PyQt version 5.6.0
Windows 7 AMD64 (build 6.1.7601) SP1
wrote recent file: C:\Users\terry\.leo\.leoRecentFiles.txt

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.