On Sun, Feb 7, 2010 at 11:14, Edward K. Ream <[email protected]> wrote:

> On Sun, Feb 7, 2010 at 10:46 AM, Edward K. Ream <[email protected]>
> wrote:
>
> > I see.  The offending code is in Leo's core, which I could easily have
> > seen from the initial report.  I'll fix this very soon.
>
> I was not able to exercise this code without enabling the open_with plugin.
>
> The best way to discover whether a plugin is present is to do
> <alt-x>print-plugins-info<return>
>
> Obviously, Leo should not have crashed in any case.  Rev 2900 contains
> some changes that may help:
>
> 1. The open_with plugin now demands that the Tk gui be present.  This
> probably will prevent the open_with plugin from loading unless Tk is,
> in fact, the active gui.
>
> 2. I made an *untested* change to c.openWithTempFilePath that will
> prevent the proximate cause of the crash you cite.
>
> Please report any further problems immediately.  Thanks.
>
> Edward
>
> Initial check with Rev 2900: Exception still occurs.

#---#
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_60455504.py

exception creating temp file

Traceback (most recent call last):

  File "C:\leo-editor\trunk\leo\core\leoCommands.py", line 1164, in
createOpenWithTempFile
    f.write(s)

TypeError: must be str, not bytes

recreating:   newHeadline_LeoTemp_60455504.py

exception creating temp file

Traceback (most recent call last):

  File "C:\leo-editor\trunk\leo\core\leoCommands.py", line 1164, in
createOpenWithTempFile
    f.write(s)

TypeError: must be str, not bytes

#---#

-- 
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