On Feb 9, 4:02 pm, "Edward K. Ream" <[email protected]> wrote:
> On Tue, Feb 9, 2010 at 3:51 PM, Edward K. Ream <[email protected]> wrote:
>
> > No problem.  This is one of the standard Python 3.x messages.  It
> > should be easy to fix.
>
> Fixed on the trunk at rev 2923.  All unit tests pass with Python
> 2.x/3.x, including a new test of c.createOpenWithTempFile.

I updated on Windows 7 to build 2925 and tried again.

Now a somewhat different error occurs which appears to happen after a
call to the Windows API.
"WindowsError: [Error 2] The system cannot find the file specified"

gvim does not launch in this situation either. gvim is in my system
PATH and can be launched from a standard cmd shell using "gvim"
without preceding path.

# Try: LEO_EDITOR="C:\Program Files (x86)\Vim\vim72\gvim.exe"
Result: "WindowsError: [Error 5] Access is denied."

# Try: LEO_EDITOR=C:\PROGRA~2\Vim\vim72\gvim.exe
Result: Success

# Try: LEO_EDITOR=C:\Program Files (x86)\Vim\vim72\gvim.exe
Result: Success

(Delete LEO_EDITOR variable and leave ONLY the EDITOR one)

#Try: EDITOR=C:\PROGRA~2\Vim\vim72\gvim.exe
Result: Success

#Try: EDITOR=C:\Program Files (x86)\Vim\vim72\gvim.exe
Result: Success

My take on this is that the path+name of the specified editor (in
either LEO_EDITOR or EDITOR) cannot have BLANKS in the path when the
executable needs to be searched for and cannot use QUOTES when
specifying the complete path (which is a common Windows convention for
path+file with blanks).

Below are complete log outputs for the two different errors cited:

#~#
Python 3.1.1, qt version 4.6.1
Windows 6, 1, 7600, 2,
leoID=skrivsm (in C:\Users\skrivsm\.leo)
load dir: C:\leo-editor\trunk\leo\core
global config dir: C:\leo-editor\trunk\leo\config
home dir: C:\Users\skrivsm
reading settings in C:\leo-editor\trunk\leo\config\leoSettings.leo
using menus from: leoSettings.leo
reading settings in C:\Users\skrivsm\.leo\myLeoSettings.leo
opening default_leo_file: C:\Users\skrivsm\.leo\workbook.leo
@enabled-plugins found in myLeoSettings.leo
reading: C:\Users\skrivsm\.leo\workbook.leo
creating:   newHeadline_LeoTemp_62387984.py
time:  1265759165.3427734
vtuple ['gvim', 'c:\\users\\skrivsm\\appdata\\local\\temp\
\newHeadline_LeoTemp_62387984.py']
Traceback (most recent call last):
  File "C:\leo-editor\trunk\leo\core\leoCommands.py", line 1032, in
openTempFileInExternalEditor
    subprocess.Popen(vtuple,shell=use_shell)
  File "C:\Python31\lib\subprocess.py", line 646, in __init__
    errread, errwrite)
  File "C:\Python31\lib\subprocess.py", line 856, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
#~#

#~#
Leo Log Window
Leo 4.7 beta 3, build 2835, February 2, 2010
Python 3.1.1, qt version 4.6.1
Windows 6, 1, 7600, 2,
leoID=skrivsm (in C:\Users\skrivsm\.leo)
load dir: C:\leo-editor\trunk\leo\core
global config dir: C:\leo-editor\trunk\leo\config
home dir: C:\Users\skrivsm
reading settings in C:\leo-editor\trunk\leo\config\leoSettings.leo
using menus from: leoSettings.leo
reading settings in C:\Users\skrivsm\.leo\myLeoSettings.leo
opening default_leo_file: C:\Users\skrivsm\.leo\workbook.leo
@enabled-plugins found in myLeoSettings.leo
reading: C:\Users\skrivsm\.leo\workbook.leo
creating:   newHeadline_LeoTemp_56428464.py
time:  1265760609.9824219
vtuple ['"C:\\Program Files (x86)\\Vim\\vim72\\gvim.exe"', 'c:\\users\
\skrivsm\\appdata\\local\\temp\\newHeadline_LeoTemp_56428464.py']
Traceback (most recent call last):
  File "C:\leo-editor\trunk\leo\core\leoCommands.py", line 1032, in
openTempFileInExternalEditor
    subprocess.Popen(vtuple,shell=use_shell)
  File "C:\Python31\lib\subprocess.py", line 646, in __init__
    errread, errwrite)
  File "C:\Python31\lib\subprocess.py", line 856, in _execute_child
    startupinfo)
WindowsError: [Error 5] Access is denied
#~#

-Shawn

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to