Hello,
Semi-experienced Python user here, having trouble installing Leo. I'm
running Python 3.4, 32-bit, on Win 7.
I installed (successfully I believe) PyQt5 (32-bit) using the Windows
installer at riverbank.computing.com, plus docutils and PyEnchant. Then I
installed Leo (latest stable from SourceForge - not adventuresome enough to
do the nightly snapshot of GitHub yet!).
I've tried various ways to start Leo. The least unsuccessful was to fire
up IDLE, import leo, then leo.run(). A window pops up (as expected) asking
me to create a Leo id. After doing so and clicking OK, I get the following:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
leo.run()
File "C:\Python34\lib\site-packages\leo\__init__.py", line 11, in run
runLeo.run(*args,**keys)
File "C:\Python34\lib\site-packages\leo\core\runLeo.py", line 78, in run
g.app.loadManager.load(fileName,pymacs)
File "C:\Python34\lib\site-packages\leo\core\leoApp.py", line 2624, in
load
lm.doPrePluginsInit(fileName,pymacs)
File "C:\Python34\lib\site-packages\leo\core\leoApp.py", line 2683, in
doPrePluginsInit
lm.initApp(verbose)
File "C:\Python34\lib\site-packages\leo\core\leoApp.py", line 2794, in
initApp
g.app.setLeoID(verbose=verbose)
File "C:\Python34\lib\site-packages\leo\core\leoApp.py", line 1819, in
setLeoID
g.blue('leoID=',repr(g.app.leoID),spaces=False)
File "C:\Python34\lib\site-packages\leo\core\leoGlobals.py", line 5273,
in blue
g.es_print(color=g.actualColor('blue'),*args,**keys)
File "C:\Python34\lib\site-packages\leo\core\leoGlobals.py", line 5451,
in es_print
g.pr(*args,**keys)
File "C:\Python34\lib\site-packages\leo\core\leoGlobals.py", line 5571,
in pr
stdout.write(s2)
AttributeError: 'NoneType' object has no attribute 'write'
Just for the heck of it I tried uninstalling Leo and PyQt, reinstalling PyQt
*4*, then Leo -- but same exact thing.
A post on this forum from late last year suggests the attribute error is a
Python 3.4 problem. It's not hard to believe that the Python bug has yet to
be resolved, however the install instructions on the Leo website very
clearly indicate that Leo works with Python 3.4. So unless the Leo
documentation is almost a year out of date, there must be something else
going on with my install. Also I'd rather not roll back to 2.7 without a
very good reason.
What am I doing wrong?
Thanks for your help.
jdm
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.