Broke my install with python 33.5

58 views
Skip to first unread message

bosah vandenberg

unread,
Mar 21, 2014, 9:24:57 AM3/21/14
to leo-e...@googlegroups.com

I installed python 34 to see if it worked. It didn't.


Then I was stupid and upgraded my 3.3 to the latest 3.35, reinstalled QT and this....


reading settings in C:\Python33\Lib\site-packages\leo-editor\leo\config\leoSettings.leo

error parsing C:\Python33\Lib\site-packages\leo-editor\leo\config\leoSettings.leo

Traceback (most recent call last):

  File "C:\Python33\Lib\site-packages\leo-editor\leo\core\leoFileCommands.py", line 1326, in parse_leo_file
    handler = saxContentHandler(c,inputFileName,silent,inClipboard)

  File "C:\Python33\Lib\site-packages\leo-editor\leo\core\leoFileCommands.py", line 79, in __init__
    xml.sax.saxutils.XMLGenerator.__init__(self)

  File "C:\Python33\lib\xml\sax\saxutils.py", line 118, in __init__
    self._write = out.write

AttributeError: 'NoneType' object has no attribute 'write'

Abbreviations off

can not open C:\Python33\Lib\site-packages\leo-editor



any ideas?



If I try to open leo files they are blank.

bosah vandenberg

unread,
Mar 21, 2014, 10:10:25 AM3/21/14
to leo-e...@googlegroups.com
I am running windows 8 with the latest Leo-editor (from Git Repository)


Is this an error in Python 3.3.5?
I found a reference to a problem with IDLE on google


--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/-ywBoGviBX4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

bosah vandenberg

unread,
Mar 21, 2014, 10:53:37 AM3/21/14
to leo-e...@googlegroups.com
I retreated to the current head of the python 2.7 branch and it works again.

I think there is an issue for Leo in python 3.4, 3.3.5 and 3.3.4 on win8

Terry Brown

unread,
Mar 21, 2014, 11:16:02 AM3/21/14
to leo-e...@googlegroups.com
On Fri, 21 Mar 2014 10:53:37 -0400
bosah vandenberg <bos...@gmail.com> wrote:

> I retreated to the current head of the python 2.7 branch and it works
> again.
>
> I think there is an issue for Leo in python 3.4, 3.3.5 and 3.3.4 on
> win8

Leo is known not to work with Qt 5 based flavors of PyQt, so if any of
your setups were using that, it wouldn't be expected to work.

I just tried, successfully,
Python 3.3.5, qt version 4.8.5
Windows 6, 1, 7601, 2, Service Pack 1
(that's Win 7 64bit)

If you could try that combo changing only the Win 7 -> Win 8 part, that
would be interesting, if it showed a Win 7 / Win 8 distinction.

Python 3.4 isn't available from Riverbank (PyQt) currently, you were
building from source?

Cheers -Terry

bosah vandenberg

unread,
Mar 21, 2014, 11:26:51 AM3/21/14
to leo-e...@googlegroups.com
I was using the Python 3.3 QT4

It was mostly an experiament. I just shouldn't have blown away my other install. :(

I will try the same setup you had with 3.3.5 again with windows 8. I don't have much hope but I think its a good thing to establish going forward.

bosah vandenberg

unread,
Mar 21, 2014, 11:36:49 AM3/21/14
to leo-e...@googlegroups.com
Reinstalled with same results. Works on 2.7 won't work on 3.5 QT4

I never used qt5 - don't have it downloaded so I'm sure.

Terry Brown

unread,
Mar 21, 2014, 11:43:21 AM3/21/14
to leo-e...@googlegroups.com
On Fri, 21 Mar 2014 11:36:49 -0400
bosah vandenberg <bos...@gmail.com> wrote:

> Reinstalled with same results. Works on 2.7 won't work on 3.5 QT4

Ok, so assuming you meant 3.3.5 Qt 4 :-) we can say that

Python 3.3.5 / Qt 4.8.5 works in Win 7 but not Win 8?

Seems odd that just changing the Win 7/8 part breaks things, more
likely to be a Qt / Win 8 issue than a Leo issue specifically, I would
think.

Cheers -Terry

bosah vandenberg

unread,
Mar 21, 2014, 12:05:27 PM3/21/14
to leo-e...@googlegroups.com

Leo 4.11 final, build 042b3a51ba03 (branch: master), 2014-03-21 09:00:58

Python 3.3.5, qt version 4.8.5

Windows 6, 2, 9200, 2, 

leoID=nbv (in C:\Users\Bo\.leo)

load dir: C:\Python33\Lib\site-packages\leo-editor\leo\core

global config dir: C:\Python33\Lib\site-packages\leo-editor\leo\config

home dir: C:\Users\Bo

reading settings in C:\Python33\Lib\site-packages\leo-editor\leo\config\leoSettings.leo

error parsing C:\Python33\Lib\site-packages\leo-editor\leo\config\leoSettings.leo

Traceback (most recent call last):

  File "C:\Python33\Lib\site-packages\leo-editor\leo\core\leoFileCommands.py", line 1326, in parse_leo_file
    handler = saxContentHandler(c,inputFileName,silent,inClipboard)

  File "C:\Python33\Lib\site-packages\leo-editor\leo\core\leoFileCommands.py", line 79, in __init__
    xml.sax.saxutils.XMLGenerator.__init__(self)

  File "C:\Python33\lib\xml\sax\saxutils.py", line 118, in __init__
    self._write = out.write

AttributeError: 'NoneType' object has no attribute 'write'

Abbreviations off

can not open C:\Users\Bo\My Documents\Leo


bosah vandenberg

unread,
Mar 21, 2014, 12:06:48 PM3/21/14
to leo-e...@googlegroups.com
Same system with Python 2.7 Works

leoID=nbv (in C:\Users\Bo\.leo)

load dir: C:\Python27\Lib\site-packages\leo-editor\leo\core

global config dir: C:\Python27\Lib\site-packages\leo-editor\leo\config

home dir: C:\Users\Bo

reading settings in C:\Python27\Lib\site-packages\leo-editor\leo\config\leoSettings.leo

Using default leo file name:
C:\Users\Bo\.leo\workbook.leo

Abbreviations off

reading settings in C:\Python27\Lib\site-packages\leo-editor\leo\doc\CheatSheet.leo


João Alexandre Toledo

unread,
May 17, 2014, 6:03:58 AM5/17/14
to leo-e...@googlegroups.com
Hi!

Did anyone find a solution for this error?

I've got the same stacktrace here (also Win7 + Python 3.3.5).

Thanks.

João
Reply all
Reply to author
Forward
0 new messages