Skip to content.

plope

Personal tools
You are here: Home » Plope Software » Plope Software Collector » EE Does not find file
 
 
Views
Issue 20 of Plope Software Collector [Plope]
Title: EE Does not find file
Status: Pending Security related: No
Description: Trying to edit I get a Fatal error with this traceback in the temp directory Traceback (most recent call last): File "zopeedit.py", line 588, ...
From: Norbert Klamann on: Dec 2, 05 07:31
Anonymous User Last update: Dec 2, 05 07:31
Topic/class: externaleditor/bug Importance: critical
Version info: Firefox 1.0.7, Win 2000
Issue 20 Transcript
5 entries
= Comment - Entry #5 by chrism on Dec 2, 2005 9:53 am

>> except Exception, e:
>> fatalError('Error launching editor process\n'
>> '(%s):\n%s' % (command, e[2]))
>>
>>
>That is already there and shows the known result.
>
>Question is : How can CreateProcess fail when the command line succeeds ?

No idea, sorry, although it's clear that the exception handler doesn't catch everything it should. Does it fail from an interactive Python shell?

________________________________________
= Comment - Entry #4 by chrism on Dec 2, 2005 9:28 am

Oops, that should be:

oops.. that should be...

except Exception, e:
    fatalError('Error launching editor process\n'
               '(%s):\n%s' % (command, e[2]))

________________________________________
= Comment - Entry #3 by chrism on Dec 2, 2005 9:27 am

Launching "command" (e.g.)

%SystemRoot%\\system32\\NOTEPAD.EXE

.. appears to be what is failing. You might try changing the code from:

except pywintypes.error, e:
    fatalError('Error launching editor process\n' 
               '(%s):\n%s' % (command, e[2])) 


to...

except:
    fatalError('Error launching editor process\n' 
               '(%s):\n%s' % (command, e[2])) 

To see if "command" is what you think it is.
________________________________________
= Comment - Entry #2 by chrism on Dec 2, 2005 9:11 am

It's definitely not EE that is case-sensitive. The error is coming from the operating system; the program has no say in whether it asks for a case-sensitive file or not. Which version of external editor are you using? In my cvs version, the code that's failing at 588 appears to be:

                self.handle, nil, nil, nil = CreateProcess(None, command, None, 
                                                           None, 1, 0, None, 
                                                           None, STARTUPINFO())

________________________________________
= Request - Entry #1 by Anonymous User on Dec 2, 2005 7:31 am

Trying to edit I get a Fatal error with this traceback in the temp directory

 Traceback (most recent call last):
     File "zopeedit.py", line 588, in __init__
 error: (2, 'CreateProcess', 'Das System kann die angegebene Datei nicht finden.')

But the file exists whenever with different lower/uppercase then the name mentioned in the message. Maybe EE is casesensitive, this is wrong under windows.